Add a note with a link to explain empty types
This commit is contained in:
parent
25964b541e
commit
efb28bdd90
18 changed files with 171 additions and 17 deletions
|
@ -588,6 +588,8 @@ pub(crate) struct UnreachablePattern<'tcx> {
|
|||
pub(crate) span: Option<Span>,
|
||||
#[subdiagnostic]
|
||||
pub(crate) matches_no_values: Option<UnreachableMatchesNoValues<'tcx>>,
|
||||
#[note(mir_build_unreachable_uninhabited_note)]
|
||||
pub(crate) uninhabited_note: Option<()>,
|
||||
#[label(mir_build_unreachable_covered_by_catchall)]
|
||||
pub(crate) covered_by_catchall: Option<Span>,
|
||||
#[label(mir_build_unreachable_covered_by_one)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue