-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rustdoc: Print a warning if the diff when comparing to old nightlies is empty #85997
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
…is empty This avoids confusing situations where it's unclear whether there's a bug in the diff tool or not: ``` 26: @Has check failed `XPATH PATTERN` did not match // @Has - '//code/a[@href="{{channel}}/std/primitive.i32.html"]' 'i32' Encountered 6 errors ------------------------------------------ info: generating a diff against nightly rustdoc failures: [rustdoc] rustdoc/primitive-reexport.rs ```
@bors r+ rollup Seems OK as an improvement. I'm a bit worried by the allegedly nightly (though I see no record of that, we seem to just invoke whatever rustdoc we happen to find, and on Windows especially that's pretty likely to be the newly built rustdoc I'd expect, as it's easy for the bin directory to end up in PATH there) rustdoc. I'm not sure if I expressed similar concerns before or what the purpose of this code is, but it seems surprising. |
📌 Commit 2430ede has been approved by |
Yeah, I do want to change it to download a version from CI at some point (maybe reusing the logic from download-rustc?) but I haven't gotten around to it yet. |
Rollup of 7 pull requests Successful merges: - rust-lang#82037 (Make symbols stripping work on MacOS X) - rust-lang#84687 (Multiple improvements to RwLocks) - rust-lang#85997 (rustdoc: Print a warning if the diff when comparing to old nightlies is empty) - rust-lang#86051 (Updated code examples and wording in move keyword documentation ) - rust-lang#86111 (fix off by one in `std::iter::Iterator` documentation) - rust-lang#86113 (build doctests with lld if use-lld = true) - rust-lang#86175 (update Miri) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This avoids confusing situations where it's unclear whether there's a
bug in the diff tool or not: