@@ -99,7 +99,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
9999 seg,
100100 ParamMode :: Optional ,
101101 ParenthesizedGenericArgs :: Err ,
102- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
102+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
103103 None ,
104104 // Method calls can't have bound modifiers
105105 None ,
@@ -141,13 +141,13 @@ impl<'hir> LoweringContext<'_, 'hir> {
141141 ExprKind :: Cast ( expr, ty) => {
142142 let expr = self . lower_expr ( expr) ;
143143 let ty =
144- self . lower_ty ( ty, & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Cast ) ) ;
144+ self . lower_ty ( ty, ImplTraitContext :: Disallowed ( ImplTraitPosition :: Cast ) ) ;
145145 hir:: ExprKind :: Cast ( expr, ty)
146146 }
147147 ExprKind :: Type ( expr, ty) => {
148148 let expr = self . lower_expr ( expr) ;
149149 let ty =
150- self . lower_ty ( ty, & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Cast ) ) ;
150+ self . lower_ty ( ty, ImplTraitContext :: Disallowed ( ImplTraitPosition :: Cast ) ) ;
151151 hir:: ExprKind :: Type ( expr, ty)
152152 }
153153 ExprKind :: AddrOf ( k, m, ohs) => {
@@ -267,7 +267,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
267267 qself,
268268 path,
269269 ParamMode :: Optional ,
270- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
270+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
271271 None ,
272272 ) ;
273273 hir:: ExprKind :: Path ( qpath)
@@ -295,7 +295,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
295295 ExprKind :: OffsetOf ( container, fields) => hir:: ExprKind :: OffsetOf (
296296 self . lower_ty (
297297 container,
298- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: OffsetOf ) ,
298+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: OffsetOf ) ,
299299 ) ,
300300 self . arena . alloc_from_iter ( fields. iter ( ) . map ( |& ident| self . lower_ident ( ident) ) ) ,
301301 ) ,
@@ -314,7 +314,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
314314 & se. qself ,
315315 & se. path ,
316316 ParamMode :: Optional ,
317- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
317+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
318318 None ,
319319 ) ) ,
320320 self . arena
@@ -1241,7 +1241,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
12411241 qself,
12421242 path,
12431243 ParamMode :: Optional ,
1244- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
1244+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
12451245 None ,
12461246 ) ;
12471247 // Destructure like a tuple struct.
@@ -1261,7 +1261,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
12611261 qself,
12621262 path,
12631263 ParamMode :: Optional ,
1264- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
1264+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
12651265 None ,
12661266 ) ;
12671267 // Destructure like a unit struct.
@@ -1286,7 +1286,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
12861286 & se. qself ,
12871287 & se. path ,
12881288 ParamMode :: Optional ,
1289- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
1289+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
12901290 None ,
12911291 ) ;
12921292 let fields_omitted = match & se. rest {
0 commit comments