-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test rustdoc. #44274
Test rustdoc. #44274
Conversation
I suspect that this will fail until #44259 is backported to beta. |
Hm so this is running tests for all of rustdoc's dependencies? Don't we want to only run tests for librustdoc? |
4b8de97
to
6bf7e91
Compare
Yeah, that's true. I've reworked it to only run for rustdoc now. |
6bf7e91
to
97d9dbd
Compare
To land this now, can we disable doctests for rustdoc? |
97d9dbd
to
f0af63a
Compare
Sorry, I missed your comment! Yes, we can disable tests for now. I've passed |
#43628 adds support for disabling tests or building of tools conveniently via |
I don't think we want to disable tests or rustdoc; this PR disable the doc tests and as such should be merge able. |
src/bootstrap/check.rs
Outdated
// Currently, Cargo can't run rustdoc's doc tests, but if PR #44259 is backported to beta, | ||
// then this can be removed. | ||
// cfg(stage(0)) / SNAP | ||
cargo.arg("--lib"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh instead of passing --lib
, could this instead specify:
[lib]
doctest = false
in the rustdoc Cargo.toml
?
(that way this could just be cargo test
)
src/bootstrap/check.rs
Outdated
let _time = util::timeit(); | ||
|
||
if target.contains("emscripten") { | ||
cargo.env(format!("CARGO_TARGET_{}_RUNNER", envify(&target)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can probably be omitted, we'll never test rustdoc for these architectures
Doc tests are temporarily disabled until next release cycle, since current beta Cargo errors on them. Upgrade should be smooth as the relevant tests are already fixed in this commit.
f0af63a
to
f87696b
Compare
Fixed. |
@bors: r+ |
📌 Commit f87696b has been approved by |
Test rustdoc. Also fixes the broken tests. r? @alexcrichton
☀️ Test successful - status-appveyor, status-travis |
Also fixes the broken tests.
r? @alexcrichton