-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc on nightly freezes when generating docs for typenum #112515
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Regressed in #112429 CC @GuillaumeGomez. @rustbot label T-rustdoc I-hang |
Not sure if helpful but if we set
|
Note that the hang happens in |
Oh no. :o Any idea @lcnr? |
I hit an ICE in documenting The ICE in my error log occurs inside the definition of rust/compiler/rustc_query_system/src/dep_graph/graph.rs Lines 40 to 42 in 7b6093e
rust/compiler/rustc_macros/src/newtype.rs Lines 84 to 85 in 7b6093e
Error output
|
Minimized from // #![no_std] // with or without
pub type Boom = S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<u64, u8>, ()>, ()>, ()>, u8>, ()>, u8>, ()>, u8>, u8>, ()>, ()>, ()>, u8>, u8>, u8>, ()>, ()>, u8>, ()>, ()>, ()>, u8>, u8>, ()>, ()>, ()>, ()>, ()>, u8>, ()>, ()>, u8>, ()>, ()>, ()>, u8>, ()>, ()>, u8>, u8>, u8>, u8>, ()>, u8>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>;
pub struct S<T, U>(T, U);
pub trait A {}
pub trait B<T> {
type P;
}
impl A for u64 {}
impl<T, U> A for S<T, U> {}
impl<T> B<u8> for S<T, ()>
where
T: B<u8>,
<T as B<u8>>::P: A,
{
type P = ();
}
impl<T: A, U, V> B<T> for S<U, V> {
type P = ();
} @rustbot label S-has-mcve |
I guess it's easiest to revert for now and then figure out why this hangs and how to avoid it :/ |
😢 Let's do that then... |
When generating docs for the typenum crate on the latest nightly, rustdoc gets stuck on the "Building" phase.
Works as normal on on nightly-2023-06-09, but freezes on the latest nightly (2023-06-10).
Reproducible Steps
Using the latest nightly:
git clone https://github.com/paholg/typenum
cd typenum
cargo +nightly doc
The text was updated successfully, but these errors were encountered: