Commit db04a2a
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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments