]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_infer/traits/coherence.rs
Update const_forget.rs
[rust.git] / src / librustc_infer / traits / coherence.rs
index d94231653abd49eab7bca9dd4486c247b2e57f2e..0dec5ae6da57a3054ae82fa80c5bc63bcab2efda 100644 (file)
@@ -39,10 +39,10 @@ pub struct OverlapResult<'tcx> {
 }
 
 pub fn add_placeholder_note(err: &mut rustc_errors::DiagnosticBuilder<'_>) {
-    err.note(&format!(
+    err.note(
         "this behavior recently changed as a result of a bug fix; \
-         see rust-lang/rust#56105 for details"
-    ));
+         see rust-lang/rust#56105 for details",
+    );
 }
 
 /// If there are types that satisfy both impls, invokes `on_overlap`