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-11-23 20:34:07 +00:00
2025-11-16 20:30:53 +11:00
2025-11-27 17:55:34 +07:00
2025-11-27 15:59:11 +01:00
2025-11-10 09:57:08 +08:00
2025-11-25 10:19:44 +01:00
2025-12-04 16:07:53 +01:00
2025-11-25 10:19:44 +01:00
2025-12-03 17:00:20 +01:00
2025-11-05 11:25:27 +00:00
2025-11-28 15:30:43 +11:00
2025-12-04 16:07:53 +01:00
2025-11-18 00:10:03 +00:00
2025-11-29 10:34:07 +01:00
2025-11-28 22:58:22 +00:00
2025-12-03 14:10:54 +03:00
2025-12-01 13:00:22 +01:00
2025-11-11 13:30:50 +00:00
2025-11-05 11:25:27 +00:00
2025-11-23 00:19:53 -08:00
2025-12-02 22:02:30 +01:00
2025-11-21 14:16:12 +00:00
2025-12-02 13:55:16 +00:00
2025-12-03 17:00:06 +01:00
2025-11-27 22:48:00 +01:00
2025-11-05 11:25:27 +00:00
2025-09-02 19:12:54 +10:00
2025-11-05 11:25:29 +00:00
2025-10-12 08:08:30 +00:00
2025-12-03 17:00:20 +01:00
2025-12-02 17:21:01 +00:00
2025-08-20 15:04:00 -07:00
2025-11-25 10:19:44 +01:00
2025-12-02 17:21:01 +00:00
2025-11-05 11:25:27 +00:00
2025-11-05 11:25:27 +00:00
2025-09-02 19:12:54 +10:00
2025-12-01 12:40:49 +08:00
2025-12-03 14:34:07 -08:00
2025-09-26 17:53:49 +02:00
2025-12-03 17:00:06 +01:00
2025-12-04 16:07:53 +01:00
2025-11-26 23:32:03 +11:00
2025-10-15 13:17:25 +01:00
2025-10-06 14:54:38 +00:00
2025-11-27 20:07:15 +01:00
2025-11-29 20:54:05 +01:00
2025-12-02 18:28:05 +00:00
2025-12-01 23:44:49 +00:00
2025-12-04 08:46:18 +01:00
2025-11-19 00:17:37 -05:00
2025-11-27 15:59:11 +01:00
2025-12-03 18:09:40 +00:00
2025-11-05 11:25:29 +00:00
2025-11-28 23:31:48 -05:00
2025-11-13 01:36:35 +09:00
2025-11-05 11:25:27 +00:00
2025-09-02 19:12:54 +10:00
2025-11-29 21:12:25 +11:00
2025-11-14 17:12:50 -05:00
2025-11-14 09:01:22 +08:00
2025-11-15 09:05:08 -05:00
2025-12-02 22:02:30 +01:00
2025-10-28 20:39:32 +11:00
2025-11-05 11:25:29 +00:00
2025-12-03 14:34:07 -08:00
2025-11-27 12:36:48 +11:00
2025-11-26 23:32:05 +11:00
2025-12-04 08:46:24 +01:00
2025-10-12 08:08:30 +00:00
2025-12-04 08:46:19 +01:00
2025-11-08 13:50:47 -05:00
2025-10-09 01:24:55 +08:00
2025-12-01 18:35:11 +01:00
2025-11-10 15:41:43 +00:00
2025-10-31 14:14:05 -04:00
2025-09-19 12:00:30 -07:00