diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-20 12:57:07 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-21 17:00:45 -0400 |
| commit | 28ce5883210da1ed90cda9b7da3d0b16e2794e69 (patch) | |
| tree | 771a478fa61bd7390e3af6c45369af659b6aa922 /compiler/rustc_errors/src/diagnostic_impls.rs | |
| parent | e8fbd991287f637f95016a71ddc13438415bbe59 (diff) | |
| download | rust-28ce5883210da1ed90cda9b7da3d0b16e2794e69.tar.gz rust-28ce5883210da1ed90cda9b7da3d0b16e2794e69.zip | |
Uplift binder
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic_impls.rs')
| -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 4bf7dccab92..9614f4e80e1 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 { |
