File tree 2 files changed +2
-2
lines changed
rustc_builtin_macros/src/deriving
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ pub(crate) fn compute_regions<'a, 'tcx>(
165
165
universe_causes,
166
166
type_tests,
167
167
liveness_constraints,
168
- elements. clone ( ) ,
168
+ elements,
169
169
) ;
170
170
171
171
// If requested: dump NLL facts, and run legacy polonius analysis.
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ pub(crate) fn expand_deriving_smart_ptr(
312
312
impl_generics. params . insert ( pointee_param_idx + 1 , extra_param) ;
313
313
314
314
// Add the impl blocks for `DispatchFromDyn` and `CoerceUnsized`.
315
- let gen_args = vec ! [ GenericArg :: Type ( alt_self_type. clone ( ) ) ] ;
315
+ let gen_args = vec ! [ GenericArg :: Type ( alt_self_type) ] ;
316
316
add_impl_block ( impl_generics. clone ( ) , sym:: DispatchFromDyn , gen_args. clone ( ) ) ;
317
317
add_impl_block ( impl_generics. clone ( ) , sym:: CoerceUnsized , gen_args) ;
318
318
}
You can’t perform that action at this time.
0 commit comments