From 191fac68266b73158ff048c83556ea91cbf977fd Mon Sep 17 00:00:00 2001 From: Jhonny Bill Mena Date: Sun, 18 Sep 2022 11:46:16 -0400 Subject: UPDATE - rename AddSubdiagnostic trait to AddToDiagnostic --- compiler/rustc_macros/src/diagnostics/subdiagnostic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_macros/src') diff --git a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs index dce5d3cfb84..f1bb7feb062 100644 --- a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs +++ b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs @@ -166,7 +166,7 @@ impl<'a> SessionSubdiagnosticDerive<'a> { }; let ret = structure.gen_impl(quote! { - gen impl rustc_errors::AddSubdiagnostic for @Self { + gen impl rustc_errors::AddToDiagnostic for @Self { fn add_to_diagnostic(self, #diag: &mut rustc_errors::Diagnostic) { use rustc_errors::{Applicability, IntoDiagnosticArg}; #implementation -- cgit 1.4.1-3-g733a5