-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 nightly: "Failed to get crate data for crate15" when proc-macro
references a dependency in a doc comment
#120909
Comments
searched nightlies: from nightly-2024-02-08 to nightly-2024-02-09 bisected with cargo-bisect-rustc v0.6.7Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2024-02-08 --end=2024-02-09 This looks similar to #120830 |
Fixed in #121167. |
We're seeing this panic in our CI as well: https://github.com/aws/aws-lc/actions/runs/7962059507/job/21734658056?pr=1440#step:13:103
I'm working on reproducing it. |
resolve: Scale back unloading of speculatively loaded crates Fixes rust-lang#120830 and fixes rust-lang#120909 while still unblocking rust-lang#117772. I cannot reproduce https://github.com/parasyte/crash-rustc as an UI test for some reason, but I tested all the cases linked above manually.
resolve: Scale back unloading of speculatively loaded crates Fixes rust-lang#120830 and fixes rust-lang#120909 while still unblocking rust-lang#117772. I cannot reproduce https://github.com/parasyte/crash-rustc as an UI test for some reason, but I tested all the cases linked above manually.
Rollup merge of rust-lang#121167 - petrochenkov:unload2, r=wesleywiser resolve: Scale back unloading of speculatively loaded crates Fixes rust-lang#120830 and fixes rust-lang#120909 while still unblocking rust-lang#117772. I cannot reproduce https://github.com/parasyte/crash-rustc as an UI test for some reason, but I tested all the cases linked above manually.
Code
Minimal repro: https://github.com/parasyte/crash-rustc
This ICE needs a specific project setup with a
proc-macro
that has a doc-comment referencing one of its crate dependencies. The git repo above is a full example, but this will work, too:Cargo.toml
lib.rs
//! [`base64`]
The error only seems to happen with crates that do not contain hyphens in the name. I don't know, I haven't really dug into it.
base64
is a popular crate, it doesn't have any dependencies, and it exhibits the crash. The git repo above has a totally empty dependency namedcrashy
, so it doesn't really matter what the dependency itself contains.Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: