about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-28 13:42:37 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2024-09-28 13:42:37 +0200
commite174b92cb45138dcea93727e64f2255ae39cd5bf (patch)
treedc749b3f6d4e0e6157d1c5c976b70589c799a631 /compiler/rustc_builtin_macros/src
parent150247c338a54cb3d08614d8530d1bb491fa90db (diff)
downloadrust-e174b92cb45138dcea93727e64f2255ae39cd5bf.tar.gz
rust-e174b92cb45138dcea93727e64f2255ae39cd5bf.zip
remove couple redundant clones
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
-rw-r--r--compiler/rustc_builtin_macros/src/deriving/smart_ptr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/deriving/smart_ptr.rs b/compiler/rustc_builtin_macros/src/deriving/smart_ptr.rs
index 12749e87dcb..78028df2aa0 100644
--- a/compiler/rustc_builtin_macros/src/deriving/smart_ptr.rs
+++ b/compiler/rustc_builtin_macros/src/deriving/smart_ptr.rs
@@ -310,7 +310,7 @@ pub(crate) fn expand_deriving_smart_ptr(
     // Add the impl blocks for `DispatchFromDyn` and `CoerceUnsized`.
     let gen_args = vec![GenericArg::Type(alt_self_type.clone())];
     add_impl_block(impl_generics.clone(), sym::DispatchFromDyn, gen_args.clone());
-    add_impl_block(impl_generics.clone(), sym::CoerceUnsized, gen_args.clone());
+    add_impl_block(impl_generics.clone(), sym::CoerceUnsized, gen_args);
 }
 
 fn contains_maybe_sized_bound_on_pointee(predicates: &[WherePredicate], pointee: Symbol) -> bool {