diff options
| author | bors <bors@rust-lang.org> | 2022-10-27 13:01:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-27 13:01:33 +0000 |
| commit | f5d225de3733aa2e1f91f41b5da4ec5dd773a06d (patch) | |
| tree | dc3f2b6981df8b5e4f86e4bb033666c4bfb5f404 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 710999d941cf1ed911331673f4fbde6279922bb4 (diff) | |
| parent | 98250af4a3835dd3e24595ab40b37ee79d72203a (diff) | |
| download | rust-f5d225de3733aa2e1f91f41b5da4ec5dd773a06d.tar.gz rust-f5d225de3733aa2e1f91f41b5da4ec5dd773a06d.zip | |
Auto merge of #9722 - ebobrow:question-mark, r=Manishearth
`question_mark` don't lint on `if let Err` with `else`
cc #9518
AFAICT the only time this would be a valid suggestion is the rather esoteric
```rust
let _ = if let Err(e) = x {
return Err(e);
} else {
// no side effects
x.unwrap()
}
```
which doesn't seem worth checking to me. Please correct me if I'm missing something.
changelog: [`question_mark`] don't lint on `if let Err` with `else`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
