1
Fork 0

Add a note with a link to explain empty types

This commit is contained in:
Nadrieril 2024-08-19 21:08:18 +02:00
parent 25964b541e
commit efb28bdd90
18 changed files with 171 additions and 17 deletions

View file

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