Open rodrimati1992 opened 4 years ago
This is not a docs.rs bug. Feel free to open an issue in https://github.com/rust-lang/rust/ if you think it is sufficiently different from https://github.com/rust-lang/rust/issues/67006.
It is a build failure that would be fixed by building this crate with rustdoc stable,which is why I mention it at the end of the comment.
cargo +nightly doc
has been buggy enough for me that I would prefer if building with stable was an option on a per-crate basis.
This seems unlikely to be possible in the near future, see https://github.com/rust-lang/docs.rs/issues/228#issuecomment-558998819. However I would like to support this so I'm leaving the issue open.
The nightly options are --resource-suffix
, --static-root-path
, and --disable-per-crate-search
. The 3rd could probably be worked around, but the first two are necessary to ensure the proper CSS files are linked for the documentation.
@rodrimati1992 I rebuilt your crate manually, but it failed with a different ICE! Sorry for the trouble haha, here's the new error if you want to file a bug: https://docs.rs/crate/abi_stable/0.8.1/builds/208296
This ICE has already been reported for servo in https://github.com/rust-lang/rust/issues/67601 .
We also now see failure to build due to https://github.com/rust-lang/rust/issues/84738. Maybe its time to switch to stable (or stable-built-with-unstable-flags-enabled) now given the recent instability of nightly?
@TheBlueMatt this is not currently possible, see https://github.com/rust-lang/docs.rs/issues/506#issuecomment-561958210
Correct me if I’m wrong, but that doesn’t seem to preclude the possibility of pinning nightly instead of upgrading regularly? If nightly were pinned and only updated more occasionally we could avoid some of the breakage, no?
On Jun 14, 2021, at 16:20, Joshua Nelson @.***> wrote:
@TheBlueMatt this is not currently possible, see #506 (comment)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Pinning a nightly is tracked by https://github.com/rust-lang/docs.rs/issues/228, not here.
I am not willing to have the docs.rs team be in charge of finding a "blessed" nightly that works for everyone, we don't have the time or manpower to be responsible for that.
Is it not possible to build the release tags without the release bit set - effectively using “stable” without needing to use only stable features? Years ago I was aware of some projects that did that as a really trivial way to select a “blessed” version without needing to think about it.
On Jun 14, 2021, at 19:06, Joshua Nelson @.***> wrote:
Pinning a nightly is tracked by #228, not here.
I am not willing to have the docs.rs team be in charge of finding a "blessed" nightly that works for everyone, we don't have the time or manpower to be responsible for that.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
@TheBlueMatt building rustc from source takes about 45 minutes on consumer hardware, and we would need somewhere to store the artifacts. There is no nightly that corresponds to stable because it will be missing backports, and it means a great deal more complexity for the team because it introduces a 6-12 week delay between when features are introduced to rustdoc and docs.rs can start using them. So I don't consider that a good alternative at this time, I think pinning nightlies is much more feasible.
https://docs.rs/crate/abi_stable/0.8.0/builds
abi_stable https://docs.rs/crate/abi_stable/0.8.0/builds/203164
It also failed on my computer (in nightly-2019-12-03-x86_64-unknown-linux-gnu) with the same error and this backtrace
Backtrace
``` error: internal compiler error: src/librustc/hir/def.rs:385: attempted .def_id() on invalid res: Err thread 'rustc' panicked at 'BoxThis seems to be the same bug as https://github.com/rust-lang/rust/issues/67006.
cargo doc
runs fine on stable-x86_64-unknown-linux-gnu - rustc 1.39.0 (4560ea788 2019-11-04).