avoid accessing the interner by comparing the Symbol directly

This commit is contained in:
Miguel Guarniz 2022-04-09 13:54:30 -04:00
parent 7ea034afad
commit 51ee3d4d92

View File

@ -2687,7 +2687,7 @@ fn for_each_def(tcx: TyCtxt<'_>, mut collect_fn: impl for<'b> FnMut(&'b Ident, N
} }
let item = hir.item(id); let item = hir.item(id);
if item.ident.name.as_str().is_empty() { if item.ident.name == kw::Empty {
continue; continue;
} }