Skip to content
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

Compiler panics internally on "cargo run hello" #83710

Closed
bcpeinhardt opened this issue Mar 31, 2021 · 1 comment
Closed

Compiler panics internally on "cargo run hello" #83710

bcpeinhardt opened this issue Mar 31, 2021 · 1 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.

Comments

@bcpeinhardt
Copy link

Code

use std::env;

fn main() {
    let args: Vec<String> = env::args().collect();
    if args.len() < 2 {
        println!("Commands: create | complete | remove | view ");
    }

    if let Some(arg) = args.get(1) {
        match arg {
            _ => {
                println!("No errs yet");
            }
        }
    }
}

Meta

rustc --version --verbose:

rustc 1.53.0-nightly (5e65467ef 2021-03-26)
binary: rustc
commit-hash: 5e65467eff3d1da4712586d8402d1d2e1d6654bc
commit-date: 2021-03-26
host: x86_64-pc-windows-msvc
release: 1.53.0-nightly
LLVM version: 12.0.0

Error output

Compiling global_to_do v0.1.0 (C:\Users\benja\Dropbox\My PC (DESKTOP-F02B0UR)\Desktop\Development_Projects\global_to_do)
thread 'rustc' panicked at 'found unstable fingerprints for predicates_of(core[f48f]::iter::traits::iterator::Iterator): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as std::iter::Iterator>)), C:\Users\benja\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\iter\traits\iterator.rs:98:1: 98:19 (#0))] }', /rustc/5e65467eff3d1da4712586d8402d1d2e1d6654bc\compiler\rustc_query_system\src\query\plumbing.rs:593:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.53.0-nightly (5e65467ef 2021-03-26) running on x86_64-pc-windows-msvc

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [predicates_of] computing predicates of `std::iter::Iterator`
#1 [typeck] type-checking `main`
end of query stack
error: could not compile `global_to_do`

To learn more, run the command again with --verbose.
Backtrace

<backtrace>

@bcpeinhardt bcpeinhardt 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 Mar 31, 2021
@jonas-schievink jonas-schievink added the A-incr-comp Area: Incremental compilation label Mar 31, 2021
@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