We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b025813 commit d5a7ec0Copy full SHA for d5a7ec0
compiler/rustc_mir_build/src/thir/pattern/check_match.rs
@@ -389,6 +389,8 @@ fn check_arms<'p, 'tcx>(
389
hir::MatchSource::AwaitDesugar | hir::MatchSource::TryDesugar => {}
390
}
391
392
+ Useful(unreachables) if unreachables.is_empty() => {}
393
+ // The arm is reachable, but contains unreachable subpatterns (from or-patterns).
394
Useful(unreachables) => {
395
let mut unreachables: Vec<_> = unreachables.into_iter().flatten().collect();
396
// Emit lints in the order in which they occur in the file.
0 commit comments