Rollup merge of #80750 - GuillaumeGomez:cleanup-to_string, r=lzutao
Don't use to_string on Symbol in rustc_passes/check_attr.rs Improve code from #80686. r? ``@lzutao``
This commit is contained in:
commit
fd7f2443f1
@ -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…
x
Reference in New Issue
Block a user