Skip to content

Commit 7bc22e9

Browse files
Don't use to_string on Symbol
1 parent f4b9d32 commit 7bc22e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_passes/src/check_attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ impl CheckAttrVisitor<'tcx> {
359359
return false;
360360
}
361361
let item_name = self.tcx.hir().name(hir_id);
362-
if item_name.to_string() == doc_alias {
362+
if &*item_name.as_str() == doc_alias {
363363
self.tcx
364364
.sess
365365
.struct_span_err(

0 commit comments

Comments
 (0)