diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-13 12:40:08 -0400 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-13 22:45:01 -0400 | 
| commit | 1ad28a6f534d7673664e8f26c632bc71490c33a6 (patch) | |
| tree | e9386fc3b50c8d044091e42405afe2f23e5fedf0 /compiler/rustc_errors/src/diagnostic_impls.rs | |
| parent | 34582118afaf00b0eb2d209a90b181c7156b501c (diff) | |
| download | rust-1ad28a6f534d7673664e8f26c632bc71490c33a6.tar.gz rust-1ad28a6f534d7673664e8f26c632bc71490c33a6.zip | |
Uplift AliasTy
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic_impls.rs')
| -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 2cc0167dbaa..d9add1c9b3b 100644 --- a/compiler/rustc_errors/src/diagnostic_impls.rs +++ b/compiler/rustc_errors/src/diagnostic_impls.rs @@ -106,6 +106,12 @@ impl<I: rustc_type_ir::Interner> IntoDiagArg for rustc_type_ir::ExistentialTrait } } +impl<I: rustc_type_ir::Interner> IntoDiagArg for rustc_type_ir::UnevaluatedConst<I> { + fn into_diag_arg(self) -> rustc_errors::DiagArgValue { + format!("{self:?}").into_diag_arg() + } +} + into_diag_arg_for_number!(i8, u8, i16, u16, i32, u32, i64, u64, i128, u128, isize, usize); impl IntoDiagArg for bool { | 
