diff options
| author | bors <bors@rust-lang.org> | 2015-10-05 03:06:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-10-05 03:06:33 +0000 |
| commit | c298efdb1f5e9334c25dcc1ea98fcc35a0b4c05d (patch) | |
| tree | 73f9126b129198f1c4e7f1da93f49f4b3f29def2 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 0db2bc63ba72b11db0112468a1c08ff68aaa6ada (diff) | |
| parent | 7e1e830a6f6f32b053b71ac628c0fbf8698ad888 (diff) | |
| download | rust-c298efdb1f5e9334c25dcc1ea98fcc35a0b4c05d.tar.gz rust-c298efdb1f5e9334c25dcc1ea98fcc35a0b4c05d.zip | |
Auto merge of #28748 - nikomatsakis:universal-mir, r=pnkfelix
I had to fix a few things. Notable changes: 1. I removed the MIR support for constants, instead falling back to the existing `ConstVal`. I still think we ought to reform how we handle constants, but it's not clear to me that the approach I was taking is correct, and anyway I think we ought to do it separately. 2. I adjusted how we handle bindings in matches: we now *declare* all the bindings up front, rather than doing it as we encounter them. This is not only simpler, since we don't have to check if a binding has already been declared, it avoids ICEs if any of the arms turn out to be unreachable. 3. I do MIR construction *after* `check_match`, because it detects various broken cases. I'd like for `check_match` to be subsumed by MIR construction, but we can do that as a separate PR (if indeed it makes sense). I did a crater run and found no regressions in the wild: https://gist.github.com/nikomatsakis/0038f90e10c8ad00f2f8
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
