From 4e1f9bd528aef7215bb3b446fcdf43368371da37 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Fri, 23 Feb 2024 06:42:05 +1100 Subject: Rename `SubDiagnostic` as `Subdiag`. Note the change of the `D` to `d`, to match all the other names that have `Subdiag` in them, such as `SubdiagnosticMessage` and `derive(Subdiagnostic)`. --- compiler/rustc_codegen_ssa/src/back/write.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_codegen_ssa/src') diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index cfe92f77de4..e41cc2cb12e 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -1885,7 +1885,7 @@ impl SharedEmitterMain { d.children = diag .children .into_iter() - .map(|sub| rustc_errors::SubDiagnostic { + .map(|sub| rustc_errors::Subdiag { level: sub.level, messages: sub.messages, span: MultiSpan::new(), -- cgit 1.4.1-3-g733a5