diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-14 09:55:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-14 09:55:29 -0400 |
| commit | 712e7c37f7994b358eb5b14fc0792a4a45af3e60 (patch) | |
| tree | c8bf7a3d72226691c642625936ba8b61c3657541 /compiler/rustc_errors/src | |
| parent | 8c64acdbdcdc8f19d8f93bb976f39786bb8f45f6 (diff) | |
| parent | 9f8cdb286ec2660c7abe65f687bb29cb0b207fa5 (diff) | |
| download | rust-712e7c37f7994b358eb5b14fc0792a4a45af3e60.tar.gz rust-712e7c37f7994b358eb5b14fc0792a4a45af3e60.zip | |
Rollup merge of #125088 - compiler-errors:uplift-alias-ty, r=lcnr
Uplift `AliasTy` and `AliasTerm` Follow-up from #125076. r? lcnr
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 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 { |
