Skip to content

Commit 891ebf9

Browse files
committed
check_missing_items.py: Check imports
1 parent 8050c19 commit 891ebf9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/etc/check_missing_items.py

+6
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,9 @@ def check_type(ty):
187187
check_generic_bound(bound)
188188
if item["inner"]["default"]:
189189
check_type(item["inner"]["default"])
190+
elif item["kind"] == "import":
191+
if item["inner"]["id"]:
192+
inner_id = item["inner"]["id"]
193+
assert valid_id(inner_id)
194+
if inner_id in crate["index"] and inner_id not in visited:
195+
work_list.add(inner_id)

0 commit comments

Comments
 (0)