diff options
| author | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2016-08-14 16:21:51 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2016-08-14 16:21:51 +0300 |
| commit | 727a37a6feaa88de9dbf521f1af37a64bd997710 (patch) | |
| tree | 9c9abf396017da9e8abed76a45d9a972170ba48a /src/libstd/sync | |
| parent | 052e32bd96e59d0ce53f6f533c108ff26cb6fc77 (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/libstd/sync')
0 files changed, 0 insertions, 0 deletions
