1
Fork 0

use translatable subdiagnostic

This commit is contained in:
Eric Mark Martin 2023-06-28 01:49:21 -04:00
parent e79b179412
commit 2017a176eb
3 changed files with 9 additions and 1 deletions

View file

@ -432,6 +432,10 @@ impl<'a> IntoDiagnostic<'a> for NonExhaustivePatternsTypeNotEmpty<'_, '_, '_> {
}
}
#[derive(Subdiagnostic)]
#[note(mir_build_non_exhaustive_match_all_arms_guarded)]
pub struct NonExhaustiveMatchAllArmsGuarded;
#[derive(Diagnostic)]
#[diag(mir_build_static_in_pattern, code = "E0158")]
pub struct StaticInPattern {