1
Fork 0

Add a machine-applicable suggestion to "unreachable pattern"

This commit is contained in:
Nadrieril 2024-08-19 21:33:48 +02:00
parent 0307e401c2
commit 1f69638400
19 changed files with 502 additions and 98 deletions

View file

@ -598,6 +598,8 @@ pub(crate) struct UnreachablePattern<'tcx> {
#[note(mir_build_unreachable_covered_by_many)]
pub(crate) covered_by_many: Option<MultiSpan>,
pub(crate) covered_by_many_n_more_count: usize,
#[suggestion(code = "", applicability = "machine-applicable")]
pub(crate) suggest_remove: Option<Span>,
}
#[derive(Diagnostic)]