about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAndrew Cann <shum@canndrew.org>2016-12-01 01:12:03 +0800
committerAndrew Cann <shum@canndrew.org>2017-01-03 15:33:31 +0800
commit9c5e86d0cd0185bb1030b95196394adb6c2c7a7a (patch)
tree401280705091d3b8ab5f80f4a0e75774aee33408 /src/test/incremental/thinlto
parentbcdbe942e108e47ffa712fa44ad9b251c53c105b (diff)
downloadrust-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/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions