]> git.lizzy.rs Git - rust.git/commit
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)
commit3ab170ffc5e45d31eef85db8fd7a3b68764f77c2
tree8146c564ee7c93820cb78da85b9cd9f1d51cc081
parent692077b6431460b96beb0ccf4f38299618d51db2
parente841a88b9298b0d1fef93192d8e163b44645fc73
auto merge of #16037 : erickt/rust/quote_arm, r=acrichto

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`.