Skip to content

Commit

Permalink
Don't use "base place" for different concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jun 8, 2019
1 parent e5375b2 commit b137a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/mir/visit.rs
Expand Up @@ -712,7 +712,7 @@ macro_rules! make_mir_visitor {
location: Location) { location: Location) {
// this is calling `super_place` in preparation for changing `Place` to be // this is calling `super_place` in preparation for changing `Place` to be
// a struct with a base and a slice of projections. `visit_place` should only ever // a struct with a base and a slice of projections. `visit_place` should only ever
// be called for the base place now. // be called for the outermost place now.
self.super_place(& $($mutability)? proj.base, context, location); self.super_place(& $($mutability)? proj.base, context, location);
match & $($mutability)? proj.elem { match & $($mutability)? proj.elem {
ProjectionElem::Deref => { ProjectionElem::Deref => {
Expand Down

0 comments on commit b137a47

Please sign in to comment.