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-22 08:33:34 +0000
committerbors <bors@rust-lang.org>2024-05-22 08:33:34 +0000
commitbec10295d489353f3143e3c2b435ac982189e2a4 (patch)
tree458889a525a24db24c029a0099dc62c43d3041db /compiler/rustc_errors/src
parentb54dd08a84f3c07efbc2aaf63c3df219ae680a03 (diff)
parent1c8230ea3c54e3f020f1df75d77810e8a5689410 (diff)
downloadrust-bec10295d489353f3143e3c2b435ac982189e2a4.tar.gz
rust-bec10295d489353f3143e3c2b435ac982189e2a4.zip
Auto merge of #125335 - compiler-errors:binder, r=lcnr
Uplift `Binder`, `OutlivesPredicate` into `rustc_type_ir`

Almost done with all the types 🙏

r? lcnr
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 {