diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-10-01 09:46:39 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-10-01 16:24:34 +0200 |
| commit | 299e10d7ad2601b24bbd5556de402be10cd46fe0 (patch) | |
| tree | 54dd7a779d92cedf5733cd1a0da9e2451a646e0b | |
| parent | 9f2ab5b9adc4bac7048e5226e5a4580c31f7e533 (diff) | |
| download | rust-299e10d7ad2601b24bbd5556de402be10cd46fe0.tar.gz rust-299e10d7ad2601b24bbd5556de402be10cd46fe0.zip | |
Add FIXME.
| -rw-r--r-- | compiler/rustc_lint/src/levels.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/levels.rs b/compiler/rustc_lint/src/levels.rs index 34d21a16870..7b7831bd019 100644 --- a/compiler/rustc_lint/src/levels.rs +++ b/compiler/rustc_lint/src/levels.rs @@ -162,6 +162,7 @@ fn shallow_lint_levels_on(tcx: TyCtxt<'_>, owner: hir::OwnerId) -> ShallowLintLe [(local_id, _)] => levels.add_id(HirId { owner, local_id: *local_id }), // Otherwise, we need to visit the attributes in source code order, so we fetch HIR and do // a standard visit. + // FIXME(#102522) Just iterate on attrs once that iteration order matches HIR's. _ => match tcx.hir().expect_owner(owner) { hir::OwnerNode::Item(item) => levels.visit_item(item), hir::OwnerNode::ForeignItem(item) => levels.visit_foreign_item(item), |
