1 #![feature(tool_lints)]
3 #![warn(clippy::default_hash_types)]
4 #![feature(rustc_private)]
6 extern crate rustc_data_structures;
8 use std::collections::{HashMap, HashSet};
9 use rustc_data_structures::fx::{FxHashMap, FxHashSet};
12 let _map: HashMap<String, String> = HashMap::default();
13 let _set: HashSet<String> = HashSet::default();
15 // test that the lint doesn't also match the Fx variants themselves 😂
16 let _fx_map: FxHashMap<String, String> = FxHashMap::default();
17 let _fx_set: FxHashSet<String> = FxHashSet::default();