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
..
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-06-23 19:02:14 -05:00
2024-03-03 10:48:40 +08:00
2024-03-03 10:48:40 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-25 22:14:47 +03:00
2024-04-25 22:14:47 +03:00
2023-10-23 13:04:47 -07:00
2023-10-23 13:04:47 -07:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-06-22 06:34:09 +02:00
2024-06-22 06:34:09 +02:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-04-27 18:33:39 +00:00
2024-02-16 20:02:50 +00:00
2023-04-17 12:42:02 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-12-12 15:54:25 +11:00
2023-12-12 15:54:25 +11:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-17 09:18:14 -04:00
2023-12-12 15:54:25 +11:00
2023-12-12 15:54:25 +11:00
2024-06-24 17:12:08 +03:00
2024-06-24 17:12:08 +03:00
2024-06-24 17:12:08 +03:00
2024-02-16 20:02:50 +00:00
2023-12-12 15:54:25 +11:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-08-07 21:14:28 +02:00
2023-11-24 19:15:52 +01:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-03-28 18:05:12 +00:00
2023-11-24 19:15:52 +01:00
2024-05-10 09:16:27 +02:00
2024-05-10 09:16:27 +02:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-02-22 18:04:55 +00:00
2024-05-20 18:53:17 +08:00
2024-02-22 18:05:28 +00:00
2024-02-22 18:05:28 +00:00
2023-03-02 02:42:19 +00:00
2023-03-02 02:42:19 +00:00
2023-10-24 08:21:52 +00:00
2023-10-24 08:21:52 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-12-12 15:54:25 +11:00
2023-12-12 15:54:25 +11:00
2024-02-16 20:02:50 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-11-24 19:15:52 +01:00
2024-06-29 19:39:09 +08:00
2024-06-29 19:39:09 +08:00
2024-02-24 08:14:38 -05:00
2024-02-24 08:14:38 -05:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00