about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/const_eval
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-03-08 12:03:51 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-03-11 10:04:50 +1100
commite9f0d9be0e42decc34d236d86e9b9140c6168aa2 (patch)
tree65279bbd21ac4f4983ed6e538869199e89c159db /compiler/rustc_const_eval/src/const_eval
parent541d7cc65c56402f31335e41075838c0da5fbe01 (diff)
Rename `DecorateLint` as `LintDiagnostic`.
To match `derive(LintDiagnostic)`.
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/error.rs b/compiler/rustc_const_eval/src/const_eval/error.rs
index 4b1664b8156..b6adee435ba 100644
--- a/compiler/rustc_const_eval/src/const_eval/error.rs
+++ b/compiler/rustc_const_eval/src/const_eval/error.rs
@@ -168,7 +168,7 @@ pub(super) fn lint<'tcx, 'mir, L>(
     lint: &'static rustc_session::lint::Lint,
     decorator: impl FnOnce(Vec<errors::FrameNote>) -> L,
 ) where
-    L: for<'a> rustc_errors::DecorateLint<'a, ()>,
+    L: for<'a> rustc_errors::LintDiagnostic<'a, ()>,
 {
     let (span, frames) = get_span_and_frames(tcx, machine);