]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #16037 : erickt/rust/quote_arm, r=acrichto
authorbors <bors@rust-lang.org>
Wed, 30 Jul 2014 13:01:10 +0000 (13:01 +0000)
committerbors <bors@rust-lang.org>
Wed, 30 Jul 2014 13:01:10 +0000 (13:01 +0000)
This adds support for `quote_arm!(cx, $pat => $expr)`, and `macro_rules!(($a:arm) => (...))`. It also fixes a bug in pretty printing, where this would generate invalid code:

```
match { 5i } {
    1 => 2,
    _ => 3,
}
```

It would generate this code:

```
match { 5i } {
    1 => 2
    _ => 3
}
```

Finally, it adds a couple helper methods to `ExtCtxt`.


Trivial merge