@@ -24,7 +24,7 @@ pub fn non_ssa_locals<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
2424 analyzer. visit_body ( & mir) ;
2525
2626 for ( local, decl) in mir. local_decls . iter_enumerated ( ) {
27- let ty = fx. monomorphize ( & decl. ty ) ;
27+ let ty = fx. monomorphize ( decl. ty ) ;
2828 debug ! ( "local {:?} has type `{}`" , local, ty) ;
2929 let layout = fx. cx . spanned_layout_of ( ty, decl. source_info . span ) ;
3030 if fx. cx . is_backend_immediate ( layout) {
@@ -121,10 +121,10 @@ impl<Bx: BuilderMethods<'a, 'tcx>> LocalAnalyzer<'mir, 'a, 'tcx, Bx> {
121121 if is_consume {
122122 let base_ty =
123123 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) ;
125125
126126 // 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 ;
128128 let span = self . fx . mir . local_decls [ place_ref. local ] . source_info . span ;
129129 if cx. spanned_layout_of ( elem_ty, span) . is_zst ( ) {
130130 return ;
@@ -313,7 +313,7 @@ impl<'mir, 'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx>
313313
314314 PlaceContext :: MutatingUse ( MutatingUseContext :: Drop ) => {
315315 let ty = self . fx . mir . local_decls [ local] . ty ;
316- let ty = self . fx . monomorphize ( & ty) ;
316+ let ty = self . fx . monomorphize ( ty) ;
317317
318318 // Only need the place if we're actually dropping it.
319319 if self . fx . cx . type_needs_drop ( ty) {
0 commit comments