We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 840379f commit 52a9a4cCopy full SHA for 52a9a4c
1 file changed
test.sh
@@ -62,7 +62,11 @@ unit() (
62
skip_args+=(--skip "$name")
63
done
64
run_if "${LINT:-true}" cargo clippy "$@" -- -D warnings
65
- run_if "${DOC:-false}" cargo doc "$@"
+ # `--document-private-items` lets rustdoc validate intra-doc links inside
66
+ # private items; the `rustdoc::private_intra_doc_links` lint, promoted to an
67
+ # error by `-D warnings`, still rejects public-to-private links.
68
+ run_if "${DOC:-false}" env RUSTDOCFLAGS="-D warnings ${RUSTDOCFLAGS:-}" \
69
+ cargo doc --document-private-items "$@"
70
run_if "${BUILD:-true}" cargo build ${build_flags[@]+"${build_flags[@]}"} "$@"
71
if [[ ${#skip_args[@]} -gt 0 ]]; then
72
run_if "${TEST:-true}" cargo test ${test_flags[@]+"${test_flags[@]}"} "$@" -- "${skip_args[@]}"
0 commit comments