Rollup merge of #131590 - matthiaskrgr:clones3, r=compiler-errors
yeet some clones
This commit is contained in:
commit
1fb64355c8
@ -165,7 +165,7 @@ pub(crate) fn compute_regions<'a, 'tcx>(
|
|||||||
universe_causes,
|
universe_causes,
|
||||||
type_tests,
|
type_tests,
|
||||||
liveness_constraints,
|
liveness_constraints,
|
||||||
elements.clone(),
|
elements,
|
||||||
);
|
);
|
||||||
|
|
||||||
// If requested: dump NLL facts, and run legacy polonius analysis.
|
// If requested: dump NLL facts, and run legacy polonius analysis.
|
||||||
|
@ -312,7 +312,7 @@ pub(crate) fn expand_deriving_smart_ptr(
|
|||||||
impl_generics.params.insert(pointee_param_idx + 1, extra_param);
|
impl_generics.params.insert(pointee_param_idx + 1, extra_param);
|
||||||
|
|
||||||
// Add the impl blocks for `DispatchFromDyn` and `CoerceUnsized`.
|
// Add the impl blocks for `DispatchFromDyn` and `CoerceUnsized`.
|
||||||
let gen_args = vec![GenericArg::Type(alt_self_type.clone())];
|
let gen_args = vec![GenericArg::Type(alt_self_type)];
|
||||||
add_impl_block(impl_generics.clone(), sym::DispatchFromDyn, gen_args.clone());
|
add_impl_block(impl_generics.clone(), sym::DispatchFromDyn, gen_args.clone());
|
||||||
add_impl_block(impl_generics.clone(), sym::CoerceUnsized, gen_args);
|
add_impl_block(impl_generics.clone(), sym::CoerceUnsized, gen_args);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user