-
Notifications
You must be signed in to change notification settings - Fork 13k
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
ICE in rustdoc running cargo doc
w/ trait's containing associated consts
#87470
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Comments
ghost
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Jul 26, 2021
bjorn3
added
A-const-generics
Area: const generics (parameters and arguments)
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
F-const_generics
`#![feature(const_generics)]`
labels
Jul 26, 2021
jyn514
added
A-edition-2021
Area: The 2021 edition
requires-nightly
This issue requires a nightly compiler in some way.
labels
Jul 26, 2021
This is unrelated to 2021. The ICE happens with or without the edition. |
Here's a more helpful backtrace:
|
Probably the issue is in rust/src/librustdoc/clean/mod.rs Line 1427 in cfc856a
|
ghost
changed the title
ICE in rustdoc running
ICE in rustdoc running Jul 26, 2021
cargo doc
2021 edition w/ trait's containing associated constscargo doc
w/ trait's containing associated consts
Thanks for following up on the issue. Idk how I missed that it wasn't 2021-related, but I've since removed those parts of the issue and the linked repo as well, if its of any use. |
ghost
mentioned this issue
Jul 28, 2021
camelid
added
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
and removed
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Oct 18, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
The example code provided here is also demonstrated in this repo
Code
Interestingly enough, this alone is not sufficient to trigger the ICE (
cargo doc
executes successfully). To do so another crate is needed (can be a bin or lib) that depends on the crate containing the above code, runningcargo doc
in that crate will trigger the ICE. This new crate can be left empty, as even a bare lib.rs triggers the ICE.Meta
rustc --version --verbose
:Error output
Here,
ice
refers to the crate containing the traits listed above, andempty
refers to the empty crate required for triggering the error:Backtrace
Full Backtrace
The text was updated successfully, but these errors were encountered: