Add a machine-applicable suggestion to "unreachable pattern"
This commit is contained in:
parent
0307e401c2
commit
1f69638400
19 changed files with 502 additions and 98 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue