Remove silly FmtPrinter<'tcx, 'tcx> instance.

This doesn't match any of the other uses.
This commit is contained in:
Nicholas Nethercote
2026-05-04 15:50:46 +10:00
parent 809fcab63e
commit 2cf48841f1
@@ -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<FmtPrinter<'tcx, 'tcx>>,
T: fmt::Display + for<'b> Print<FmtPrinter<'b, 'tcx>>,
{
let s = value.to_string();
if s.len() > 50 {