Skip to content

Commit

Permalink
Don't use to_string on Symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 6, 2021
1 parent f4b9d32 commit 7bc22e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_passes/src/check_attr.rs
Expand Up @@ -359,7 +359,7 @@ impl CheckAttrVisitor<'tcx> {
return false;
}
let item_name = self.tcx.hir().name(hir_id);
if item_name.to_string() == doc_alias {
if &*item_name.as_str() == doc_alias {
self.tcx
.sess
.struct_span_err(
Expand Down

0 comments on commit 7bc22e9

Please sign in to comment.