summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>2016-08-14 16:21:51 +0300
committerAriel Ben-Yehuda <arielb1@mail.tau.ac.il>2016-08-14 16:21:51 +0300
commit727a37a6feaa88de9dbf521f1af37a64bd997710 (patch)
tree9c9abf396017da9e8abed76a45d9a972170ba48a /src/libsyntax/parse
parent052e32bd96e59d0ce53f6f533c108ff26cb6fc77 (diff)
prohibit splitting literal patterns
Before PR #32202, check_match tended to report bogus errors or ICE
when encountering a pattern that split a literal, e.g.

```Rust
match foo {
    "bar" => {},
    &_ => {}
}
```

That PR fixed these issues, but trans::_match generates bad code
when it encounters these matches. MIR trans has that fixed, but
it is waiting for 6 weeks in beta. Report an error when encountering
these instead.

Fixes issue #35044.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions