@@ -24,7 +24,7 @@ pub fn non_ssa_locals<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
24
24
analyzer. visit_body ( & mir) ;
25
25
26
26
for ( local, decl) in mir. local_decls . iter_enumerated ( ) {
27
- let ty = fx. monomorphize ( & decl. ty ) ;
27
+ let ty = fx. monomorphize ( decl. ty ) ;
28
28
debug ! ( "local {:?} has type `{}`" , local, ty) ;
29
29
let layout = fx. cx . spanned_layout_of ( ty, decl. source_info . span ) ;
30
30
if fx. cx . is_backend_immediate ( layout) {
@@ -121,10 +121,10 @@ impl<Bx: BuilderMethods<'a, 'tcx>> LocalAnalyzer<'mir, 'a, 'tcx, Bx> {
121
121
if is_consume {
122
122
let base_ty =
123
123
mir:: Place :: ty_from ( place_ref. local , proj_base, self . fx . mir , cx. tcx ( ) ) ;
124
- let base_ty = self . fx . monomorphize ( & base_ty) ;
124
+ let base_ty = self . fx . monomorphize ( base_ty) ;
125
125
126
126
// ZSTs don't require any actual memory access.
127
- let elem_ty = base_ty. projection_ty ( cx. tcx ( ) , self . fx . monomorphize ( & elem) ) . ty ;
127
+ let elem_ty = base_ty. projection_ty ( cx. tcx ( ) , self . fx . monomorphize ( elem) ) . ty ;
128
128
let span = self . fx . mir . local_decls [ place_ref. local ] . source_info . span ;
129
129
if cx. spanned_layout_of ( elem_ty, span) . is_zst ( ) {
130
130
return ;
@@ -313,7 +313,7 @@ impl<'mir, 'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx>
313
313
314
314
PlaceContext :: MutatingUse ( MutatingUseContext :: Drop ) => {
315
315
let ty = self . fx . mir . local_decls [ local] . ty ;
316
- let ty = self . fx . monomorphize ( & ty) ;
316
+ let ty = self . fx . monomorphize ( ty) ;
317
317
318
318
// Only need the place if we're actually dropping it.
319
319
if self . fx . cx . type_needs_drop ( ty) {
0 commit comments