Make sure to rebuild rustdoc if src/rustdoc-json-types
is changed
#142758
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I think
rustdoc-json-types
was more recently split out, so this download-rustc logic became outdated as it wasn't tracked. This PR addssrc/rustdoc-json-types
to be tracked for difference versus upstream, so that we properly rebuild rustdoc if it has changes versus upstream.Fixes #142738.
Local testing
This is not so easy to test locally because it requires download-rustc. To test this, you need to:
download-rustc
inhibition from bootstrap changes versus upstream, by including:!src/bootstrap
inrust/src/bootstrap/src/core/config/config.rs
Lines 67 to 74 in 255aa22
profile = "tools"
which by default usesdownload-rustc = "if-unchanged"
../x test tests/rustdoc-json
one time, to "prime" initial build caches.FORMAT_VERSION
insrc/rustdoc-json-types
, i.e.rustdoc-json
tests fail becauseFORMAT_VERSION
mismatch. Observe that with this patch, rustdoc gets properly rebuilt andrustdoc-json
tests pass.cc @aDotInTheVoid
r? Kobzol