remove cruft
This commit is contained in:
parent
2017a176eb
commit
96bd056695
@ -834,7 +834,6 @@ fn non_exhaustive_match<'p, 'tcx>(
|
|||||||
let all_arms_have_guards = arms.iter().all(|arm_id| thir[*arm_id].guard.is_some());
|
let all_arms_have_guards = arms.iter().all(|arm_id| thir[*arm_id].guard.is_some());
|
||||||
if !is_empty_match && all_arms_have_guards {
|
if !is_empty_match && all_arms_have_guards {
|
||||||
err.subdiagnostic(NonExhaustiveMatchAllArmsGuarded);
|
err.subdiagnostic(NonExhaustiveMatchAllArmsGuarded);
|
||||||
// err.note(NonExhaustiveMatchAllArmsGuarded);
|
|
||||||
}
|
}
|
||||||
if let Some((span, sugg)) = suggestion {
|
if let Some((span, sugg)) = suggestion {
|
||||||
err.span_suggestion_verbose(span, msg, sugg, Applicability::HasPlaceholders);
|
err.span_suggestion_verbose(span, msg, sugg, Applicability::HasPlaceholders);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user