Rollup merge of #69787 - spastorino:use-local-directly-its-copy, r=oli-obk
mir::Local is Copy we can pass it by value in these cases r? @oli-obk
This commit is contained in:
commit
f1f4864de3
3 changed files with 12 additions and 12 deletions
|
|
@ -203,7 +203,7 @@ impl<Bx: BuilderMethods<'a, 'tcx>> LocalAnalyzer<'mir, 'a, 'tcx, Bx> {
|
|||
}
|
||||
|
||||
self.visit_place_base(&place_ref.local, context, location);
|
||||
self.visit_projection(&place_ref.local, place_ref.projection, context, location);
|
||||
self.visit_projection(place_ref.local, place_ref.projection, context, location);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue