about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/validate_attr.rs
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-23 14:31:50 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-23 14:31:50 +0200
commitaf06bb925f2a3cd24ab2c623d75b5ea2847dc171 (patch)
tree79d74888836ad74c3f585a8a79dba352dadf5fe7 /compiler/rustc_parse/src/validate_attr.rs
parent20aa182235d6b27ecee519f1d18ee30f0d1c4a61 (diff)
downloadrust-af06bb925f2a3cd24ab2c623d75b5ea2847dc171.tar.gz
rust-af06bb925f2a3cd24ab2c623d75b5ea2847dc171.zip
Stop using the old `validate_attr` logic for stability attributes
Diffstat (limited to 'compiler/rustc_parse/src/validate_attr.rs')
-rw-r--r--compiler/rustc_parse/src/validate_attr.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs
index cca621103b5..f040fed7162 100644
--- a/compiler/rustc_parse/src/validate_attr.rs
+++ b/compiler/rustc_parse/src/validate_attr.rs
@@ -285,6 +285,9 @@ pub fn check_builtin_meta_item(
                 | sym::rustc_do_not_implement_via_object
                 | sym::rustc_coinductive
                 | sym::const_trait
+                | sym::stable
+                | sym::unstable
+                | sym::rustc_allowed_through_unstable_modules
                 | sym::rustc_specialization_trait
                 | sym::rustc_unsafe_specialization_marker
                 | sym::rustc_allow_incoherent_impl