@@ -1157,7 +1157,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1157
1157
itctx : & ImplTraitContext ,
1158
1158
) -> hir:: GenericArg < ' hir > {
1159
1159
match arg {
1160
- ast:: GenericArg :: Lifetime ( lt) => GenericArg :: Lifetime ( self . lower_lifetime ( & lt) ) ,
1160
+ ast:: GenericArg :: Lifetime ( lt) => GenericArg :: Lifetime ( self . lower_lifetime ( lt) ) ,
1161
1161
ast:: GenericArg :: Type ( ty) => {
1162
1162
match & ty. kind {
1163
1163
TyKind :: Infer if self . tcx . features ( ) . generic_arg_infer => {
@@ -1221,10 +1221,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1221
1221
}
1222
1222
_ => { }
1223
1223
}
1224
- GenericArg :: Type ( self . lower_ty ( & ty, itctx) )
1224
+ GenericArg :: Type ( self . lower_ty ( ty, itctx) )
1225
1225
}
1226
1226
ast:: GenericArg :: Const ( ct) => GenericArg :: Const ( ConstArg {
1227
- value : self . lower_anon_const ( & ct) ,
1227
+ value : self . lower_anon_const ( ct) ,
1228
1228
span : self . lower_span ( ct. value . span ) ,
1229
1229
is_desugared_from_effects : false ,
1230
1230
} ) ,
@@ -1267,7 +1267,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1267
1267
let lifetime_bound = this. elided_dyn_bound ( t. span ) ;
1268
1268
( bounds, lifetime_bound)
1269
1269
} ) ;
1270
- let kind = hir:: TyKind :: TraitObject ( bounds, & lifetime_bound, TraitObjectSyntax :: None ) ;
1270
+ let kind = hir:: TyKind :: TraitObject ( bounds, lifetime_bound, TraitObjectSyntax :: None ) ;
1271
1271
return hir:: Ty { kind, span : self . lower_span ( t. span ) , hir_id : self . next_id ( ) } ;
1272
1272
}
1273
1273
@@ -1551,7 +1551,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1551
1551
// in fn return position, like the `fn test<'a>() -> impl Debug + 'a`
1552
1552
// example, we only need to duplicate lifetimes that appear in the
1553
1553
// bounds, since those are the only ones that are captured by the opaque.
1554
- lifetime_collector:: lifetimes_in_bounds ( & self . resolver , bounds)
1554
+ lifetime_collector:: lifetimes_in_bounds ( self . resolver , bounds)
1555
1555
}
1556
1556
}
1557
1557
hir:: OpaqueTyOrigin :: AsyncFn ( ..) => {
@@ -2067,10 +2067,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
2067
2067
( hir:: ParamName :: Plain ( self . lower_ident ( param. ident ) ) , kind)
2068
2068
}
2069
2069
GenericParamKind :: Const { ty, kw_span : _, default } => {
2070
- let ty = self . lower_ty (
2071
- & ty,
2072
- & ImplTraitContext :: Disallowed ( ImplTraitPosition :: GenericDefault ) ,
2073
- ) ;
2070
+ let ty = self
2071
+ . lower_ty ( ty, & ImplTraitContext :: Disallowed ( ImplTraitPosition :: GenericDefault ) ) ;
2074
2072
let default = default. as_ref ( ) . map ( |def| self . lower_anon_const ( def) ) ;
2075
2073
(
2076
2074
hir:: ParamName :: Plain ( self . lower_ident ( param. ident ) ) ,
0 commit comments