Skip to content

Internal Compiler Error: thread 'rustc' panicked at 'assertion failed: (left == right) #84167

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

Closed
traditionalism opened this issue Apr 13, 2021 · 3 comments
Labels
A-incr-comp Area: Incremental compilation 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.

Comments

@traditionalism
Copy link

While using the winres crate this was the build.rs script for applying a .ico for my executable. As soon as the build.rs script was removed my project compiled successfully without either being hung up on the winres crate or failing/panicking. Oddly enough it compiles normally on a x64 nightly/stable-toolchain. Possible winres crate compatibility problem.

Code

use std::io;
#[cfg(windows)] use winres::WindowsResource;

fn main() -> io::Result<()> {
    #[cfg(windows)] {
        WindowsResource::new()
            .set_icon("assets/app.ico")
            .compile()?;
    }
    Ok(())
}

Meta

rustc --version --verbose:

rustc 1.53.0-nightly (d0695c908 2021-04-12)
binary: rustc
commit-hash: d0695c9081b16077d0aed368bccaf437d77ff497
commit-date: 2021-04-12
host: i686-pc-windows-msvc
release: 1.53.0-nightly
LLVM version: 12.0.0

Error output

thread 'rustc' panicked at 'assertion failed: `(left == right)`
  left: `Some(Fingerprint(1288127715427098368, 6593689844980031578))`,
 right: `Some(Fingerprint(7144034568373601688, 1022598649938892905))`: found unstable fingerprints for predicates_of(core[610a]::ops::arith::Neg): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as std::ops::Neg>), []), C:\Users\lucas\.rustup\toolchains\nightly-i686-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\ops\arith.rs:653:1: 653:14 (#0))] }', /rustc/d0695c9081b16077d0aed368bccaf437d77ff497\compiler\rustc_query_system\src\query\plumbing.rs:593:5
error: internal compiler error: unexpected panic
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin

query stack during panic:
#0 [predicates_of] computing predicates of `std::ops::Neg`
#1 [typeck] type-checking `main`
end of query stack
Backtrace

N/A as using RUST_BACKTRACE=1 variable gives me "note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace." Meanwhile using RUST_BACKTRACE=full gives me a PowerShell error

N/A

@traditionalism traditionalism 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 Apr 13, 2021
@traditionalism
Copy link
Author

pub trait Neg {

@JohnTitor JohnTitor added the A-incr-comp Area: Incremental compilation label Apr 28, 2021
@JohnTitor
Copy link
Member

cc #84341

@Aaron1011
Copy link
Member

Duplicate of #84341. This is fixed in the latest nightly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-incr-comp Area: Incremental compilation 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.
Projects
None yet
Development

No branches or pull requests

3 participants