-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE in rustdoc running cargo doc
w/ trait's containing associated consts
#87470
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
Comments
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
|
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. |
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: