Skip to content

Unstable Fingerprints #84482

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
clemmsch opened this issue Apr 23, 2021 · 2 comments
Closed

Unstable Fingerprints #84482

clemmsch opened this issue Apr 23, 2021 · 2 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

@clemmsch
Copy link

clemmsch commented Apr 23, 2021

I would also like to note that I commented out all of the code in all of my files so that all of the files are literally comments. The only line of Rust Code after my outcommenting was

fn main() {}

and it still did not compile and failed with the same error, just not in utils, but rather in my main project.

Code

fn main() {
    let x = std::fs::read_to_string("setup.py");
    dump!(x);
}

Definition of dump (I think it panics there as it tells me that get_type_of() is "well formed end of query stack")

#![feature(core_intrinsics)]

pub fn get_type_of<T>(_: T) -> String {
    unsafe { std::intrinsics::type_name::<T>() }.to_owned()
}

#[macro_export]
macro_rules! dump {
    ($($a: expr),*) => {
        println!(concat!("[", file!(),":", line!(), "] ", $(stringify!($a), ": {} = {:?}; "),*), $($crate::get_type_of(&$a), $a),*);
    }
}

Meta

rustc --version --verbose:

rustc 1.53.0-nightly (7f4afdf02 2021-04-22)
binary: rustc
commit-hash: 7f4afdf0255600306bf67432da722c7b5d2cbf82
commit-date: 2021-04-22
host: x86_64-pc-windows-msvc
release: 1.53.0-nightly
LLVM version: 12.0.0

Error output

     Running `rustc --crate-name utils --edition=2018 utils\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b3a146c2e75b4b1c -C extra-filename=-b3a146c2e75b4b1c --out-dir D:\WINDOWS\dev\liviia\target\debug\deps -C incremental=D:\WINDOWS\dev\liviia\target\debug\incremental -L dependency=D:\WINDOWS\dev\liviia\target\debug\deps`
