]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_passes/stability.rs
Rollup merge of #68582 - LeSeulArtichaut:code-explanations, r=Dylan-DPC
[rust.git] / src / librustc_passes / stability.rs
index b649f36f2fc589671854ed51b238d475b733f5ed..db8109c285980e8c0329a37cab716763c0d6b814 100644 (file)
@@ -26,8 +26,6 @@
 use std::mem::replace;
 use std::num::NonZeroU32;
 
-use rustc_error_codes::*;
-
 #[derive(PartialEq)]
 enum AnnotationKind {
     // Annotation is required if not inherited from unstable parents
@@ -368,8 +366,8 @@ fn new_index(tcx: TyCtxt<'tcx>) -> Index<'tcx> {
     // Put the active features into a map for quick lookup.
     index.active_features = active_lib_features
         .iter()
-        .map(|&(ref s, ..)| s.clone())
-        .chain(active_lang_features.iter().map(|&(ref s, ..)| s.clone()))
+        .map(|&(s, ..)| s)
+        .chain(active_lang_features.iter().map(|&(s, ..)| s))
         .collect();
 
     {