Commit 759b8a8
committed
Allow macro-expanded macros in trailing expression positions to expand into statements:
```rust
macro_rules! m { () => { let x = 1; x } }
macro_rules! n { () => {
m!() //< This can now expand into statements
}}
fn main() { n!(); }
```
and revert needless fallout fixes.1 parent 52d485f commit 759b8a8
File tree
2 files changed
+3
-2
lines changed- src
- libsyntax/parse
- test/run-pass
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4066 | 4066 | | |
4067 | 4067 | | |
4068 | 4068 | | |
4069 | | - | |
| 4069 | + | |
| 4070 | + | |
4070 | 4071 | | |
4071 | 4072 | | |
4072 | 4073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments