Files
rust/tests/ui/attributes
Matthias Krüger 0c95abb979 Rollup merge of #149524 - JonathanBrouwer:move_attr_safety, r=jdonszelmann
Move attribute safety checking to attribute parsing

This PR moves attribute safety checking to be done during attribute parsing. The `cfg` and `cfg_attr` attribute no longer need special-cased safety checking, yay!

This PR is a part 1 of 2, in the second part I'd like to define attribute safety in the attribute parsers rather than getting the information from BUILTIN_ATTRIBUTE_MAP, but to keep PRs reviewable lets do that separately.

Fixes https://github.com/rust-lang/rust/issues/148453 by reordering the diagnostics. The "cannot find attribute" diagnostic now appears first, but both diagnostics still appear.

r? `@jdonszelmann`
2025-12-04 16:07:53 +01:00
..
2025-05-03 17:22:52 +02:00
2025-08-14 18:18:42 +02:00
2025-05-12 16:35:09 +02:00
2024-08-16 09:07:55 +10:00
2023-01-11 09:32:08 +00:00
2025-08-14 18:18:42 +02:00
2025-08-14 18:18:42 +02:00
2025-06-08 11:25:09 +05:00
2025-02-25 18:17:32 +01:00
2025-02-25 18:17:32 +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-02-29 14:43:43 +01:00
2025-08-14 18:18:42 +02:00
2025-06-20 15:06:29 +02:00
2025-06-28 16:24:17 +05:00
2025-06-29 15:37:33 +05:00
2025-06-18 12:37:08 +02:00
2025-06-18 12:37:08 +02:00
2023-01-11 09:32:08 +00:00
2025-01-07 16:04:14 +01:00
2025-08-14 18:18:42 +02:00
2023-01-11 09:32:08 +00:00
2025-08-14 18:18:42 +02:00
2025-08-14 18:18:42 +02:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-08-14 18:18:42 +02:00
2025-08-14 18:18:42 +02:00
2025-08-19 09:03:54 +02:00
2025-08-14 18:18:42 +02:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00