diff options
| author | bors <bors@rust-lang.org> | 2016-01-04 16:54:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-01-04 16:54:11 +0000 |
| commit | b62289153cd94dc60e142e169816bbec68514906 (patch) | |
| tree | a78fd4fb9d719ea396e8e75836b9c051fa900bf8 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 543bb03d3ec864cfe47a9afd761101ea95f628f6 (diff) | |
| parent | f88c808b7311fe6cf6f8b4133fed7e33e437b325 (diff) | |
| download | rust-b62289153cd94dc60e142e169816bbec68514906.tar.gz rust-b62289153cd94dc60e142e169816bbec68514906.zip | |
Auto merge of #30553 - luqmana:mir-match-arm-guards, r=nikomatsakis
Fixes #30527.
```Rust
fn main() {
let _abc = match Some(101i8) {
Some(xyz) if xyz > 100 => xyz,
Some(_) => -1,
None => -2
};
}
```
Resulting MIR now includes the `Some(xyz)` arm, guard and all:

~~Not quite sure how to write a test for this.~~ Thinking too hard, just tested the end result.
r? @nikomatsakis
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
