diff options
| author | bors <bors@rust-lang.org> | 2022-09-13 21:05:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-13 21:05:21 +0000 |
| commit | 17cbdfd07178349d0a3cecb8e7dde8f915666ced (patch) | |
| tree | c873d712775ce17d869b73d02f2eecc649519c78 /src/etc | |
| parent | c84083b08e2db69fcf270c4045837fa02663a3bf (diff) | |
| parent | f04eee11578b31b0618e854873c21ce5c453f52c (diff) | |
| download | rust-17cbdfd07178349d0a3cecb8e7dde8f915666ced.tar.gz rust-17cbdfd07178349d0a3cecb8e7dde8f915666ced.zip | |
Auto merge of #101777 - matthiaskrgr:rollup-x2dyaa2, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #101266 (translations(rustc_session): migrates rustc_session to use SessionDiagnostic - Final) - #101737 (rustdoc: remove no-op CSS `.search-results .result-name > span`) - #101752 (Improve Attribute doc methods) - #101754 (Fix doc of log function) - #101759 (:arrow_up: rust-analyzer) - #101765 (Add documentation for TyCtxt::visibility) - #101770 (Rustdoc-Json: Don't loose subitems of foreign traits.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/etc')
| -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): |
