about summary refs log tree commit diff
path: root/compiler/rustc_middle
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-29 13:31:30 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2024-09-29 13:31:30 +0200
commit71cd918dc78c84d41bb89c2fc8effcfd000f4e3e (patch)
tree515044518fc7db3857e2b19c2da3d4f1fc45b86f /compiler/rustc_middle
parent9903b256a2f5d57a912c6aa793d4373db30f9f9a (diff)
downloadrust-71cd918dc78c84d41bb89c2fc8effcfd000f4e3e.tar.gz
rust-71cd918dc78c84d41bb89c2fc8effcfd000f4e3e.zip
cleanup: don't clone types that are Copy
Diffstat (limited to 'compiler/rustc_middle')
-rw-r--r--compiler/rustc_middle/src/middle/stability.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/middle/stability.rs b/compiler/rustc_middle/src/middle/stability.rs
index 54cfd995832..ee34ccd889f 100644
--- a/compiler/rustc_middle/src/middle/stability.rs
+++ b/compiler/rustc_middle/src/middle/stability.rs
@@ -217,7 +217,7 @@ pub fn early_report_macro_deprecation(
         suggestion_span: span,
         note: depr.note,
         path,
-        since_kind: deprecated_since_kind(is_in_effect, depr.since.clone()),
+        since_kind: deprecated_since_kind(is_in_effect, depr.since),
     };
     lint_buffer.buffer_lint(deprecation_lint(is_in_effect), node_id, span, diag);
 }