File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
.github/actions/rust-build Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2727 cargo test --verbose ${{ inputs.flags }}
2828 if [ "${{ inputs.toolchain }}" == nightly -a "${{ inputs.flags }}" == "--all-features" ]; then
2929 # docs use unstable features, run them on nightly
30- RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc --verbose ${{ inputs.flags }}
31- fi
30+ # pass --no-deps. When *rendering* docs, is better to not use `--no-deps`,
31+ # since links in docs can link to types in dependencies, but currently, some crates
32+ # do not compile with `cfg(docsrs)` due to the feature gate name change
33+ # in <https://github.com/rust-lang/rust/pull/138907>.
34+ RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc --verbose --no-deps ${{ inputs.flags }}
35+ fi
You can’t perform that action at this time.
0 commit comments