1
Fork 0

Cap the number of patterns pointed to by the lint

This commit is contained in:
Nadrieril 2024-08-19 21:26:32 +02:00
parent efb28bdd90
commit 36eced444e
5 changed files with 72 additions and 12 deletions

View file

@ -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)]