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