diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-03-19 17:29:31 +0100 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-03-19 17:37:35 +0100 |
| commit | 7c085f7ffdf731175430b908bc11bd97282cff9e (patch) | |
| tree | 83cbcafe22c15fd17f0e6675486a15f24f617ba3 /compiler/rustc_feature/src/builtin_attrs.rs | |
| parent | c4b38a596767c9c6275c937cf3a2d4b9612b4875 (diff) | |
| download | rust-7c085f7ffdf731175430b908bc11bd97282cff9e.tar.gz rust-7c085f7ffdf731175430b908bc11bd97282cff9e.zip | |
add rustc_macro_edition_2021
Diffstat (limited to 'compiler/rustc_feature/src/builtin_attrs.rs')
| -rw-r--r-- | compiler/rustc_feature/src/builtin_attrs.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs index 40857e0066e..2511ae610f8 100644 --- a/compiler/rustc_feature/src/builtin_attrs.rs +++ b/compiler/rustc_feature/src/builtin_attrs.rs @@ -661,6 +661,14 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ "`rustc_never_type_options` is used to experiment with never type fallback and work on \ never type stabilization, and will never be stable" ), + rustc_attr!( + rustc_macro_edition_2021, + Normal, + template!(Word), + ErrorFollowing, + EncodeCrossCrate::No, + "makes spans in this macro edition 2021" + ), // ========================================================================== // Internal attributes: Runtime related: |
