-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Fix doctest output json #144908
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
Fix doctest output json #144908
Conversation
This comment has been minimized.
This comment has been minimized.
This is very frustrating that |
Well, that is kind one of the outputs of the stage0 redesign. |
Like usual, I will wait for the separate PR I opened to be merged and available. |
We could just decide stage 1 rustdoc shouldn't exist, though that would mean that testing rustdoc would be slightly more work if you're not using download-rustc, since you could no longer just run the tests against stage1 rustdoc to prevent an extra rebuild of rustc (useful when making changes to compiler queries only used by rustdoc) |
I'd rather not. ^^' Once upon a time, changing |
It changed with the stage0 redesign. Before building in-tree libstd was required to build rustc, but not anymore (https://blog.rust-lang.org/inside-rust/2025/05/29/redesigning-the-initial-bootstrap-sequence/). |
…merged-doctests, r=Amanieu Add new `test::print_merged_doctests_times` used by rustdoc to display more detailed time information This PR is the first commit of rust-lang#144908. Sadly, it seems like we can't do all of it at once... r? `@Amanieu`
…merged-doctests, r=Amanieu Add new `test::print_merged_doctests_times` used by rustdoc to display more detailed time information This PR is the first commit of rust-lang#144908. Sadly, it seems like we can't do all of it at once... r? ``@Amanieu``
2413d04
to
51087b2
Compare
This comment has been minimized.
This comment has been minimized.
…ctests, r=Amanieu Add new `test::print_merged_doctests_times` used by rustdoc to display more detailed time information This PR is the first commit of rust-lang/rust#144908. Sadly, it seems like we can't do all of it at once... r? ``@Amanieu``
☔ The latest upstream changes (presumably #145210) made this pull request unmergeable. Please resolve the merge conflicts. |
…merged-doctests, r=Amanieu Add new `test::print_merged_doctests_times` used by rustdoc to display more detailed time information This PR is the first commit of rust-lang#144908. Sadly, it seems like we can't do all of it at once... r? ``@Amanieu``
51087b2
to
4a22063
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Since new |
r? fmease |
|
…json, r=fmease Fix doctest output json Fixes rust-lang#144798. Hopefully it will work with the new changes in `libtest` without needing to do both at once. This PR moves the `rustdoc` merged doctest extra information directly into `libtest` to ensure they share the same rendering to prevent the bug uncovered in rust-lang#144798. cc `@lolbinary` (as you reviewed the first PR) And since we're making changes to `libtest`: r? `@Amanieu`
Rollup of 6 pull requests Successful merges: - #143900 ([rustdoc] Correctly handle `should_panic` doctest attribute and fix `--no-run` test flag on the 2024 edition) - #144908 (Fix doctest output json) - #147309 (Add documentation about unwinding to wasm targets) - #147328 (Implement non-poisoning `Mutex::with_mut`, `RwLock::with` and `RwLock::with_mut`) - #147337 (Make `fmt::Write` a diagnostic item) - #147349 (Improve the advice given by panic_immediate_abort) r? `@ghost` `@rustbot` modify labels: rollup
Failed in rollup ( @bors r- |
@bors try jobs=test-various |
This comment has been minimized.
This comment has been minimized.
Fix doctest output json try-job: test-various
This comment has been minimized.
This comment has been minimized.
💔 Test for 588437d failed: CI. Failed jobs:
|
Likely needs |
605496b
to
99c7959
Compare
Thanks for the hint! Let's check if it works now. @bors try jobs=test-various |
This comment has been minimized.
This comment has been minimized.
Fix doctest output json try-job: test-various
Rollup of 5 pull requests Successful merges: - #144908 (Fix doctest output json) - #147262 (Make #[link="dl"] an FCW rather than an error) - #147364 (update autodiff testcases) - #147367 (Trivial code cleanup in resolve) - #147369 (Fill out AVR target metadata) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #144908 - GuillaumeGomez:fix-doctest-output-json, r=fmease Fix doctest output json Fixes #144798. Hopefully it will work with the new changes in `libtest` without needing to do both at once. This PR moves the `rustdoc` merged doctest extra information directly into `libtest` to ensure they share the same rendering to prevent the bug uncovered in #144798. cc `@lolbinary` (as you reviewed the first PR) And since we're making changes to `libtest`: r? `@Amanieu`
Fixes #144798.
Hopefully it will work with the new changes in
libtest
without needing to do both at once.This PR moves the
rustdoc
merged doctest extra information directly intolibtest
to ensure they share the same rendering to prevent the bug uncovered in #144798.cc @lolbinary (as you reviewed the first PR)
And since we're making changes to
libtest
:r? @Amanieu