diff options
| author | bors <bors@rust-lang.org> | 2025-08-09 00:04:35 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-08-09 00:04:35 +0000 |
| commit | 4c7749e8c8e50ad146da599eea3a250160c1bc2b (patch) | |
| tree | be60b7e7d9e15c2a92dba7ff1d1f58172a73f336 /compiler/rustc_expand | |
| parent | ffb9d94dcf4ade0d534842be3672d5e9f47e1333 (diff) | |
| parent | 866bc26475277c31f0fc5409ac061951ae48b827 (diff) | |
| download | rust-4c7749e8c8e50ad146da599eea3a250160c1bc2b.tar.gz rust-4c7749e8c8e50ad146da599eea3a250160c1bc2b.zip | |
Auto merge of #145086 - jdonszelmann:revert-allow-internal-unsafe, r=Kobzol
Revert "Port `#[allow_internal_unsafe]` to the new attribute system" This reverts commit 4f7a6ace9e2f2192af7b5d32f4b1664189e0e143 (PR: https://github.com/rust-lang/rust/pull/144857) r? `@Kobzol` cc: `@scrabsha` clean revert it seems :3
Diffstat (limited to 'compiler/rustc_expand')
| -rw-r--r-- | compiler/rustc_expand/src/base.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/base.rs b/compiler/rustc_expand/src/base.rs index 163fe34c194..1a9832b2fe2 100644 --- a/compiler/rustc_expand/src/base.rs +++ b/compiler/rustc_expand/src/base.rs @@ -905,7 +905,10 @@ impl SyntaxExtension { find_attr!(attrs, AttributeKind::AllowInternalUnstable(i, _) => i) .map(|i| i.as_slice()) .unwrap_or_default(); - let allow_internal_unsafe = find_attr!(attrs, AttributeKind::AllowInternalUnsafe(_)); + // 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 local_inner_macros = ast::attr::find_by_name(attrs, sym::macro_export) .and_then(|macro_export| macro_export.meta_item_list()) |
