-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Prevent panic when sysroot cannot be computed #61459
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
Prevent panic when sysroot cannot be computed #61459
Conversation
4ca49f4
to
670557a
Compare
670557a
to
a6b9406
Compare
Updated! |
a6b9406
to
ab277a4
Compare
Updated. |
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.
LGTM! Looks like passing None
all the way down to rustc lets it use the proper calculations on OpenBSD.
I did some archaeology to see the history of the sysroot parameter. It looks like the current_exe
logic was taken out of core.rs
way back in #19161, but that PR didn't touch test.rs
, and the logic was carried through during the various IO refactorings over time. This brings the doctest functionality in-line with the rest of rustdoc, and the rest of rustc.
We don't have OpenBSD builders, do we? I'm wondering if there's a way we can test for this. 😕
@rust-lang/infra Can we check on OpenBSD one way or another? |
Well, meanwhile, this PR is ready to go. @bors: r=ollie27,bjorn3,QuietMisdreavus |
Maybe it'll work this time? @bors: r=ollie27,bjorn3,QuietMisdreavus |
📌 Commit ab277a4 has been approved by |
…lie27,bjorn3,QuietMisdreavus Prevent panic when sysroot cannot be computed Fixes #61377. cc @rotty @rust-lang/rustdoc r? @Manishearth
☀️ Test successful - checks-azure, checks-travis, status-appveyor |
@GuillaumeGomez Why did you include me in the |
Well, you reviewed it so it seemed ok for me to include you. |
Fixes #61377.
cc @rotty @rust-lang/rustdoc
r? @Manishearth