rust/compiler/rustc_passes
Matthias Krüger 5ea1a03cca
Rollup merge of #127118 - surechen:fix_126789, r=jieyouxu
Show `used attribute`'s kind for user when find it isn't applied to a `static` variable.

For example :
```rust
extern "C" {
    #[used] //~ ERROR attribute must be applied to a `static` variable
    static FOO: i32; // show the kind of this item to help user understand why the error is reported.
}
```

fixes #126789
2024-06-29 22:10:59 +02:00
..
src Rollup merge of #127118 - surechen:fix_126789, r=jieyouxu 2024-06-29 22:10:59 +02:00
Cargo.toml Test and implement reachability for trait objects and generic parameters of functions 2024-03-14 14:10:45 +00:00
messages.ftl Rollup merge of #127118 - surechen:fix_126789, r=jieyouxu 2024-06-29 22:10:59 +02:00