diff options
| author | bors <bors@rust-lang.org> | 2024-05-16 14:32:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-16 14:32:49 +0000 |
| commit | 97bf25c8cf6c7c97c851c6e8bc94fd0824885e6f (patch) | |
| tree | 1da8eb44bdf2c6052067337da8d4a319a0bccd3d /compiler/rustc_errors/src | |
| parent | 4a78c00e227124ff9d5ece2d493472e7325c87d3 (diff) | |
| parent | e3864db41885078418e06af845e863d4329eae26 (diff) | |
| download | rust-97bf25c8cf6c7c97c851c6e8bc94fd0824885e6f.tar.gz rust-97bf25c8cf6c7c97c851c6e8bc94fd0824885e6f.zip | |
Auto merge of #125179 - matthiaskrgr:rollup-wkdwoaj, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #124871 (Don't ICE because recomputing overflow goals during find_best_leaf_obligation causes inference side-effects) - #125018 (Update linker-plugin-lto.md to include LLVM 18) - #125130 (rustdoc-json-types: Document `Id`) - #125170 (Uplift `FnSig` into `rustc_type_ir` (redux)) - #125172 (Fix assertion when attempting to convert `f16` and `f128` with `as`) r? `@ghost` `@rustbot` modify labels: rollup
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 { |
