mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 14:57:14 +00:00
avoid accessing the interner by comparing the Symbol directly
This commit is contained in:
parent
7ea034afad
commit
51ee3d4d92
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user