Skip to content

Commit

Permalink
check_missing_items.py: Check imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aDotInTheVoid committed Aug 28, 2022
1 parent 8050c19 commit 891ebf9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/etc/check_missing_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,9 @@ def check_type(ty):
check_generic_bound(bound)
if item["inner"]["default"]:
check_type(item["inner"]["default"])
elif item["kind"] == "import":
if item["inner"]["id"]:
inner_id = item["inner"]["id"]
assert valid_id(inner_id)
if inner_id in crate["index"] and inner_id not in visited:
work_list.add(inner_id)

0 comments on commit 891ebf9

Please sign in to comment.