Skip to content

Fingerprints don't match #84237

Closed
Closed
@ViliamVadocz

Description

@ViliamVadocz

I just started a new project. I added ndarray as a dependency and when I tried to build I got this error. I had built the project with a different toolchain before I added ndarray. I switched to nightly because the git dependency requires it, but I get this error even when that is commented out in Cargo.toml.

Code

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

In Cargo.toml

[package]
name = "onitama-alpha-zero"
version = "0.1.0"
authors = ["Viliam Vadocz <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
# onitama_move_gen  = { git = "https://github.com/LHolten/onitama" }
ndarray = "0.15.1"

Meta

rustc --version --verbose:

rustc 1.53.0-nightly (7af1f55ae 2021-04-15)
binary: rustc
commit-hash: 7af1f55ae359e731c2c303f5d98e42a1a8163af0
commit-date: 2021-04-15
host: x86_64-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(11743986976063699534, 6128041123698471240))`,
 right: `Some(Fingerprint(7526047265956232467, 10041367737528211193))`: found unstable fingerprints for predicates_of(core[d23b]::ops::function::Fn): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as std::ops::FnMut<Args>>), []), C:\Users\Viliam\.rustup\toolchains\nightly-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\Viliam\.rustup\toolchains\nightly-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\Viliam\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\ops\function.rs:67:1: 67:32 (#0))] }', /rustc/7af1f55ae359e731c2c303f5d98e42a1a8163af0\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 (7af1f55ae 2021-04-15) 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
Backtrace

thread 'rustc' panicked at 'assertion failed: `(left == right)`
  left: `Some(Fingerprint(11743986976063699534, 6128041123698471240))`,
 right: `Some(Fingerprint(7526047265956232467, 10041367737528211193))`: found unstable fingerprints for predicates_of(core[d23b]::ops::function::Fn): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as std::ops::FnMut<Args>>), []), C:\Users\Viliam\.rustup\toolchains\nightly-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\Viliam\.rustup\toolchains\nightly-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\Viliam\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\ops\function.rs:67:1: 67:32 (#0))] }', /rustc/7af1f55ae359e731c2c303f5d98e42a1a8163af0\compiler\rustc_query_system\src\query\plumbing.rs:593:5   
stack backtrace:
   0:     0x7ffc0f30586e - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h65f771762210e3e5
   1:     0x7ffc0f32e9bc - core::fmt::write::h3d73561f801c6731
   2:     0x7ffc0f2f99e8 - <std::io::IoSlice as core::fmt::Debug>::fmt::h6fd08a0ca4059bc8
   3:     0x7ffc0f309942 - std::panicking::take_hook::ha49dee799706a2d8
   4:     0x7ffc0f309434 - std::panicking::take_hook::ha49dee799706a2d8
   5:     0x7ffbe542bf97 - rustc_driver::report_ice::h812a9754403fbbdc
   6:     0x7ffc0f30a125 - std::panicking::rust_panic_with_hook::h9e7cc259d68b1de2
   7:     0x7ffc0f309d01 - rust_begin_unwind
   8:     0x7ffc0f3061bf - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h65f771762210e3e5
   9:     0x7ffc0f309c59 - rust_begin_unwind
  10:     0x7ffc0f3625d0 - core::panicking::panic_fmt::h158e503d917f32a6
  11:     0x7ffc0f32b278 - core::panicking::assert_failed_inner::h996c70ce1c4b9208
  12:     0x7ffbe9776280 - <f64 as ryu::buffer::Sealed>::format_nonfinite::h0e70a5fe4e7d35d9
  13:     0x7ffbe7fa045d - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  14:     0x7ffbe7fe423f - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  15:     0x7ffbe8017e0b - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  16:     0x7ffbe7e841c0 - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  17:     0x7ffbe81ea55d - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_print_query_stack::haa962e93571318de
  18:     0x7ffbe92162f4 - rustc_middle::ty::generics::GenericPredicates::instantiate_identity::h25b1597b4ff4e27a
  19:     0x7ffbe9216127 - rustc_middle::ty::generics::GenericPredicates::instantiate_identity::h25b1597b4ff4e27a
  20:     0x7ffbe902f4a7 - rustc_trait_selection::traits::object_safety::trait_has_sized_self::h6e4dacc7cab68685
  21:     0x7ffbe9084f78 - <rustc_trait_selection::traits::select::ProvisionalEvaluation as core::fmt::Debug>::fmt::h8fccadcebd831c90
  22:     0x7ffbe906b8d6 - <rustc_trait_selection::traits::select::ProvisionalEvaluation as core::fmt::Debug>::fmt::h8fccadcebd831c90
  23:     0x7ffbe907541f - <rustc_trait_selection::traits::select::ProvisionalEvaluation as core::fmt::Debug>::fmt::h8fccadcebd831c90
  24:     0x7ffbe97bd632 - serde::__private::de::content::Content::unexpected::h984b996032a28d25
  25:     0x7ffbe90948e3 - <rustc_trait_selection::traits::TraitQueryMode as core::fmt::Debug>::fmt::hf13f438d866c1bd3
  26:     0x7ffbe90937cc - rustc_trait_selection::traits::impossible_predicates::h02c80b0f27c0fd7e
  27:     0x7ffbe7fe98d7 - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  28:     0x7ffbe8201e1d - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_print_query_stack::haa962e93571318de
  29:     0x7ffbe7fdace9 - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  30:     0x7ffbe801f481 - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  31:     0x7ffbe7e7f857 - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  32:     0x7ffbe81f077f - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_print_query_stack::haa962e93571318de
  33:     0x7ffbe84f94e1 - <rustc_mir::monomorphize::collector::MirNeighborCollector as rustc_middle::mir::visit::Visitor>::visit_rvalue::h1be1cd347d3efa17
  34:     0x7ffbe84fdaba - <rustc_mir::monomorphize::collector::RootCollector as rustc_hir::itemlikevisit::ItemLikeVisitor>::visit_impl_item::hcd2ce4c0109ecd45
  35:     0x7ffbe84f65bd - rustc_mir::monomorphize::collector::collect_crate_mono_items::h6ce6e402aeb08bdc
  36:     0x7ffbe880d83c - <rustc_mir::transform::rustc_peek::PeekCall as core::fmt::Debug>::fmt::hc69a8828821aefdd
  37:     0x7ffbe84f4731 - rustc_mir::monomorphize::collector::collect_crate_mono_items::h6ce6e402aeb08bdc
  38:     0x7ffbe885578d - rustc_mir::monomorphize::partitioning::partition::h45672fa319374c0b
  39:     0x7ffbe7fea41f - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  40:     0x7ffbe82031d1 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_print_query_stack::haa962e93571318de
  41:     0x7ffbe819c405 - rustc_span::MultiSpan::primary_spans::hb03753587c26cb26
  42:     0x7ffbe801c2eb - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  43:     0x7ffbe7f56a1b - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  44:     0x7ffbe7ee351b - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hff6f397d94ea9c2d
  45:     0x7ffbe81f4b48 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_print_query_stack::haa962e93571318de
  46:     0x7ffbe56a0947 - <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_ssa::traits::backend::CodegenBackend>::link::hd8f1b73dde3030ef     
  47:     0x7ffbe569cc39 - <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_ssa::traits::backend::CodegenBackend>::codegen_crate::hd7163c6781be0464
  48:     0x7ffbe5563c62 - rustc_interface::passes::BoxedResolver::to_resolver_outputs::hed3f4a674c84aa76
  49:     0x7ffbe557b996 - rustc_interface::queries::Queries::ongoing_codegen::h0e07e13598b5a142
  50:     0x7ffbe5436777 - rustc_driver::pretty::print_after_hir_lowering::h34fc3daaffe50b1c
  51:     0x7ffbe542ecac - <rustc_driver::Compilation as core::fmt::Debug>::fmt::hfa68f16ac1132e65
  52:     0x7ffbe5438426 - rustc_driver::pretty::print_after_hir_lowering::h34fc3daaffe50b1c
  53:     0x7ffbe545e2a4 - <rustc_span::symbol::SymbolStr as core::fmt::Display>::fmt::h96a1e17f3d7b1192
  54:     0x7ffbe546077f - <rustc_span::symbol::SymbolStr as core::fmt::Display>::fmt::h96a1e17f3d7b1192
  55:     0x7ffbe546ad7d - <rustc_span::symbol::SymbolStr as core::fmt::Display>::fmt::h96a1e17f3d7b1192
  56:     0x7ffc0f3181ca - std::sys::windows::thread::Thread::new::h35832c8baf769397
  57:     0x7ffc45e27c24 - BaseThreadInitThunk
  58:     0x7ffc46ccd721 - RtlUserThreadStart

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions