about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/validate_attr.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-07-24 15:08:28 +0200
committerGitHub <noreply@github.com>2025-07-24 15:08:28 +0200
commit6dc41520e96879d9d2507d81032c1a95da65e81e (patch)
treeca5c34accb0d7abdef01bc9101f1fd59ff393b4f /compiler/rustc_parse/src/validate_attr.rs
parent237098c92ddd3079643d4c8098b1d6ae39847282 (diff)
parentaf06bb925f2a3cd24ab2c623d75b5ea2847dc171 (diff)
downloadrust-6dc41520e96879d9d2507d81032c1a95da65e81e.tar.gz
rust-6dc41520e96879d9d2507d81032c1a95da65e81e.zip
Rollup merge of #144358 - JonathanBrouwer:fix-stability-malformed, r=oli-obk
Stop using the old `validate_attr` logic for stability attributes

I think this was accidentally missed when implementing the stability attributes?

r? `````@oli-obk`````
cc `````@jdonszelmann`````
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 ed7fb774908..73a341c3a3d 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