Skip to content

Commit 1fb6435

Browse files
authored
Rollup merge of #131590 - matthiaskrgr:clones3, r=compiler-errors
yeet some clones
2 parents ca3c822 + e5906e1 commit 1fb6435

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_borrowck/src/nll.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub(crate) fn compute_regions<'a, 'tcx>(
165165
universe_causes,
166166
type_tests,
167167
liveness_constraints,
168-
elements.clone(),
168+
elements,
169169
);
170170

171171
// If requested: dump NLL facts, and run legacy polonius analysis.

compiler/rustc_builtin_macros/src/deriving/smart_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ pub(crate) fn expand_deriving_smart_ptr(
312312
impl_generics.params.insert(pointee_param_idx + 1, extra_param);
313313

314314
// 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)];
316316
add_impl_block(impl_generics.clone(), sym::DispatchFromDyn, gen_args.clone());
317317
add_impl_block(impl_generics.clone(), sym::CoerceUnsized, gen_args);
318318
}

0 commit comments

Comments
 (0)