Skip to content

Could not complete Hello World #85080

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
shivanshsen7 opened this issue May 8, 2021 · 3 comments
Closed

Could not complete Hello World #85080

shivanshsen7 opened this issue May 8, 2021 · 3 comments
Labels
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

@shivanshsen7
Copy link

Could not follow hello-rust

Code

fn main() {
	println!("Hello, world!");
}

Meta

rustc --version --verbose:

rustc 1.52.0 (88f19c6da 2021-05-03)
binary: rustc
commit-hash: 88f19c6dab716c6281af7602e30f413e809c5974
commit-date: 2021-05-03
host: x86_64-pc-windows-msvc
release: 1.52.0
LLVM version: 12.0.0

Error output


       Fresh autocfg v1.0.1
       Fresh cc v1.0.67
       Fresh gimli v0.24.0
       Fresh adler v1.0.2
       Fresh object v0.24.0
       Fresh unicode-width v0.1.8
       Fresh rustc-demangle v0.1.19
       Fresh cfg-if v1.0.0
       Fresh vec_map v0.8.2
       Fresh strsim v0.8.0
       Fresh smallvec v0.4.5
       Fresh addr2line v0.15.1
       Fresh textwrap v0.11.0
       Fresh winapi v0.3.9
       Fresh libc v0.2.94
       Fresh bitflags v1.2.1
       Fresh miniz_oxide v0.4.4
       Fresh atty v0.2.14
       Fresh backtrace v0.3.59
       Fresh clap v2.33.3
       Fresh error-chain v0.10.0
       Fresh ferris-says v0.2.0
   Compiling hello-rust v0.1.0 (D:\rust\hello-rust)
     Running `rustc --crate-name hello_rust --edition=2018 'src\main.rs' --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=a5a866d33d71c728 --out-dir 'D:\rust\hello-rust\target\debug\deps' -C 'incremental=D:\rust\hello-rust\target\debug\incremental' -L 'dependency=D:\rust\hello-rust\target\debug\deps' --extern 'ferris_says=D:\rust\hello-rust\target\debug\deps\libferris_says-9cc42f4fadeb00ab.rlib'`
thread 'rustc' panicked at 'found unstable fingerprints for predicates_of(core[bd3a]::ops::function::Fn): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as std::ops::FnMut<Args>>)), C:\Users\Shivansh sen\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\ops\function.rs:67:21: 67:32 (#0)), (Binder(TraitPredicate(<Args as std::marker::Sized>)), C:\Users\Shivansh sen\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\ops\function.rs:67:14: 67:18 (#0)), (Binder(TraitPredicate(<Self as std::ops::Fn<Args>>)), C:\Users\Shivansh sen\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\ops\function.rs:67:1: 67:32 (#0))] }', /rustc/88f19c6dab716c6281af7602e30f413e809c5974\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.52.0 (88f19c6da 2021-05-03) 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::ops::Fn`
#1 [vtable_methods] finding all methods for trait std::ops::Fn
end of query stack
error: could not compile `hello-rust`

Caused by:
  process didn't exit successfully: `rustc --crate-name hello_rust --edition=2018 'src\main.rs' --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=a5a866d33d71c728 --out-dir 'D:\rust\hello-rust\target\debug\deps' -C 'incremental=D:\rust\hello-rust\target\debug\incremental' -L 'dependency=D:\rust\hello-rust\target\debug\deps' --extern 'ferris_says=D:\rust\hello-rust\target\debug\deps\libferris_says-9cc42f4fadeb00ab.rlib'` (exit code: 101)
Backtrace

thread 'rustc' panicked at 'found unstable fingerprints for predicates_of(core[bd3a]::ops::function::Fn): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as std::ops::FnMut<Args>>)), C:\Users\Shivansh sen\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\ops\function.rs:67:21: 67:32 (#0)), (Binder(TraitPredicate(<Args as std::marker::Sized>)), C:\Users\Shivansh sen\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\ops\function.rs:67:14: 67:18 (#0)), (Binder(TraitPredicate(<Self as std::ops::Fn<Args>>)), C:\Users\Shivansh sen\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\ops\function.rs:67:1: 67:32 (#0))] }', /rustc/88f19c6dab716c6281af7602e30f413e809c5974\compiler\rustc_query_system\src\query\plumbing.rs:593:5
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

@shivanshsen7 shivanshsen7 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 May 8, 2021
@Aaron1011
Copy link
Member

See issue #84970

@carols10cents
Copy link
Member

carols10cents commented May 8, 2021

Hi @shivanshsen7! Thank you for the bug report :) The compiler team is currently working on a bunch of issues similar to this. As mentioned on the bug Aaron linked to, until these issues are fixed, you can work around this by disabling incremental compilation either by setting the environment variable CARGO_INCREMENTAL=0 or editing the Cargo configuration file in your $HOME/.cargo/config.toml file to include this:

build.incremental = 'false'

Please let us know if you have any questions, and sorry about this issue.

EDIT: oooops I was testing that setting and the first time I posted this comment, it was set to true. It should be false.

@wesleywiser
Copy link
Member

Thanks for filing the bug report! We are currently triaging issues related to #84970 to ensure each underlying problem gets resolved. Since this appears to be a duplicate of #83259 so I'm going to close in favor of that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

4 participants