]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_borrowck/src/diagnostics/explain_borrow.rs
Rollup merge of #106157 - LeSeulArtichaut:106126-thir-unsafeck-good-path-bug-2, r...
[rust.git] / compiler / rustc_borrowck / src / diagnostics / explain_borrow.rs
index 304683618d83ef9dc531c7fcb7f7ed91ed329a7f..00f5e8a83972f9c6456c51635867e2a7bfa59227 100644 (file)
@@ -270,7 +270,7 @@ pub(crate) fn add_explanation_to_diagnostic(
                 for extra in extra_info {
                     match extra {
                         ExtraConstraintInfo::PlaceholderFromPredicate(span) => {
-                            err.span_note(*span, format!("due to current limitations in the borrow checker, this implies a `'static` lifetime"));
+                            err.span_note(*span, "due to current limitations in the borrow checker, this implies a `'static` lifetime");
                         }
                     }
                 }