-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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: incr comp: Found unstable fingerprints for evaluate_obligation(8f08a58f2dfc7c26-cf3563aa40998e2c): Err(Canonical)
#132884
Comments
Backtrace
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Regression in nightly-2024-11-11 |
mvce fn main() {
vec![vec![vec![vec![vec![vec![vec![vec![vec![vec![vec![
vec![vec![vec![vec![vec![vec![vec![vec![vec![vec![vec![
vec![vec![vec![vec![vec![vec![vec![vec![vec![vec![vec![
vec![vec![vec![vec![vec![vec![vec![vec![vec![vec![0u8]]]]]]]]]],
]]]]]]]]]]],
]]]]]]]]]]],
]]]]]]]]]]];
} when I remove another enclosing |
That would be quite surprising to me, unless it ended up uncovering some obscure bug in the query system for whatever reason... |
rm -rf /tmp/im/incr/ ; mkdir /tmp/im/incr/ ; rustc /tmp/crash.rs -Cincremental=/tmp/im/incr -o1 ; rustc /tmp/crash.rs -Cincremental=/tmp/im/incr -o2
|
I refactored that new query a bit in #132843 but I guess that didn't change anything. I don't think this query does anything unusual... it doesn't even return anything. Well maybe the one unusual thing it does is that it says Who are our main query system experts, with MW gone? |
Cc @rust-lang/wg-incr-comp -- does any of you have an idea what might be happening here? |
I found another case which however bisects to ee4a56e / #132566 (cc @saethlin ) when bisected via
|
I don't see how my PR linked above could have produced instability in I suggest that the first step to understanding this is figuring out exactly which query is unstable here. The diagnostic that's emitted here is not actionable, at least to someone like me who has some experience contributing to the compiler but not very specifically to the query system. |
At least one of the backtraces above involves
That query isn't even being changed here, it is just invoked in more/different ways. |
Code
Meta
rustc --version --verbose
:Error output
rustc file.rs -Cdebuginfo=2 -Clink-dead-code=true -Zvalidate-mir --edition=2021 -Cincremental=. -Zincremental-verify-ich=yes --crate-type lib -o1
rustc file.rs -Cdebuginfo=2 -Clink-dead-code=true -Zvalidate-mir --edition=2021 -Cincremental=. -Zincremental-verify-ich=yes --crate-type lib -o2
(you need to change output (-o) file to make it reuse the incr comp cache)
The text was updated successfully, but these errors were encountered: