From db04a2a8829a447f2c80c8d18df735780b414a17 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 8 May 2025 19:27:22 -0700 Subject: [PATCH] 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!(); } ``` --- src/statements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statements.md b/src/statements.md index 8b10f0971..ef91db4f4 100644 --- a/src/statements.md +++ b/src/statements.md @@ -8,7 +8,7 @@ Statement -> | Item | LetStatement | ExpressionStatement - | MacroInvocationSemi + | OuterAttribute* MacroInvocationSemi ``` r[statement.intro]