Skip to content

Commit 8aa2553

Browse files
committed
Change comment to FIXME
1 parent 87be1ba commit 8aa2553

File tree

1 file changed

+3
-1
lines changed
  • compiler/rustc_ast/src/attr

1 file changed

+3
-1
lines changed

Diff for: compiler/rustc_ast/src/attr/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ impl MetaItem {
378378
_ => path.span.hi(),
379379
};
380380
let span = path.span.with_hi(hi);
381-
// FIX THIS LATER
381+
// FIXME: This parses `unsafe()` not as unsafe attribute syntax in `MetaItem`,
382+
// but as a parenthesized list. This (and likely `MetaItem`) should be changed in
383+
// such a way that builtin macros don't accept extraneous `unsafe()`.
382384
Some(MetaItem { unsafety: Safety::Default, path, kind, span })
383385
}
384386
}

0 commit comments

Comments
 (0)