diff options
| author | David Wood <david@davidtw.co> | 2019-10-14 18:55:32 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-10-23 22:10:58 +0100 |
| commit | 7ffbd62445b9706325d01ec8be8e70c41404fe0d (patch) | |
| tree | d968523abcb2a40c5dc6cc34f694d3bd999316c7 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 4a8c5b20c7772bc5342b83d4b0696ea216ef75a7 (diff) | |
| download | rust-7ffbd62445b9706325d01ec8be8e70c41404fe0d.tar.gz rust-7ffbd62445b9706325d01ec8be8e70c41404fe0d.zip | |
ignore uninhabited non-exhaustive variant fields
This commit modifies the uninhabitedness checking so that the fields of a non-exhaustive variant (which is not local) are ignored if they are uninhabited. This is an improvement over the previous behaviour which considered all non-local non-exhaustive variants useful because unreachable patterns are now detected. Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
