about summary refs log tree commit diff
path: root/compiler/rustc_expand/src
diff options
context:
space:
mode:
authorJana Dönszelmann <jonathan@donsz.nl>2025-07-03 13:29:36 +0200
committerGitHub <noreply@github.com>2025-07-03 13:29:36 +0200
commit5026d0cd8e45d2c882d1161edcb6c40e97c87a1a (patch)
treed561b00af759a4764087e1f9dae43dc19b930d16 /compiler/rustc_expand/src
parentf6d37a25a96fd2c20f4349474d81bbb35e2ecba3 (diff)
parent3d5d72b76105056af5886cbad4661a26f9409b8e (diff)
downloadrust-5026d0cd8e45d2c882d1161edcb6c40e97c87a1a.tar.gz
rust-5026d0cd8e45d2c882d1161edcb6c40e97c87a1a.zip
Rollup merge of #142876 - JonathanBrouwer:target_feature_parser, r=oli-obk
Port `#[target_feature]` to new attribute parsing infrastructure

Ports `target_feature` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971353197

r? ``@jdonszelmann``
Diffstat (limited to 'compiler/rustc_expand/src')
-rw-r--r--compiler/rustc_expand/src/base.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/base.rs b/compiler/rustc_expand/src/base.rs
index fe76d9e0b64..80f6e9d9fc4 100644
--- a/compiler/rustc_expand/src/base.rs
+++ b/compiler/rustc_expand/src/base.rs
@@ -880,7 +880,7 @@ impl SyntaxExtension {
         is_local: bool,
     ) -> SyntaxExtension {
         let allow_internal_unstable =
-            find_attr!(attrs, AttributeKind::AllowInternalUnstable(i) => i)
+            find_attr!(attrs, AttributeKind::AllowInternalUnstable(i, _) => i)
                 .map(|i| i.as_slice())
                 .unwrap_or_default();
         // FIXME(jdonszelman): allow_internal_unsafe isn't yet new-style