Esteban Küber
f80e3ac4ed
Use cfg_attr AST placeholder AST cfg_attr_trace for diagnostics
...
PR 138515, we insert a placeholder attribute so that checks for attributes can still know about the placement of `cfg` attributes. When we suggest removing items with `cfg_attr`s (fix Issue 56328) and make them verbose. We tweak the wording of the existing "unused `extern crate`" lint.
```
warning: unused extern crate
--> $DIR/removing-extern-crate.rs:9:1
|
LL | extern crate removing_extern_crate as foo;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unused
|
note: the lint level is defined here
--> $DIR/removing-extern-crate.rs:6:9
|
LL | #![warn(rust_2018_idioms)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(unused_extern_crates)]` implied by `#[warn(rust_2018_idioms)]`
help: remove the unused `extern crate`
|
LL - #[cfg_attr(test, macro_use)]
LL - extern crate removing_extern_crate as foo;
LL +
|
```
2025-05-29 10:24:23 +00:00
..
2025-04-11 15:07:08 +02:00
2024-11-27 07:18:25 -08:00
2025-04-17 19:45:28 +08:00
2025-04-17 19:45:28 +08:00
2025-04-25 14:33:16 +10:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-29 13:46:17 +10:00
2024-11-27 07:18:25 -08:00
2024-10-28 14:12:45 +11:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-05-09 15:31:27 +00:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-06-05 13:07:32 +10:00
2024-11-27 07:18:25 -08:00
2025-04-03 18:10:48 +00:00
2025-04-03 18:10:48 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2024-07-24 21:03:52 +10:00
2025-04-03 21:41:58 +00:00
2024-07-24 21:03:52 +10:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-02-10 20:21:39 +00:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-10-28 14:12:45 +11:00
2025-04-03 21:41:58 +00:00
2025-03-07 14:51:07 +11:00
2024-11-27 07:18:25 -08:00
2024-11-03 13:55:52 -08:00
2024-11-27 07:18:25 -08:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-03-25 17:33:09 +03:00
2025-03-25 17:33:09 +03:00
2025-03-25 17:33:09 +03:00
2025-04-16 22:44:02 +03:00
2025-04-16 22:44:02 +03:00
2025-04-13 21:48:53 +03:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-08 23:06:31 +03:00
2024-11-27 07:18:25 -08:00
2025-04-03 11:08:55 +03:00
2025-02-21 17:37:03 +00:00
2025-01-07 16:04:14 +01:00
2025-02-10 20:21:39 +00:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-06-05 13:07:32 +10:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-02-10 20:21:39 +00:00
2025-04-07 19:13:30 +03:00
2025-04-07 19:13:30 +03:00
2024-11-27 07:18:25 -08:00
2025-03-14 19:50:03 +00:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-12-27 19:58:16 +11:00
2025-01-01 15:58:29 +01:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-28 14:32:45 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-02 06:20:35 +11:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-12-27 19:58:16 +11:00
2025-03-31 15:41:48 +03:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-17 19:45:28 +08:00
2025-04-17 19:45:28 +08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-03 21:41:58 +00:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-10-11 21:21:32 +02:00
2024-11-27 07:18:25 -08:00
2025-03-30 01:32:21 +03:00
2025-05-29 10:24:23 +00:00
2025-03-07 14:51:08 +11:00
2025-03-07 14:51:08 +11:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-16 11:10:10 +02:00
2025-04-17 11:21:54 +00:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-03 11:08:55 +03:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-05-28 08:15:15 +10:00
2024-05-28 08:15:15 +10:00
2025-03-25 17:33:09 +03:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-01-19 08:53:02 -07:00
2025-01-19 08:53:02 -07:00
2025-04-08 23:06:31 +03:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-11 15:07:08 +02:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2024-11-27 07:18:25 -08:00
2024-11-27 07:18:25 -08:00
2025-02-22 13:30:41 +08:00
2025-02-22 13:30:41 +08:00
2024-11-27 07:18:25 -08:00
2025-04-29 13:46:17 +10:00
2024-11-27 07:18:25 -08:00