diff options
| author | bors <bors@rust-lang.org> | 2023-04-10 21:52:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-10 21:52:47 +0000 |
| commit | e22019d0b78778a8a3ae1067082d2481690d4210 (patch) | |
| tree | e54ee7bdc39a24e85aa8da2212470e21436d50d9 /compiler/rustc_errors/src/snippet.rs | |
| parent | 4904d754e07fd802bcd377c7e19d877a2f2895c8 (diff) | |
| parent | 9cf57d0a8f95c51b0faeda4ce5c5b4cd629f1cae (diff) | |
| download | rust-e22019d0b78778a8a3ae1067082d2481690d4210.tar.gz rust-e22019d0b78778a8a3ae1067082d2481690d4210.zip | |
Auto merge of #10593 - feniljain:fix-needless-return, r=xFrednet
fix(needless_return): do not trigger on ambiguous match arms return If we see a case where match returns something other than `()`, we just skip `needless_return` lint in that case Should fix #10546 Relevant Zulip Discussion: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Issue.20.2310546 --- changelog: FP: [`needless_return`]: No longer lints match statements with incompatible branches [#10593](https://github.com/rust-lang/rust-clippy/pull/10593) <!-- changelog_checked -->
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
