mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Add FIXME.
This commit is contained in:
parent
9f2ab5b9ad
commit
299e10d7ad
@ -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 }),
|
[(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
|
// Otherwise, we need to visit the attributes in source code order, so we fetch HIR and do
|
||||||
// a standard visit.
|
// a standard visit.
|
||||||
|
// FIXME(#102522) Just iterate on attrs once that iteration order matches HIR's.
|
||||||
_ => match tcx.hir().expect_owner(owner) {
|
_ => match tcx.hir().expect_owner(owner) {
|
||||||
hir::OwnerNode::Item(item) => levels.visit_item(item),
|
hir::OwnerNode::Item(item) => levels.visit_item(item),
|
||||||
hir::OwnerNode::ForeignItem(item) => levels.visit_foreign_item(item),
|
hir::OwnerNode::ForeignItem(item) => levels.visit_foreign_item(item),
|
||||||
|
Loading…
Reference in New Issue
Block a user