diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-19 19:23:43 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-19 19:43:07 +0100 |
| commit | 13b71018c1845d9ab6b80199d20adfc3835f7341 (patch) | |
| tree | 04e8fb69e5efe9e754604ccdc44bda8629b3ead1 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 7d99e4e4c2ab30a23bd24565003dfaac4fb1b5d8 (diff) | |
| download | rust-13b71018c1845d9ab6b80199d20adfc3835f7341.tar.gz rust-13b71018c1845d9ab6b80199d20adfc3835f7341.zip | |
`lower_pattern_unadjusted`: remove dead code.
The code is dead because `check_pat_slice` will never have `expected = ty::Ref(...)` due to default-binding-modes (see `is_non_ref_pat`, `peel_off_references`). Moreover, if the type is not `ty::Array(_) | ty::Slice(_)` then `check_pat_slice` enters an error branch.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
