about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-19 19:23:43 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-12-19 19:43:07 +0100
commit13b71018c1845d9ab6b80199d20adfc3835f7341 (patch)
tree04e8fb69e5efe9e754604ccdc44bda8629b3ead1 /src/test/debuginfo/enum-thinlto.rs
parent7d99e4e4c2ab30a23bd24565003dfaac4fb1b5d8 (diff)
downloadrust-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