about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-23 05:50:37 +0000
committerbors <bors@rust-lang.org>2024-05-23 05:50:37 +0000
commit6ea763b9e2d41106afbc5b7dbaa3a6f9bfb885f8 (patch)
tree61cbe4964d4e5c0074e9b7d76f8c08d487cd8cd9 /compiler/rustc_errors/src
parent04a9a1a5319eb9c872cc9c753da8b59fc384025d (diff)
parent400835fd11fcaf7c9e904e4f4499630d651268d6 (diff)
downloadrust-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.rs9
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 {