diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-06-29 22:10:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-29 22:10:59 +0200 |
| commit | 5ea1a03ccaa98e880a7e32290c1e929955326a1a (patch) | |
| tree | 704cd8e9551edcb621d3e5a02863449c5cc071a3 /compiler/rustc_codegen_cranelift/scripts/rustdoc-clif.rs | |
| parent | 9879b4606cab3f93cdae4f0546caca4547f0b093 (diff) | |
| parent | 9c0ce05d246811a977b6564b7df2b6947bd6903b (diff) | |
| download | rust-5ea1a03ccaa98e880a7e32290c1e929955326a1a.tar.gz rust-5ea1a03ccaa98e880a7e32290c1e929955326a1a.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_cranelift/scripts/rustdoc-clif.rs')
0 files changed, 0 insertions, 0 deletions
