From 0d4dca2b8225a5ed9af715de5c2a07f63fadb26f Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Sat, 11 May 2024 12:46:11 -0400 Subject: Uplift `ExistentialTraitRef`, `ExistentialProjection`, `ProjectionPredicate` --- compiler/rustc_errors/src/diagnostic_impls.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'compiler/rustc_errors') diff --git a/compiler/rustc_errors/src/diagnostic_impls.rs b/compiler/rustc_errors/src/diagnostic_impls.rs index 40560a5ad79..60a2f5469fe 100644 --- a/compiler/rustc_errors/src/diagnostic_impls.rs +++ b/compiler/rustc_errors/src/diagnostic_impls.rs @@ -100,6 +100,14 @@ impl IntoDiagArg for rustc_type_ir::TraitRef { } } + + +impl IntoDiagArg for rustc_type_ir::ExistentialTraitRef { + fn into_diag_arg(self) -> DiagArgValue { + self.to_string().into_diag_arg() + } +} + into_diag_arg_for_number!(i8, u8, i16, u16, i32, u32, i64, u64, i128, u128, isize, usize); impl IntoDiagArg for bool { -- cgit 1.4.1-3-g733a5