diff options
| author | bors <bors@rust-lang.org> | 2024-05-11 07:00:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-11 07:00:13 +0000 |
| commit | 2427bf911371d9e945d5658b9fc03e65b89ecf63 (patch) | |
| tree | 5969d2bffb75a23fa9e0f495de79cb0643af5979 /compiler/rustc_errors/src | |
| parent | 6f4c7d997e55d9b7786c59823653d03464f8148d (diff) | |
| parent | ce3daac283849eb600a294b9e5b4c384600c5b54 (diff) | |
| download | rust-2427bf911371d9e945d5658b9fc03e65b89ecf63.tar.gz rust-2427bf911371d9e945d5658b9fc03e65b89ecf63.zip | |
Auto merge of #3597 - rust-lang:rustup-2024-05-11, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_errors/src')
| -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 4696917554f..40560a5ad79 100644 --- a/compiler/rustc_errors/src/diagnostic_impls.rs +++ b/compiler/rustc_errors/src/diagnostic_impls.rs @@ -94,6 +94,12 @@ into_diag_arg_using_display!( ErrCode, ); +impl<I: rustc_type_ir::Interner> IntoDiagArg for rustc_type_ir::TraitRef<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 { |
