-
Notifications
You must be signed in to change notification settings - Fork 198
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
docs.rs fails to build docs because --resource-suffix
was removed from rustc in 1.58.1
#1630
Comments
I believe the "unrecognized option" message is wrong and some side-effect of the initial error, rustdoc definitely still supports By just deleting the intra-doc-links it appears to be the |
--resource-suffix hasn't been removed, that's just a poor error that happens when there's an ice (being fixed in rust-lang/rust#92310). The actual error is
|
Could it be the (missing) lifetime in the doc comment:
I thought they were not required but with the anonymous lifetime added it worked. |
Not sure, I tried a tiny example with a similar setup and wasn't able to reproduce, it worked just fine without a lifetime. Would be good to open a rust-lang/rust issue to try and minimize (and even if the lifetime is necessary that should be an error/warning not an ICE). |
Opened issue for |
I ran a new build since 93428 was fixed and it succeeded: https://docs.rs/off-rs/0.1.3/off_rs/ (though, I see there's been a major version bump since so probably not that important 😁). |
Crate name
off-rs
Build failure link
https://docs.rs/crate/off-rs/0.1.3/builds/500166
Additional details
When pushing my crate off-rs to crates.io the docs build fails on docs.rs with the following error:
I haven't got it to work ever since it first failed (the first version worked). The repo is here: https://github.com/michidk/off-rs/tree/6a0146d4f2cadb1e46ce8849abd0269cd97d3528
Building the docs locally on my machine works without any issues, even on nightly.
I expected to see this happen: Docs build successfully on docs.rs
Instead, this happened: Rust panics, full log: https://docs.rs/crate/off-rs/0.1.3/builds/500166
Edit: Can replicated it locally, by using rustc v 1.58.1. With v1.58 it worked, with v1.58.1 it fails using this command
rustdoc +nightly --edition=2021 --crate-type lib --crate-name off_rs src/lib.rs --target x86_64-unknown-linux-gnu -o target/x86_64-unknown-linux-gnu/doc --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=390ff25bd5d00bc9 -L dependency=target/x86_64-unknown-linux-gnu/debug/deps -L dependency=target/debug/deps -Z unstable-options --emit=invocation-specific --resource-suffix -20220126-1.60.0-nightly-6abb6385b --static-root-path / --cap-lints warn --disable-per-crate-search --crate-version 0.1.3
Seems like
--resource-suffix
was removed from rust without adjusting docs.rsThe text was updated successfully, but these errors were encountered: