summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/issue-83477.rs
blob: 4262a28799db26ac412e30a243e34c9a7824d82e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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
}