about summary refs log tree commit diff
path: root/compiler/rustc_expand
diff options
context:
space:
mode:
authorSasha Pourcelot <sasha.pourcelot@protonmail.com>2025-08-03 11:54:07 +0200
committerSasha Pourcelot <sasha.pourcelot@protonmail.com>2025-08-11 15:01:52 +0200
commit6603fe1caa9aefea78aea19c587828cdcffc883d (patch)
tree598fa31565a96e679286e1bd1fe2830428bd7ab5 /compiler/rustc_expand
parent577166503aee7290e09374da21f4045c455acfd5 (diff)
downloadrust-6603fe1caa9aefea78aea19c587828cdcffc883d.tar.gz
rust-6603fe1caa9aefea78aea19c587828cdcffc883d.zip
Port `#[allow_internal_unsafe]` to the new attribute system (attempt 2)
Diffstat (limited to 'compiler/rustc_expand')
-rw-r--r--compiler/rustc_expand/src/base.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_expand/src/base.rs b/compiler/rustc_expand/src/base.rs
index c234aa43c09..7da3bf27eb5 100644
--- a/compiler/rustc_expand/src/base.rs
+++ b/compiler/rustc_expand/src/base.rs
@@ -904,10 +904,7 @@ impl SyntaxExtension {
             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
-        // let allow_internal_unsafe = find_attr!(attrs, AttributeKind::AllowInternalUnsafe);
-        let allow_internal_unsafe =
-            ast::attr::find_by_name(attrs, sym::allow_internal_unsafe).is_some();
+        let allow_internal_unsafe = find_attr!(attrs, AttributeKind::AllowInternalUnsafe(_));
 
         let local_inner_macros = ast::attr::find_by_name(attrs, sym::macro_export)
             .and_then(|macro_export| macro_export.meta_item_list())