diff options
| author | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-09-13 18:34:15 +0100 |
|---|---|---|
| committer | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-09-13 18:34:15 +0100 |
| commit | e80ccd3d3aea9af8d3e0972d4f73f81a99fadfcd (patch) | |
| tree | 8935f968335f4177bae3314ca3160228a3c1b94a /src/etc/check_missing_items.py | |
| parent | 2e44c17c12cec45b6a682b1e53a04ac5b5fcc9d2 (diff) | |
| download | rust-e80ccd3d3aea9af8d3e0972d4f73f81a99fadfcd.tar.gz rust-e80ccd3d3aea9af8d3e0972d4f73f81a99fadfcd.zip | |
Rustdoc-Json: Don't loose subitems of foreign traits.
Diffstat (limited to 'src/etc/check_missing_items.py')
| -rw-r--r-- | src/etc/check_missing_items.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/etc/check_missing_items.py b/src/etc/check_missing_items.py index 991c881bae1..0026c4cbdca 100644 --- a/src/etc/check_missing_items.py +++ b/src/etc/check_missing_items.py @@ -49,6 +49,8 @@ def check_generic_param(param): ty = param["kind"]["type"] if ty["default"]: check_type(ty["default"]) + for bound in ty["bounds"]: + check_generic_bound(bound) elif "const" in param["kind"]: check_type(param["kind"]["const"]) @@ -88,8 +90,11 @@ def check_path(path): check_type(input_ty) if args["parenthesized"]["output"]: check_type(args["parenthesized"]["output"]) - if not valid_id(path["id"]): - print("Type contained an invalid ID:", path["id"]) + + if path["id"] in crate["index"]: + work_list.add(path["id"]) + elif path["id"] not in crate["paths"]: + print("Id not in index or paths:", path["id"]) sys.exit(1) def check_type(ty): |
