]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_passes/src/dead.rs
Rollup merge of #104747 - petrochenkov:ctorfields, r=cjgillot
[rust.git] / compiler / rustc_passes / src / dead.rs
index d4722234a8f1e05e2c1b8e3a3a65620649ca3fdd..5d0224c35f3645a8716d2820e8d8a4f0f49914e9 100644 (file)
@@ -772,7 +772,7 @@ fn warn_multiple_dead_codes(
         self.tcx.emit_spanned_lint(
             lint,
             tcx.hir().local_def_id_to_hir_id(first_id),
-            MultiSpan::from_spans(spans.clone()),
+            MultiSpan::from_spans(spans),
             diag,
         );
     }