@@ -99,7 +99,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
99
99
seg,
100
100
ParamMode :: Optional ,
101
101
ParenthesizedGenericArgs :: Err ,
102
- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
102
+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
103
103
None ,
104
104
// Method calls can't have bound modifiers
105
105
None ,
@@ -141,13 +141,13 @@ impl<'hir> LoweringContext<'_, 'hir> {
141
141
ExprKind :: Cast ( expr, ty) => {
142
142
let expr = self . lower_expr ( expr) ;
143
143
let ty =
144
- self . lower_ty ( ty, & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Cast ) ) ;
144
+ self . lower_ty ( ty, ImplTraitContext :: Disallowed ( ImplTraitPosition :: Cast ) ) ;
145
145
hir:: ExprKind :: Cast ( expr, ty)
146
146
}
147
147
ExprKind :: Type ( expr, ty) => {
148
148
let expr = self . lower_expr ( expr) ;
149
149
let ty =
150
- self . lower_ty ( ty, & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Cast ) ) ;
150
+ self . lower_ty ( ty, ImplTraitContext :: Disallowed ( ImplTraitPosition :: Cast ) ) ;
151
151
hir:: ExprKind :: Type ( expr, ty)
152
152
}
153
153
ExprKind :: AddrOf ( k, m, ohs) => {
@@ -267,7 +267,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
267
267
qself,
268
268
path,
269
269
ParamMode :: Optional ,
270
- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
270
+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
271
271
None ,
272
272
) ;
273
273
hir:: ExprKind :: Path ( qpath)
@@ -295,7 +295,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
295
295
ExprKind :: OffsetOf ( container, fields) => hir:: ExprKind :: OffsetOf (
296
296
self . lower_ty (
297
297
container,
298
- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: OffsetOf ) ,
298
+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: OffsetOf ) ,
299
299
) ,
300
300
self . arena . alloc_from_iter ( fields. iter ( ) . map ( |& ident| self . lower_ident ( ident) ) ) ,
301
301
) ,
@@ -314,7 +314,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
314
314
& se. qself ,
315
315
& se. path ,
316
316
ParamMode :: Optional ,
317
- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
317
+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
318
318
None ,
319
319
) ) ,
320
320
self . arena
@@ -1241,7 +1241,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
1241
1241
qself,
1242
1242
path,
1243
1243
ParamMode :: Optional ,
1244
- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
1244
+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
1245
1245
None ,
1246
1246
) ;
1247
1247
// Destructure like a tuple struct.
@@ -1261,7 +1261,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
1261
1261
qself,
1262
1262
path,
1263
1263
ParamMode :: Optional ,
1264
- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
1264
+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
1265
1265
None ,
1266
1266
) ;
1267
1267
// Destructure like a unit struct.
@@ -1286,7 +1286,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
1286
1286
& se. qself ,
1287
1287
& se. path ,
1288
1288
ParamMode :: Optional ,
1289
- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
1289
+ ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
1290
1290
None ,
1291
1291
) ;
1292
1292
let fields_omitted = match & se. rest {
0 commit comments