diff options
| author | carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> | 2024-04-20 23:54:50 -0500 |
|---|---|---|
| committer | carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> | 2024-06-06 20:26:27 -0500 |
| commit | 67f5dd1ef112c8a87bc3353793cf4c1cece10c2d (patch) | |
| tree | afbeed6330ff7adea5d84a5ecf17dc3d1d3601b8 /compiler/rustc_expand/src/expand.rs | |
| parent | 76e7a0849c07d73e4d9afde8036ee8c450127cc8 (diff) | |
| download | rust-67f5dd1ef112c8a87bc3353793cf4c1cece10c2d.tar.gz rust-67f5dd1ef112c8a87bc3353793cf4c1cece10c2d.zip | |
Parse unsafe attributes
Diffstat (limited to 'compiler/rustc_expand/src/expand.rs')
| -rw-r--r-- | compiler/rustc_expand/src/expand.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/expand.rs b/compiler/rustc_expand/src/expand.rs index d8f0f221189..77cb617eb33 100644 --- a/compiler/rustc_expand/src/expand.rs +++ b/compiler/rustc_expand/src/expand.rs @@ -778,7 +778,13 @@ impl<'a, 'b> MacroExpander<'a, 'b> { if let SyntaxExtensionKind::Derive(..) = ext { self.gate_proc_macro_input(&item); } - let meta = ast::MetaItem { kind: MetaItemKind::Word, span, path }; + // FIX THIS LATER + let meta = ast::MetaItem { + unsafety: ast::Unsafe::No, + kind: MetaItemKind::Word, + span, + path, + }; let items = match expander.expand(self.cx, span, &meta, item, is_const) { ExpandResult::Ready(items) => items, ExpandResult::Retry(item) => { |
