Skip to content

compiler error in inherent_impls_overlap.rs "unexpected panic" #89844

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
teamplayer3 opened this issue Oct 13, 2021 · 2 comments
Closed

compiler error in inherent_impls_overlap.rs "unexpected panic" #89844

teamplayer3 opened this issue Oct 13, 2021 · 2 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

@teamplayer3
Copy link

Error occurs while compiling Build.rs script of crate stm32g4.

Meta

rustc --version --verbose:

rustc 1.57.0-nightly (d7c97a02d 2021-10-12) running on x86_64-pc-windows-msvc

Error output

thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', compiler\rustc_typeck\src\coherence\inherent_impls_overlap.rs:242:74
error: internal compiler error: unexpected panic

query stack during panic:
#0 [crate_inherent_impls_overlap_check] check for overlap between inherent impls defined in this crate
#1 [analysis] running analysis passes on this crate
end of query stack
error: could not compile `stm32g4`
Backtrace

   0:     0x7fff3ab88dbf - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4287336b592e4e30
   1:     0x7fff3abb2d0a - core::fmt::write::h8a2c40ddb66ccc71
   2:     0x7fff3ab7b5b8 - <std::io::IoSlice as core::fmt::Debug>::fmt::h37489b9473b33977
   3:     0x7fff3ab8c516 - std::panicking::take_hook::hf14c76592f73c762
   4:     0x7fff3ab8bffc - std::panicking::take_hook::hf14c76592f73c762
   5:     0x7ffeedbd4645 - <sha1::Sha1 as std::io::Write>::flush::hb2f1a973b0edcfa2
   6:     0x7fff3ab8ce29 - std::panicking::rust_panic_with_hook::hbc0e9c80ca88eac0
   7:     0x7fff3ab8c89f - rust_begin_unwind
   8:     0x7fff3ab896f7 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4287336b592e4e30
   9:     0x7fff3ab8c829 - rust_begin_unwind
  10:     0x7fff3abe96c0 - core::panicking::panic_fmt::hc1b1ca620e7a2c9f
  11:     0x7fff3abe960c - core::panicking::panic::hfef5cee9afdef02a
  12:     0x7ffef065d484 - <rustc_typeck::coherence::inherent_impls_overlap::InherentOverlapChecker as rustc_hir::itemlikevisit::ItemLikeVisitor>::visit_item::hbccee90bd7afb314
  13:     0x7ffef065aa7d - <dyn rustc_typeck::astconv::AstConv>::ast_ty_to_ty::h56a50cccb9daa366
  14:     0x7ffef11a381a - <rustc_mir_dataflow::framework::cursor::CursorPosition as core::fmt::Debug>::fmt::h758f734727003b57
  15:     0x7ffef13e65c8 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green::hd5d86015fdc5f141
  16:     0x7ffef05fa349 - <rustc_typeck::check::closure::ExpectedSig as core::fmt::Debug>::fmt::h54a456a019c1001d        
  17:     0x7ffef05ae7f7 - rustc_typeck::check_crate::h0d388ad5b039e2f6
  18:     0x7ffeedd4915f - rustc_interface::passes::analysis::ha16b07cb40233921
  19:     0x7ffef120742d - <rustc_mir_dataflow::framework::cursor::CursorPosition as core::fmt::Debug>::fmt::h758f734727003b57
  20:     0x7ffef13e2ec5 - <rustc_query_impl::Queries as rustc_middle::ty::query::QueryEngine>::try_mark_green::hd5d86015fdc5f141
  21:     0x7ffeedc63020 - <rustc_driver::args::Error as core::fmt::Debug>::fmt::h9b97ef65e0d6092b
  22:     0x7ffeedc3f4c3 - <rustc_middle::ty::SymbolName as core::fmt::Debug>::fmt::h18ae4379a1be382c
  23:     0x7ffeedbf3ab6 - rustc_driver::pretty::print_after_hir_lowering::h15ef402ed2a3b92f
  24:     0x7ffeedc3bb35 - <rustc_middle::ty::SymbolName as core::fmt::Debug>::fmt::h18ae4379a1be382c
  25:     0x7ffeedbf8f6c - <tracing_subscriber::util::TryInitError as core::fmt::Display>::fmt::hd227e57b2fd7a492
  26:     0x7ffeedc693a8 - <rustc_driver::args::Error as core::fmt::Debug>::fmt::h9b97ef65e0d6092b
  27:     0x7fff3ab994ec - std::sys::windows::thread::Thread::new::he49a5cdb1d3d1cfc
  28:     0x7fff984e7034 - BaseThreadInitThunk
  29:     0x7fff98b42651 - RtlUserThreadStart

@teamplayer3 teamplayer3 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 Oct 13, 2021
@hellow554
Copy link
Contributor

Looks like a dup of #89820

@Mark-Simulacrum
Copy link
Member

Indeed, closing. Thanks!

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

3 participants