Don't use to_string on Symbol
This commit is contained in:
parent
f4b9d32ef5
commit
7bc22e96d3
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue