about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-07-30 16:26:55 +0900
committerGitHub <noreply@github.com>2021-07-30 16:26:55 +0900
commitaaef1a16495092ca910128d1dd70bb169303e2a1 (patch)
tree93761debb2f203f87f251abf1a90e52d4aeebccd /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent7e4b1737ff3c054fb8a9893515ced938b5fe24ba (diff)
parentd380ed13043d52139b3c766a07edb93b891e2be6 (diff)
downloadrust-aaef1a16495092ca910128d1dd70bb169303e2a1.tar.gz
rust-aaef1a16495092ca910128d1dd70bb169303e2a1.zip
Rollup merge of #87554 - sexxi-goose:fix-issue-87426, r=nikomatsakis
2229: Discr should be read when PatKind is Range

This PR fixes an issue related to pattern matching in closures when Edition 2021 is enabled.

- If any of the patterns the discr is being matched on is `PatKind::Range` then the discr should be read

r? ```@nikomatsakis```

Closes https://github.com/rust-lang/rust/issues/87426
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions