diff options
| author | Andrew Cann <shum@canndrew.org> | 2016-12-01 01:12:03 +0800 |
|---|---|---|
| committer | Andrew Cann <shum@canndrew.org> | 2017-01-03 15:33:31 +0800 |
| commit | 9c5e86d0cd0185bb1030b95196394adb6c2c7a7a (patch) | |
| tree | 401280705091d3b8ab5f80f4a0e75774aee33408 /src/rustllvm/RustWrapper.cpp | |
| parent | bcdbe942e108e47ffa712fa44ad9b251c53c105b (diff) | |
| download | rust-9c5e86d0cd0185bb1030b95196394adb6c2c7a7a.tar.gz rust-9c5e86d0cd0185bb1030b95196394adb6c2c7a7a.zip | |
More pattern matching for empty types changes
Fix is_uninhabited for enum types. It used to assume that an enums variant's
fields were all private.
Fix MIR generation for irrefutable Variant pattern matches. This allows code
like this to work:
let x: Result<32, !> = Ok(123);
let Ok(y) = x;
Carry type information on dummy wildcard patterns. Sometimes we need to expand
these patterns into their constructors and we don't want to be expanding a
TyError into a Constructor::Single.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
