From e9f0d9be0e42decc34d236d86e9b9140c6168aa2 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Fri, 8 Mar 2024 12:03:51 +1100 Subject: Rename `DecorateLint` as `LintDiagnostic`. To match `derive(LintDiagnostic)`. --- compiler/rustc_pattern_analysis/src/lints.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_pattern_analysis/src') diff --git a/compiler/rustc_pattern_analysis/src/lints.rs b/compiler/rustc_pattern_analysis/src/lints.rs index 30e775733de..16530960656 100644 --- a/compiler/rustc_pattern_analysis/src/lints.rs +++ b/compiler/rustc_pattern_analysis/src/lints.rs @@ -97,7 +97,7 @@ pub(crate) fn lint_nonexhaustive_missing_variants<'p, 'tcx>( lint_name: "non_exhaustive_omitted_patterns", }; - use rustc_errors::DecorateLint; + use rustc_errors::LintDiagnostic; let mut err = rcx.tcx.dcx().struct_span_warn(arm.pat.data().unwrap().span, ""); err.primary_message(decorator.msg()); decorator.decorate_lint(&mut err); -- cgit 1.4.1-3-g733a5