diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-25 06:18:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-25 06:18:06 +0200 |
| commit | 50e8c41a817b3c9139055eb13bec5108215e0e3f (patch) | |
| tree | ca873bc7666127d6aa87a3209bd787f96930c4f4 /src/test/debuginfo/enum-thinlto.rs | |
| parent | ee7f9de4c44dff2c83d2ea4cf5e1b2d5846dfb34 (diff) | |
| parent | 7ffbd62445b9706325d01ec8be8e70c41404fe0d (diff) | |
| download | rust-50e8c41a817b3c9139055eb13bec5108215e0e3f.tar.gz rust-50e8c41a817b3c9139055eb13bec5108215e0e3f.zip | |
Rollup merge of #65414 - davidtwco:issue-65157-non-exhaustive-always-useful, r=varkor
ignore uninhabited non-exhaustive variant fields Fixes #65157. This PR 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. r? @arielb1 cc @varkor
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
