diff options
| author | Ralf Jung <post@ralfj.de> | 2024-05-12 15:44:24 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-05-12 15:44:24 +0200 |
| commit | 1e7fba9e06965b6db8a173cb497068401eea3bae (patch) | |
| tree | f3ada808f56974250673700372722ba24596027f /compiler/rustc_errors | |
| parent | 7d565dfa0fa40991df9e3567f991284b4912ab0b (diff) | |
| parent | f8433a82b4a4120e34de236a68d0cfeaea6e60c3 (diff) | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic_impls.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_impls.rs b/compiler/rustc_errors/src/diagnostic_impls.rs index 40560a5ad79..2cc0167dbaa 100644 --- a/compiler/rustc_errors/src/diagnostic_impls.rs +++ b/compiler/rustc_errors/src/diagnostic_impls.rs @@ -100,6 +100,12 @@ impl<I: rustc_type_ir::Interner> IntoDiagArg for rustc_type_ir::TraitRef<I> { } } +impl<I: rustc_type_ir::Interner> IntoDiagArg for rustc_type_ir::ExistentialTraitRef<I> { + 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 { |
