about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorcarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2024-05-27 11:41:41 -0500
committercarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2024-06-06 20:27:25 -0500
commit8aa2553b509b8ea033560aedebe0df7c1d8ca42c (patch)
tree8dfbc8d1b71032e6106075b868e1e35888129229 /compiler
parent87be1bae73586eaf917790f10ac2240186cb7b2b (diff)
downloadrust-8aa2553b509b8ea033560aedebe0df7c1d8ca42c.tar.gz
rust-8aa2553b509b8ea033560aedebe0df7c1d8ca42c.zip
Change comment to FIXME
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_ast/src/attr/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/attr/mod.rs b/compiler/rustc_ast/src/attr/mod.rs
index ed1b4733820..676a2377c3b 100644
--- a/compiler/rustc_ast/src/attr/mod.rs
+++ b/compiler/rustc_ast/src/attr/mod.rs
@@ -378,7 +378,9 @@ impl MetaItem {
             _ => path.span.hi(),
         };
         let span = path.span.with_hi(hi);
-        // FIX THIS LATER
+        // FIXME: This parses `unsafe()` not as unsafe attribute syntax in `MetaItem`,
+        // but as a parenthesized list. This (and likely `MetaItem`) should be changed in
+        // such a way that builtin macros don't accept extraneous `unsafe()`.
         Some(MetaItem { unsafety: Safety::Default, path, kind, span })
     }
 }