]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint/src/non_ascii_idents.rs
Auto merge of #92664 - ehuss:rollup-t9yrvk5, r=ehuss
[rust.git] / compiler / rustc_lint / src / non_ascii_idents.rs
index 9b4ee148df48a6c98d8e5e52660b584be18bc81c..a570206f1eef771bcf9f4cfbf66e19a4378870ea 100644 (file)
@@ -218,8 +218,7 @@ fn check_crate(&mut self, cx: &EarlyContext<'_>, _: &ast::Crate) {
                             cx.struct_span_lint(CONFUSABLE_IDENTS, sp, |lint| {
                                 lint.build(&format!(
                                     "identifier pair considered confusable between `{}` and `{}`",
-                                    existing_symbol.as_str(),
-                                    symbol.as_str()
+                                    existing_symbol, symbol
                                 ))
                                 .span_label(
                                     *existing_span,