Skip to content

Commit 51ee3d4

Browse files
committed
avoid accessing the interner by comparing the Symbol directly
1 parent 7ea034a commit 51ee3d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/print/pretty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,7 @@ fn for_each_def(tcx: TyCtxt<'_>, mut collect_fn: impl for<'b> FnMut(&'b Ident, N
26872687
}
26882688

26892689
let item = hir.item(id);
2690-
if item.ident.name.as_str().is_empty() {
2690+
if item.ident.name == kw::Empty {
26912691
continue;
26922692
}
26932693

0 commit comments

Comments
 (0)