2021-02-28 18:24:46 +00:00
|
|
|
// compile-flags: -Zunstable-options
|
2021-04-10 17:08:31 +00: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 19:15:11 +00:00
|
|
|
//~^ WARN prefer `FxHashMap` over `HashMap`, it has better performance
|
2021-04-10 17:08:31 +00:00
|
|
|
}
|