about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-01-04 16:54:11 +0000
committerbors <bors@rust-lang.org>2016-01-04 16:54:11 +0000
commitb62289153cd94dc60e142e169816bbec68514906 (patch)
treea78fd4fb9d719ea396e8e75836b9c051fa900bf8 /src/libstd/sys/unix/stack_overflow.rs
parent543bb03d3ec864cfe47a9afd761101ea95f628f6 (diff)
parentf88c808b7311fe6cf6f8b4133fed7e33e437b325 (diff)
downloadrust-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:
![match.dot](https://cloud.githubusercontent.com/assets/287063/11999413/066f7610-aa8b-11e5-927b-24215af57fc4.png)

~~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