2021-02-28 12:24:46 -06:00
|
|
|
// compile-flags: -Zunstable-options
|
2021-04-10 12:08:31 -05:00
|
|
|
// check-pass
|
|
|
|
#![warn(rustc::internal)]
|
|
|
|
|
|
|
|
#[allow(rustc::foo::bar::default_hash_types)]
|
|
|
|
//~^ WARN unknown lint: `rustc::foo::bar::default_hash_types`
|
|
|
|
//~| HELP did you mean
|
|
|
|
//~| SUGGESTION rustc::default_hash_types
|
|
|
|
#[allow(rustc::foo::default_hash_types)]
|
|
|
|
//~^ WARN unknown lint: `rustc::foo::default_hash_types`
|
|
|
|
//~| HELP did you mean
|
|
|
|
//~| SUGGESTION rustc::default_hash_types
|
|
|
|
fn main() {
|
|
|
|
let _ = std::collections::HashMap::<String, String>::new();
|
2021-07-02 14:15:11 -05:00
|
|
|
//~^ WARN prefer `FxHashMap` over `HashMap`, it has better performance
|
2021-04-10 12:08:31 -05:00
|
|
|
}
|