Skip to content

Commit 299e10d

Browse files
committed
Add FIXME.
1 parent 9f2ab5b commit 299e10d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_lint/src/levels.rs

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ fn shallow_lint_levels_on(tcx: TyCtxt<'_>, owner: hir::OwnerId) -> ShallowLintLe
162162
[(local_id, _)] => levels.add_id(HirId { owner, local_id: *local_id }),
163163
// Otherwise, we need to visit the attributes in source code order, so we fetch HIR and do
164164
// a standard visit.
165+
// FIXME(#102522) Just iterate on attrs once that iteration order matches HIR's.
165166
_ => match tcx.hir().expect_owner(owner) {
166167
hir::OwnerNode::Item(item) => levels.visit_item(item),
167168
hir::OwnerNode::ForeignItem(item) => levels.visit_foreign_item(item),

0 commit comments

Comments
 (0)