1
Fork 0

Don't use to_string on Symbol

This commit is contained in:
Guillaume Gomez 2021-01-06 10:59:50 +01:00
parent f4b9d32ef5
commit 7bc22e96d3

View file

@ -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(