diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-05-16 16:22:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-16 16:22:46 +0200 |
| commit | a8a3117041db213b40edc96afaa376f252d39f04 (patch) | |
| tree | d84442ed7e0962da709f967707a27bc119fa6317 /compiler/rustc_errors/src | |
| parent | 1f055cdb6ee7f538881cdc61913c2b81116d3615 (diff) | |
| parent | 312ba4da3c9c39f2a70941e0c79c1366166ebef0 (diff) | |
| download | rust-a8a3117041db213b40edc96afaa376f252d39f04.tar.gz rust-a8a3117041db213b40edc96afaa376f252d39f04.zip | |
Rollup merge of #125170 - compiler-errors:uplift-fn-sig-2, r=lcnr
Uplift `FnSig` into `rustc_type_ir` (redux) Since the last one got so messed up with `try` build. https://github.com/rust-lang/rust/pull/125157#issuecomment-2113158408 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 d9add1c9b3b..4bf7dccab92 100644 --- a/compiler/rustc_errors/src/diagnostic_impls.rs +++ b/compiler/rustc_errors/src/diagnostic_impls.rs @@ -112,6 +112,12 @@ impl<I: rustc_type_ir::Interner> IntoDiagArg for rustc_type_ir::UnevaluatedConst } } +impl<I: rustc_type_ir::Interner> IntoDiagArg for rustc_type_ir::FnSig<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 { |
