Skip to content

Commit db04a2a

Browse files
committed
Add missing attribute for statement macros
This adds a missing OuterAttribute for macro invocations used in statement position. That is, something like the following is valid and compiles successfully. ```rust macro_rules! m { () => { compile_error!("poof"); }; } fn main() { #[cfg(false)] m!(); } ```
1 parent 5571257 commit db04a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/statements.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Statement ->
88
| Item
99
| LetStatement
1010
| ExpressionStatement
11-
| MacroInvocationSemi
11+
| OuterAttribute* MacroInvocationSemi
1212
```
1313

1414
r[statement.intro]

0 commit comments

Comments
 (0)