diff options
| author | bors <bors@rust-lang.org> | 2024-05-14 14:40:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-14 14:40:20 +0000 |
| commit | ac385a5af6d9fa8399a0cec799833cd28324abf8 (patch) | |
| tree | c66b9db6d2e2804081cac4f0928ae299ac13d790 /compiler/rustc_errors/src | |
| parent | bdfd941f4dcbe54e0283433ac970febf4092fa6a (diff) | |
| parent | 31016d587936da143456bac5c9a89bcad8236bd3 (diff) | |
| download | rust-ac385a5af6d9fa8399a0cec799833cd28324abf8.tar.gz rust-ac385a5af6d9fa8399a0cec799833cd28324abf8.zip | |
Auto merge of #125120 - compiler-errors:rollup-mnjybwv, r=compiler-errors
Rollup of 7 pull requests Successful merges: - #119838 (style-guide: When breaking binops handle multi-line first operand better) - #124844 (Use a proper probe for shadowing impl) - #125047 (Migrate `run-make/issue-14500` to new `rmake.rs` format) - #125080 (only find segs chain for missing methods when no available candidates) - #125088 (Uplift `AliasTy` and `AliasTerm`) - #125100 (Don't do post-method-probe error reporting steps if we're in a suggestion) - #125118 (Use new utility functions/methods in run-make tests) 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 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 { |
