From 541d7cc65c56402f31335e41075838c0da5fbe01 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 6 Mar 2024 14:00:16 +1100 Subject: Rename `AddToDiagnostic` as `Subdiagnostic`. To match `derive(Subdiagnostic)`. Also rename `add_to_diagnostic{,_with}` as `add_to_diag{,_with}`. --- compiler/rustc_errors/src/diagnostic_impls.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/rustc_errors/src/diagnostic_impls.rs') diff --git a/compiler/rustc_errors/src/diagnostic_impls.rs b/compiler/rustc_errors/src/diagnostic_impls.rs index 5f65f35cc30..f90190797ae 100644 --- a/compiler/rustc_errors/src/diagnostic_impls.rs +++ b/compiler/rustc_errors/src/diagnostic_impls.rs @@ -1,5 +1,5 @@ use crate::diagnostic::DiagLocation; -use crate::{fluent_generated as fluent, AddToDiagnostic}; +use crate::{fluent_generated as fluent, Subdiagnostic}; use crate::{ Diag, DiagArgValue, DiagCtxt, Diagnostic, EmissionGuarantee, ErrCode, IntoDiagArg, Level, SubdiagMessageOp, @@ -297,8 +297,8 @@ pub struct SingleLabelManySpans { pub spans: Vec, pub label: &'static str, } -impl AddToDiagnostic for SingleLabelManySpans { - fn add_to_diagnostic_with>( +impl Subdiagnostic for SingleLabelManySpans { + fn add_to_diag_with>( self, diag: &mut Diag<'_, G>, _: F, -- cgit 1.4.1-3-g733a5