-
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
found unstable fingerprints for extern_mod_stmt_cnum #83126
Comments
cc @Aaron1011 |
Backtrace:
|
@est31: Have you been able to reproduce this on Linux? |
I think the root cause is with how rust/compiler/rustc_middle/src/query/mod.rs Lines 1280 to 1282 in bb4cdf8
This query takes in the |
I think the solution is to mark the query as |
Hmmm I'm getting it on the master branch too not just that PR. So it seems to be a regression that happened roughly between rustc from 18 days ago and |
It looks like the query does a pretty simple hash lookup - is there a reason for it to be a query? If it only takes LocalDefId it's presumably not used cross-crate at all, so it seems like it should just be a function on tcx? |
cc rust-lang#83126 It's very short, so there's no need for it to go through the query system.
I've opened #83128, but this issue still needs a regression test. |
Ok so I've done some testing on the crush_ice_83126 branch of rcgen and it seems the following triggers the bug: crate a: empty lib.rs (I just used byteorder but I guess it should also work with empty lib.rs) crate b Cargo.toml: [dependencies]
a = { path=".....", optional = true } crate b lib.rs, tests/foo.rs: empty crate b main.rs: extern crate b; // This seems important!
fn main() {} Then you invoke cargo twice:
No reproduction on Ubuntu but on macOS and Windows the CI can reproduce it just fine. Latest nightly or |
A reproduction on Ubuntu has been found (not minimized yet though): EmbarkStudios/rust-gpu#493 (comment) |
New PR to tackle the bug: #83153 |
Now rust-lang/rust#83153 has been merged, fixing rust-lang/rust#83126 .
@rustbot label E-needs-test |
I encountered this bug in the CI for my rcgen PR: rustls/rcgen#53
full log link
The text was updated successfully, but these errors were encountered: