]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/lint.rs
Rollup merge of #91895 - pitaj:91867-monomorphize, r=Aaron1011
[rust.git] / compiler / rustc_middle / src / lint.rs
index 0d6da8cdff23cf99256d897cb6854ab3b5e8d9cc..eef10356ed25e2fa3dcc367fb5dd211a24e03f91 100644 (file)
@@ -319,7 +319,7 @@ fn struct_lint_level_impl<'s, 'd>(
             }
             LintLevelSource::Node(lint_attr_name, src, reason) => {
                 if let Some(rationale) = reason {
-                    err.note(&rationale.as_str());
+                    err.note(rationale.as_str());
                 }
                 sess.diag_span_note_once(
                     &mut err,