diff options
| author | The Miri Cronjob Bot <miri@cron.bot> | 2024-05-23 05:09:47 +0000 |
|---|---|---|
| committer | The Miri Cronjob Bot <miri@cron.bot> | 2024-05-23 05:09:47 +0000 |
| commit | f1ffb8d859157b9a5842d40157c50c6dfe17fe28 (patch) | |
| tree | 3733a33a8cd7dd6294e6a75976d858af6258266f /compiler/rustc_errors/src | |
| parent | 807a0f8c218b16fd4870f78ff50808b5200a08d4 (diff) | |
| parent | 96968350e17efdbb9958dbeaec4982d8cca0019d (diff) | |
| download | rust-f1ffb8d859157b9a5842d40157c50c6dfe17fe28.tar.gz rust-f1ffb8d859157b9a5842d40157c50c6dfe17fe28.zip | |
Merge from rustc
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 { |
