diff --git a/gcc/rust/checks/errors/borrowck/rust-bir-fact-collector.h b/gcc/rust/checks/errors/borrowck/rust-bir-fact-collector.h index 901b37be8d19..1cd6b4d480d8 100644 --- a/gcc/rust/checks/errors/borrowck/rust-bir-fact-collector.h +++ b/gcc/rust/checks/errors/borrowck/rust-bir-fact-collector.h @@ -334,7 +334,7 @@ class FactCollector : public Visitor expr.get_rhs () - 1, current_bb, current_stmt); issue_read_move (expr.get_rhs ()); - push_subset (lhs, expr.get_rhs ()); + push_place_subset (lhs, expr.get_rhs ()); } void visit (const CallExpr &expr) override @@ -662,7 +662,7 @@ class FactCollector : public Visitor } } - void push_subset (PlaceId lhs, PlaceId rhs) + void push_place_subset (PlaceId lhs, PlaceId rhs) { auto &lhs_place = place_db[lhs]; auto &rhs_place = place_db[rhs];