]> git.lizzy.rs Git - rust.git/commit
Allow macro-expanded macros in trailing expression positions to expand into statements:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>
Tue, 5 Jul 2016 08:21:25 +0000 (08:21 +0000)
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>
Wed, 13 Jul 2016 04:49:32 +0000 (04:49 +0000)
commit759b8a8e7dbe4e9ada9f33847ab8d698ee020165
tree333dc9fc06e32c5eeeffda655327c53fbd55113f
parent52d485fe0d11d18c51c8868872d472f07b8e06d2
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.
src/libsyntax/parse/parser.rs
src/test/run-pass/simd-intrinsic-generic-cast.rs