@@ -1157,7 +1157,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
11571157 itctx : & ImplTraitContext ,
11581158 ) -> hir:: GenericArg < ' hir > {
11591159 match arg {
1160- ast:: GenericArg :: Lifetime ( lt) => GenericArg :: Lifetime ( self . lower_lifetime ( & lt) ) ,
1160+ ast:: GenericArg :: Lifetime ( lt) => GenericArg :: Lifetime ( self . lower_lifetime ( lt) ) ,
11611161 ast:: GenericArg :: Type ( ty) => {
11621162 match & ty. kind {
11631163 TyKind :: Infer if self . tcx . features ( ) . generic_arg_infer => {
@@ -1221,10 +1221,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
12211221 }
12221222 _ => { }
12231223 }
1224- GenericArg :: Type ( self . lower_ty ( & ty, itctx) )
1224+ GenericArg :: Type ( self . lower_ty ( ty, itctx) )
12251225 }
12261226 ast:: GenericArg :: Const ( ct) => GenericArg :: Const ( ConstArg {
1227- value : self . lower_anon_const ( & ct) ,
1227+ value : self . lower_anon_const ( ct) ,
12281228 span : self . lower_span ( ct. value . span ) ,
12291229 is_desugared_from_effects : false ,
12301230 } ) ,
@@ -1267,7 +1267,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
12671267 let lifetime_bound = this. elided_dyn_bound ( t. span ) ;
12681268 ( bounds, lifetime_bound)
12691269 } ) ;
1270- let kind = hir:: TyKind :: TraitObject ( bounds, & lifetime_bound, TraitObjectSyntax :: None ) ;
1270+ let kind = hir:: TyKind :: TraitObject ( bounds, lifetime_bound, TraitObjectSyntax :: None ) ;
12711271 return hir:: Ty { kind, span : self . lower_span ( t. span ) , hir_id : self . next_id ( ) } ;
12721272 }
12731273
@@ -1551,7 +1551,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
15511551 // in fn return position, like the `fn test<'a>() -> impl Debug + 'a`
15521552 // example, we only need to duplicate lifetimes that appear in the
15531553 // 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)
15551555 }
15561556 }
15571557 hir:: OpaqueTyOrigin :: AsyncFn ( ..) => {
@@ -2067,10 +2067,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
20672067 ( hir:: ParamName :: Plain ( self . lower_ident ( param. ident ) ) , kind)
20682068 }
20692069 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 ) ) ;
20742072 let default = default. as_ref ( ) . map ( |def| self . lower_anon_const ( def) ) ;
20752073 (
20762074 hir:: ParamName :: Plain ( self . lower_ident ( param. ident ) ) ,
0 commit comments