Cap the number of patterns pointed to by the lint
This commit is contained in:
parent
efb28bdd90
commit
36eced444e
5 changed files with 72 additions and 12 deletions
|
@ -596,6 +596,7 @@ pub(crate) struct UnreachablePattern<'tcx> {
|
|||
pub(crate) covered_by_one: Option<Span>,
|
||||
#[note(mir_build_unreachable_covered_by_many)]
|
||||
pub(crate) covered_by_many: Option<MultiSpan>,
|
||||
pub(crate) covered_by_many_n_more_count: usize,
|
||||
}
|
||||
|
||||
#[derive(Subdiagnostic)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue