Warn when lint level is set on a match arm

This commit is contained in:
Nadrieril 2023-10-23 18:55:04 +02:00
parent 7b19fb88be
commit 61d0fc7cf5
7 changed files with 107 additions and 27 deletions

View file

@ -789,6 +789,11 @@ pub(crate) struct NonExhaustiveOmittedPattern<'tcx> {
pub uncovered: Uncovered<'tcx>,
}
#[derive(LintDiagnostic)]
#[diag(mir_build_non_exhaustive_omitted_pattern_lint_on_arm)]
#[help]
pub(crate) struct NonExhaustiveOmittedPatternLintOnArm;
#[derive(Subdiagnostic)]
#[label(mir_build_uncovered)]
pub(crate) struct Uncovered<'tcx> {