-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 ICE 'Infer', src/librustdoc/clean/mod.rs
#60269
Comments
jonas-schievink
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I-nominated
labels
Apr 25, 2019
Can you please |
@hellow554 yup! here it is
|
I'd like to work on this. |
Aaron1011
added a commit
to Aaron1011/rust
that referenced
this issue
Apr 28, 2019
Previously, we checked if the target of a projection type was itself an inference variable. However, for Rustdoc rendering purposes, there's no distinction between an inference variable ('_') and a type containing one (e.g. (MyStruct<u8, _>)) - we don't want to render either of them. Fixes rust-lang#60269 Due to the complexity of the original bug, which spans three different crates (hyper, tower-hyper, and tower), I have been unable to create a minimized reproduction for the issue.
Centril
added a commit
to Centril/rust
that referenced
this issue
Apr 30, 2019
Don't try to render auto-trait bounds with any inference variables Previously, we checked if the target of a projection type was itself an inference variable. However, for Rustdoc rendering purposes, there's no distinction between an inference variable ('_') and a type containing one (e.g. (MyStruct<u8, _>)) - we don't want to render either of them. Fixes rust-lang#60269 Due to the complexity of the original bug, which spans three different crates (hyper, tower-hyper, and tower), I have been unable to create a minimized reproduction for the issue.
Centril
added a commit
to Centril/rust
that referenced
this issue
Apr 30, 2019
Don't try to render auto-trait bounds with any inference variables Previously, we checked if the target of a projection type was itself an inference variable. However, for Rustdoc rendering purposes, there's no distinction between an inference variable ('_') and a type containing one (e.g. (MyStruct<u8, _>)) - we don't want to render either of them. Fixes rust-lang#60269 Due to the complexity of the original bug, which spans three different crates (hyper, tower-hyper, and tower), I have been unable to create a minimized reproduction for the issue.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! I searched around and couldn't find any issue that is related to this. I have compiling code here https://github.com/tower-rs/tower-hyper that seems to fail when in run
cargo doc
with:Specifically speaking, I am able to document the crate without an ICE happening if I disable this module https://github.com/tower-rs/tower-hyper/blob/master/src/server/mod.rs.
More specifically, I have a feeling that this is happening due to bounds on this impl https://github.com/tower-rs/tower-hyper/blob/master/src/server/mod.rs#L97. This mod was compiling and documenting fine before I add this impl for
Serve
.Let me know if there is anything else I can provide to help.
The text was updated successfully, but these errors were encountered: