Jonathan Brouwer
d22ce4c5eb
Fix duplicate help on export_name and others
...
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com >
2025-07-01 16:10:07 +02:00
bors
86e05cd300
Auto merge of #142921 - JonathanBrouwer:rustc_attributes_parser, r=oli-obk
...
Port `#[rustc_layout_scalar_valid_range_start/end]` to the new attrib…
Ports `rustc_layout_scalar_valid_range_start` and `rustc_layout_scalar_valid_range_end` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971353197
r? `@jdonszelmann`
2025-07-01 08:33:00 +00:00
Anne Stijns
54cec0cf5a
Port #[link_section] to the new attribute parsing infrastructure
2025-06-29 16:23:46 +02:00
Jonathan Brouwer
f98ea3d144
Port #[rustc_layout_scalar_valid_range_start/end] to the new attribute parsing infrastructure
...
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com >
2025-06-27 09:08:21 +02:00
Jonathan Brouwer
287d9afce7
Port #[export_name] to the new attribute parsing infrastructure
...
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com >
2025-06-26 08:50:42 +02:00
Pavel Grigorenko
aa80a2b62c
Port #[rustc_skip_during_method_dispatch] to the new attribute system
2025-06-23 22:48:20 +03:00
Jana Dönszelmann
5c0a625205
move naked checks out of check_attr.rs
2025-06-23 12:22:57 +02:00
Jonathan Brouwer
b24df42488
Port #[must_use] to new attribute parsing infrastructure
...
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com >
2025-06-22 14:51:58 +02:00
Jana Dönszelmann
de0fd27f34
cold
2025-06-20 15:06:29 +02:00
Folkert de Vries
1fdf2b5620
add #[align] attribute
...
Right now it's used for functions with `fn_align`, in the future it will
get more uses (statics, struct fields, etc.)
2025-06-18 12:37:08 +02:00
Jana Dönszelmann
5ab5f8a24a
make error codes reflect reality better
2025-06-17 23:22:51 +02:00
Jana Dönszelmann
672452d573
use consistent attr errors in all attribute parsers
2025-06-17 23:19:31 +02:00
Jana Dönszelmann
ee976bbbca
fix bugs in inline/force_inline and diagnostics of all attr parsers
2025-06-17 23:19:31 +02:00
Jana Dönszelmann
e6a5f281ec
add error message for unused duplicate
2025-06-12 09:56:47 +02:00
Jana Dönszelmann
6072207a11
introduce new lint infra
...
lint on duplicates during attribute parsing
To do this we stuff them in the diagnostic context to be emitted after
hir is constructed
2025-06-12 09:56:47 +02:00
Nicholas Nethercote
603766cd72
Avoid some unwraps.
...
By using `@` patterns more.
Also, use `Symbol` more in a couple of errors to avoid some unnecessary
conversions to strings. This even removes a lifetime.
2025-05-07 12:56:44 +10:00
Jana Dönszelmann
7e0f5b5016
Introduce new-style attribute parsers for several attributes
...
note: compiler compiles but librustdoc and clippy don't
2025-02-24 14:31:17 +01:00
bjorn3
1fcae03369
Rustfmt
2025-02-08 22:12:13 +00:00
Jonathan Dönszelmann
efb98b6552
rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures
2024-12-16 19:08:19 +01:00