Jana Dönszelmann
|
5c0a625205
|
move naked checks out of check_attr.rs
|
2025-06-23 12:22:57 +02:00 |
|
Jana Dönszelmann
|
73bcf4c117
|
make warnings methods on cx so it's easier to emit them elsewhere too
|
2025-06-23 12:21:44 +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
|
cd857f4bef
|
Rollup merge of #142539 - GrigorenkoPV:attributes/may_dangle, r=jdonszelmann
Port `#[may_dangle]` to the new attribute system
Very similar to rust-lang/rust#142498.
This is a part of rust-lang/rust#131229, so
r? `@jdonszelmann`
|
2025-06-21 15:32:05 +02:00 |
|
Pavel Grigorenko
|
045faa8c5c
|
Port #[may_dangle] to the new attribute system
|
2025-06-20 22:39:14 +03:00 |
|
Trevor Gross
|
d2a00eb65f
|
Rollup merge of #142494 - jdonszelmann:missing-attr-parsing-docs, r=oli-obk
Fix missing docs in `rustc_attr_parsing`
|
2025-06-20 13:35:59 -04:00 |
|
Jana Dönszelmann
|
7f49de2cca
|
fixup missing docs in attr parsing
|
2025-06-18 14:46:12 +02:00 |
|
Jana Dönszelmann
|
b64fd13a04
|
convert the optimize attribute to a new parser
|
2025-06-18 13:48:42 +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 |
|
Jonathan Dönszelmann
|
4f73cd0a6c
|
implement inline parser
|
2025-06-17 23:19:31 +02:00 |
|
Pavel Grigorenko
|
da8d6bbd50
|
Port #[rustc_as_ptr] to the new attribute system
|
2025-06-16 18:13:27 +03:00 |
|
Jana Dönszelmann
|
e2afe04e2e
|
remove 'static in some places
|
2025-06-12 09:57:38 +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 |
|
Jonathan Dönszelmann
|
4e1b6d13a2
|
Start using new diagnostic logic on all existing single parsers
|
2025-06-12 09:42:45 +02:00 |
|
Jana Dönszelmann
|
28bf61b9b3
|
introduce duplicate attribute diagnostic logic
|
2025-06-12 09:42:45 +02:00 |
|
Jana Dönszelmann
|
ce0438684d
|
consistently rename (old) attribute groups
|
2025-06-11 18:46:57 +02:00 |
|
Jana Dönszelmann
|
34241e5397
|
document attribute parsers better
|
2025-06-11 18:46:57 +02:00 |
|
xizheyin
|
1e49ad3862
|
Clean rustc_attr_parsing documentation
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
|
2025-06-05 17:11:46 +08:00 |
|
Nicholas Nethercote
|
354b1cbcca
|
Avoid rustc_span:: qualifiers.
In several files they are entirely unnecessary, with the relevant names
already imported. And in a few I have added the necessary `use` item.
|
2025-05-20 09:20:27 +10:00 |
|
Mara Bos
|
5f4d676e70
|
Remove #[rustc_macro_edition_2021].
It was only temporarily used by pin!(), which no longer needs it.
|
2025-04-20 11:15:46 +02:00 |
|
Jana Dönszelmann
|
7c085f7ffd
|
add rustc_macro_edition_2021
|
2025-03-19 17:37:35 +01: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 |
|
Jana Dönszelmann
|
dbd3b7928e
|
Introduce new parsing infrastructure and types for parsed attributes
fixup docs in parser
|
2025-02-24 14:26:06 +01:00 |
|
Jana Dönszelmann
|
115b3b03b0
|
Change span field accesses to method calls
|
2025-02-24 14:22:31 +01: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 |
|