mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
17 lines
567 B
Rust
17 lines
567 B
Rust
// compile-flags: -Zunstable-options
|
|
// 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();
|
|
//~^ WARN prefer `FxHashMap` over `HashMap`, it has better performance
|
|
}
|