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:
Mazdak Farrokhzad 2020-03-07 17:27:34 +01:00 committed by GitHub
commit f1f4864de3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View file

@ -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);
}
}
}