From 4e2d420ac5f23bb9853410098b4f686704c0a6c2 Mon Sep 17 00:00:00 2001 From: lcnr Date: Thu, 7 Aug 2025 10:57:51 +0200 Subject: [PATCH] avoid duplicate error string --- compiler/rustc_borrowck/src/diagnostics/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_borrowck/src/diagnostics/mod.rs b/compiler/rustc_borrowck/src/diagnostics/mod.rs index b67dba3af96d..995c953fda96 100644 --- a/compiler/rustc_borrowck/src/diagnostics/mod.rs +++ b/compiler/rustc_borrowck/src/diagnostics/mod.rs @@ -676,7 +676,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> { }); if let Some(span) = predicate_span { - err.span_note(span, "due to current limitations in the borrow checker, this implies a `'static` lifetime"); + err.span_note(span, fluent::borrowck_limitations_implies_static); } }