From 2cf48841f1576a2d2d68cf95770b2a3a925c18bd Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Mon, 4 May 2026 15:50:46 +1000 Subject: [PATCH] Remove silly `FmtPrinter<'tcx, 'tcx>` instance. This doesn't match any of the other uses. --- .../src/error_reporting/traits/overflow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_trait_selection/src/error_reporting/traits/overflow.rs b/compiler/rustc_trait_selection/src/error_reporting/traits/overflow.rs index 62d353f8a45e..0e45df45049b 100644 --- a/compiler/rustc_trait_selection/src/error_reporting/traits/overflow.rs +++ b/compiler/rustc_trait_selection/src/error_reporting/traits/overflow.rs @@ -60,7 +60,7 @@ pub fn build_overflow_error( ) -> Diag<'a> { fn with_short_path<'tcx, T>(tcx: TyCtxt<'tcx>, value: T) -> String where - T: fmt::Display + Print>, + T: fmt::Display + for<'b> Print>, { let s = value.to_string(); if s.len() > 50 {