thread 'rustc' panicked at 'assertion failed: `(left == right)`
  left: `Some(Fingerprint(10247099565525236000, 6669105383491821076))`,
 right: `Some(Fingerprint(8485006540857454277, 14781803188155767199))`: found unstable fingerprints for predicates_of(core[d23b]::marker::Sized): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as std::marker::Sized>), []), C:\Users\Clemens\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\marker.rs:92:1: 92:16 (#0))] }', /rustc/7f4afdf0255600306bf67432da722c7b5d2cbf82\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 (7f4afdf02 2021-04-22) running on x86_64-pc-windows-msvc

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

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

query stack during panic:
#0 [predicates_of] computing predicates of `std::marker::Sized`
#1 [check_item_well_formed] checking that `get_type_of` is well-formed
end of query stack
error: could not compile `utils`

Caused by:
  process didn't exit successfully: `rustc --crate-name utils --edition=2018 utils\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b3a146c2e75b4b1c -C extra-filename=-b3a146c2e75b4b1c --out-dir D:\WINDOWS\dev\liviia\target\debug\deps -C incremental=D:\WINDOWS\dev\liviia\target\debug\incremental -L dependency=D:\WINDOWS\dev\liviia\target\debug\deps` (exit code: 101)
Backtrace

     Running `rustc --crate-name utils --edition=2018 utils\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b3a146c2e75b4b1c -C extra-filename=-b3a146c2e75b4b1c --out-dir D:\WINDOWS\dev\liviia\target\debug\deps -C incremental=D:\WINDOWS\dev\liviia\target\debug\incremental -L dependency=D:\WINDOWS\dev\liviia\target\debug\deps`
thread 'rustc' panicked at 'assertion failed: `(left == right)`
  left: `Some(Fingerprint(10247099565525236000, 6669105383491821076))`,
 right: `Some(Fingerprint(8485006540857454277, 14781803188155767199))`: found unstable fingerprints for predicates_of(core[d23b]::marker::Sized): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as std::marker::Sized>), []), C:\Users\Clemens\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\marker.rs:92:1: 92:16 (#0))] }', /rustc/7f4afdf0255600306bf67432da722c7b5d2cbf82\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.

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 (7f4afdf02 2021-04-22) running on x86_64-pc-windows-msvc

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

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

query stack during panic:
#0 [predicates_of] computing predicates of `std::marker::Sized`
#1 [check_item_well_formed] checking that `get_type_of` is well-formed
#2 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `utils`

Caused by:
  process didn't exit successfully: `rustc --crate-name utils --edition=2018 utils\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b3a146c2e75b4b1c -C extra-filename=-b3a146c2e75b4b1c --out-dir D:\WINDOWS\dev\liviia\target\debug\deps -C incremental=D:\WINDOWS\dev\liviia\target\debug\incremental -L dependency=D:\WINDOWS\dev\liviia\target\debug\deps` (exit code: 101)

As this (I think) is the same as before, here is the backtrace with RUST_BACKTRACE="full"

     Running `rustc --crate-name utils --edition=2018 utils\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b3a146c2e75b4b1c -C extra-filename=-b3a146c2e75b4b1c --out-dir D:\WINDOWS\dev\liviia\target\debug\deps -C incremental=D:\WINDOWS\dev\liviia\target\debug\incremental -L dependency=D:\WINDOWS\dev\liviia\target\debug\deps`
thread 'rustc' panicked at 'assertion failed: `(left == right)`
  left: `Some(Fingerprint(10247099565525236000, 6669105383491821076))`,
 right: `Some(Fingerprint(8485006540857454277, 14781803188155767199))`: found unstable fingerprints for predicates_of(core[d23b]::marker::Sized): GenericPredicates { parent: None, predicates: [(Binder(TraitPredicate(<Self as std::marker::Sized>), []), C:\Users\Clemens\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\marker.rs:92:1: 92:16 (#0))] }', /rustc/7f4afdf0255600306bf67432da722c7b5d2cbf82\compiler\rustc_query_system\src\query\plumbing.rs:593:5
stack backtrace:
   0:     0x7ffa05555b8e - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h65f771762210e3e5
   1:     0x7ffa0557edac - core::fmt::write::h3d73561f801c6731
   2:     0x7ffa05549c28 - <std::io::IoSliceMut as core::fmt::Debug>::fmt::hd8fe844d61210e6f
   3:     0x7ffa05559c82 - std::panicking::take_hook::ha49dee799706a2d8
   4:     0x7ffa05559774 - std::panicking::take_hook::ha49dee799706a2d8
   5:     0x7ff9819ab2a7 - rustc_driver::report_ice::hab89c69e12b6dd11
   6:     0x7ffa0555a465 - std::panicking::rust_panic_with_hook::h9e7cc259d68b1de2
   7:     0x7ffa0555a041 - rust_begin_unwind
   8:     0x7ffa055564df - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h65f771762210e3e5
   9:     0x7ffa05559f99 - rust_begin_unwind
  10:     0x7ffa055b2ba0 - core::panicking::panic_fmt::h158e503d917f32a6
  11:     0x7ffa0557b6b8 - core::panicking::assert_failed_inner::h996c70ce1c4b9208
  12:     0x7ff985cf9a30 - <f64 as ryu::buffer::Sealed>::format_nonfinite::h0e70a5fe4e7d35d9
  13:     0x7ff98452246d - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hbd68f25166d1e477
  14:     0x7ff984556b1f - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hbd68f25166d1e477
  15:     0x7ff9845b619b - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hbd68f25166d1e477
  16:     0x7ff9843f3c40 - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hbd68f25166d1e477
  17:     0x7ff98476db2d - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_print_query_stack::h3c4346cc01dbde58
  18:     0x7ff98562973d - rustc_trait_selection::traits::wf::predicate_obligations::h123d136a861f1b26
  19:     0x7ff985627b37 - rustc_trait_selection::traits::wf::predicate_obligations::h123d136a861f1b26
  20:     0x7ff98562712c - rustc_trait_selection::traits::wf::predicate_obligations::h123d136a861f1b26
  21:     0x7ff9841ef14a - <rustc_typeck::check::closure::ExpectedSig as core::fmt::Debug>::fmt::h6ccb951e7afc138b
  22:     0x7ff9841f0315 - <rustc_typeck::check::wfcheck::check_where_clauses::{{closure}}::CountParams as rustc_middle::ty::fold::TypeVisitor>::visit_const::h72d346efc21393b0
  23:     0x7ff9840c3b47 - <<dyn rustc_typeck::astconv::AstConv>::create_substs_for_ast_path::SubstsForAstPathCtxt as rustc_typeck::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind::hc89e7f26a29e19ed
  24:     0x7ff9841ea28a - <rustc_typeck::check::closure::ExpectedSig as core::fmt::Debug>::fmt::h6ccb951e7afc138b
  25:     0x7ff984784da9 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_print_query_stack::h3c4346cc01dbde58
  26:     0x7ff9847168bf - rustc_query_impl::<impl rustc_query_system::query::config::QueryAccessors<rustc_query_impl::plumbing::QueryCtxt> for rustc_query_impl::queries::resolve_instance>::hash_result::hc7ba1ed25ba761ff
  27:     0x7ff98459d51a - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hbd68f25166d1e477
  28:     0x7ff9844c2b2b - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hbd68f25166d1e477
  29:     0x7ff984450bae - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hbd68f25166d1e477
  30:     0x7ff984775572 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_print_query_stack::h3c4346cc01dbde58
  31:     0x7ff9841f3abc - <rustc_typeck::check::wfcheck::CheckTypeWellFormedVisitor as rustc_hir::intravisit::Visitor>::visit_item::h79b59316ccb35910
  32:     0x7ff9841bba83 - <rustc_typeck::outlives::explicit::ExplicitPredicatesMap as core::fmt::Debug>::fmt::ha36044c869e3f05c
  33:     0x7ff9840e8ed1 - <<dyn rustc_typeck::astconv::AstConv>::create_substs_for_ast_path::SubstsForAstPathCtxt as rustc_typeck::astconv::CreateSubstsForGenericArgsCtxt>::inferred_kind::hc89e7f26a29e19ed
  34:     0x7ff98405375b - <rustc_typeck::check::op::Op as core::fmt::Debug>::fmt::hc2f86cced49ebf11
  35:     0x7ff9840fcc7c - rustc_typeck::check_crate::hb05ec982ff644b15
  36:     0x7ff981ae46f5 - rustc_interface::passes::BoxedResolver::to_resolver_outputs::h51cffbb6bc3edf8f
  37:     0x7ff984786959 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_print_query_stack::h3c4346cc01dbde58
  38:     0x7ff984715a72 - rustc_query_impl::<impl rustc_query_system::query::config::QueryAccessors<rustc_query_impl::plumbing::QueryCtxt> for rustc_query_impl::queries::resolve_instance>::hash_result::hc7ba1ed25ba761ff
  39:     0x7ff9845aa627 - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hbd68f25166d1e477
  40:     0x7ff9844e072a - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hbd68f25166d1e477
  41:     0x7ff98447822e - <rustc_ast_lowering::item::ItemLowerer as rustc_ast::visit::Visitor>::visit_foreign_item::hbd68f25166d1e477
  42:     0x7ff98476d972 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_print_query_stack::h3c4346cc01dbde58
  43:     0x7ff9819e30ba - <rustc_middle::ty::SymbolName as core::fmt::Debug>::fmt::ha51d28018e278c75
  44:     0x7ff9819b5a3b - rustc_driver::pretty::print_after_hir_lowering::h018530f73994254f
  45:     0x7ff9819ad9dc - <rustc_driver::Compilation as core::fmt::Debug>::fmt::h4409e290eea8174b
  46:     0x7ff9819b6d56 - rustc_driver::pretty::print_after_hir_lowering::h018530f73994254f
  47:     0x7ff9819dd0e4 - <rustc_middle::ty::SymbolName as core::fmt::Debug>::fmt::ha51d28018e278c75
  48:     0x7ff9819df7ff - <rustc_middle::ty::SymbolName as core::fmt::Debug>::fmt::ha51d28018e278c75
  49:     0x7ff9819e9ddd - <rustc_middle::ty::SymbolName as core::fmt::Debug>::fmt::ha51d28018e278c75
  50:     0x7ffa0556851a - std::sys::windows::thread::Thread::new::h35832c8baf769397
  51:     0x7ffa4e7d7034 - BaseThreadInitThunk
  52:     0x7ffa4f6c2651 - RtlUserThreadStart

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 (7f4afdf02 2021-04-22) running on x86_64-pc-windows-msvc

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

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

query stack during panic:
#0 [predicates_of] computing predicates of `std::marker::Sized`
#1 [check_item_well_formed] checking that `get_type_of` is well-formed
#2 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `utils`

Caused by:
  process didn't exit successfully: `rustc --crate-name utils --edition=2018 utils\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b3a146c2e75b4b1c -C extra-filename=-b3a146c2e75b4b1c --out-dir D:\WINDOWS\dev\liviia\target\debug\deps -C incremental=D:\WINDOWS\dev\liviia\target\debug\incremental -L dependency=D:\WINDOWS\dev\liviia\target\debug\deps` (exit code: 101)

@clemmsch clemmsch 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 23, 2021
@cynecx
Copy link
Contributor

cynecx commented Apr 23, 2021

#84341

@JohnTitor JohnTitor added the A-incr-comp Area: Incremental compilation label Apr 24, 2021
@jonas-schievink
Copy link
Contributor

closing in favor of #84341

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

4 participants