summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-16 13:10:24 +0000
committerbors <bors@rust-lang.org>2023-05-16 13:10:24 +0000
commit9239760da89cd8e9a51536beeb0a23762064037d (patch)
tree322523d6608b046ba3de89b4e86e786ac64d80c6 /tests/rustdoc-js-std/parser-errors.js
parenta673ad6b5746a6256cb898edb8b888163df1872c (diff)
parent228225842b0345b037fa1959b99178f68ea26d6e (diff)
downloadrust-9239760da89cd8e9a51536beeb0a23762064037d.tar.gz
Auto merge of #105750 - oli-obk:valtrees, r=lcnr
Always fall back to PartialEq when a constant in a pattern is not recursively structural-eq Right now we destructure the constant as far as we can, but with this PR we just don't take it apart anymore. This is preparatory work for moving to always using valtrees, as these will just do a single conversion of the constant to a valtree at the start, and if that fails, fall back to `PartialEq`. This removes a few cases where we emitted the `unreachable pattern` lint, because we stop looking into the constant deeply enough to detect that a constant is already covered by another pattern. Previous work: https://github.com/rust-lang/rust/pull/70743 This is groundwork towards fixing https://github.com/rust-lang/rust/issues/83085 and https://github.com/rust-lang/rust/issues/105047
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions