diff options
| author | bors <bors@rust-lang.org> | 2024-05-23 05:50:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-23 05:50:37 +0000 |
| commit | 6ea763b9e2d41106afbc5b7dbaa3a6f9bfb885f8 (patch) | |
| tree | 61cbe4964d4e5c0074e9b7d76f8c08d487cd8cd9 /compiler/rustc_errors/src | |
| parent | 04a9a1a5319eb9c872cc9c753da8b59fc384025d (diff) | |
| parent | 400835fd11fcaf7c9e904e4f4499630d651268d6 (diff) | |
| download | rust-6ea763b9e2d41106afbc5b7dbaa3a6f9bfb885f8.tar.gz rust-6ea763b9e2d41106afbc5b7dbaa3a6f9bfb885f8.zip | |
Auto merge of #3624 - rust-lang:rustup-2024-05-23, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic_impls.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_impls.rs b/compiler/rustc_errors/src/diagnostic_impls.rs index 662c8a7b8be..ee6df8e15db 100644 --- a/compiler/rustc_errors/src/diagnostic_impls.rs +++ b/compiler/rustc_errors/src/diagnostic_impls.rs @@ -118,6 +118,15 @@ impl<I: rustc_type_ir::Interner> IntoDiagArg for rustc_type_ir::FnSig<I> { } } +impl<I: rustc_type_ir::Interner, T> IntoDiagArg for rustc_type_ir::Binder<I, T> +where + T: IntoDiagArg, +{ + fn into_diag_arg(self) -> DiagArgValue { + self.skip_binder().into_diag_arg() + } +} + into_diag_arg_for_number!(i8, u8, i16, u16, i32, u32, i64, u64, i128, u128, isize, usize); impl IntoDiagArg for bool { |
