-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Fix doctest compilation time display #147032
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 compilation time display #147032
Conversation
This comment has been minimized.
This comment has been minimized.
5a77d88
to
2255e82
Compare
This comment has been minimized.
This comment has been minimized.
2255e82
to
9844d2e
Compare
Added the missing normalizations. |
This comment has been minimized.
This comment has been minimized.
9844d2e
to
b8e4db9
Compare
I keep discovering more tests that were actually buggy. ^^' Anyway, fixed the |
This comment has been minimized.
This comment has been minimized.
b8e4db9
to
1e458ea
Compare
CI passed. \o/ |
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.
There's a few typos and improvable names, but other than that it looks good!
r=me with typos fixed and CI passing
use run_make_support::rfs::write; | ||
use run_make_support::{cwd, rustdoc}; | ||
|
||
fn check_present_of_compilation_time_report( |
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.
fn check_present_of_compilation_time_report( | |
fn assert_presence_of_compilation_time_report( |
check
-> assert
since this function asserts directly instead of returning a bool.
present
-> presence
for grammaticality.
true, | ||
true, | ||
); | ||
// Checking with only fainling merged doctests. |
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.
// Checking with only fainling merged doctests. | |
// Checking with only failing merged doctests. |
1e458ea
to
b7e444d
Compare
@bors r=lolbinarycat rollup |
…tion-time-display, r=lolbinarycat Fix doctest compilation time display Fixes rust-lang#146960. Small corner case that happened in case everything went fine and there was only merged doctests. r? lolbinarycat
Rollup of 9 pull requests Successful merges: - #140482 (std::net: update tcp deferaccept delay type to Duration.) - #146037 (Introduce CoerceShared lang item and trait, and basic Reborrow tests) - #146732 (tests: relax expectations after llvm change 902ddda120a5) - #147018 (re-order normalizations in run-make linker-warning test) - #147032 (Fix doctest compilation time display) - #147046 (Rename `rust.use-lld` to `rust.bootstrap-override-lld`) - #147050 (PassWrapper: update for new PGOOptions args in LLVM 22) - #147075 (Make `def_path_hash_to_def_id` not panic when passed an invalid hash) - #147076 (update issue number for more_float_constants) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 8 pull requests Successful merges: - #146037 (Introduce CoerceShared lang item and trait, and basic Reborrow tests) - #146732 (tests: relax expectations after llvm change 902ddda120a5) - #147018 (re-order normalizations in run-make linker-warning test) - #147032 (Fix doctest compilation time display) - #147046 (Rename `rust.use-lld` to `rust.bootstrap-override-lld`) - #147050 (PassWrapper: update for new PGOOptions args in LLVM 22) - #147075 (Make `def_path_hash_to_def_id` not panic when passed an invalid hash) - #147076 (update issue number for more_float_constants) r? `@ghost` `@rustbot` modify labels: rollup
Fixes #146960.
Small corner case that happened in case everything went fine and there was only merged doctests.
r? lolbinarycat