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
// 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();
{