about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2025-08-07 10:57:51 +0200
committerlcnr <rust@lcnr.de>2025-08-13 14:03:25 +0200
commit4e2d420ac5f23bb9853410098b4f686704c0a6c2 (patch)
tree3a6c658b46c703d1a1af1a801babae977e29c2bf
parent1c9952f4dd6e0947ee91f07130c03813a088a894 (diff)
downloadrust-4e2d420ac5f23bb9853410098b4f686704c0a6c2.tar.gz
rust-4e2d420ac5f23bb9853410098b4f686704c0a6c2.zip
avoid duplicate error string
-rw-r--r--compiler/rustc_borrowck/src/diagnostics/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/mod.rs b/compiler/rustc_borrowck/src/diagnostics/mod.rs
index b67dba3af96..995c953fda9 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);
         }
     }