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 panicked unexpectedly #41235

Closed
4dplanner opened this issue Apr 11, 2017 · 2 comments
Closed

Compiler panicked unexpectedly #41235

4dplanner opened this issue Apr 11, 2017 · 2 comments

Comments

@4dplanner
Copy link

4dplanner commented Apr 11, 2017

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/blob/master/CONTRIBUTING.md#bug-reports

note: run with `RUST_BACKTRACE=1` for a backtrace

thread 'rustc' panicked at 'assertion failed: resolution.depth == 0 || resolution.base_def != Def::Err', C:\bot\slave\nightly-dist-rustc-win-msvc-32\build\src\librustc_resolve\lib.rs:3057
stack backtrace:
   0: 0x6902b86d - <std::ffi::c_str::CString as core::ops::Deref>::deref::ha865f31969fd3900
   1: 0x6902e494 - std::panicking::rust_panic_with_hook::hcb97e644865eecd0
   2: 0x68ec555f - <unknown>
   3: 0x68f472ce - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
   4: 0x68f50f42 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
   5: 0x68f50800 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
   6: 0x68f44911 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
   7: 0x68f45b80 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
   8: 0x68f510f4 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
   9: 0x68f45b61 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
  10: 0x68f510f4 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
  11: 0x68f45b61 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
  12: 0x68f3600b - <rustc_resolve::Resolver<'a> as syntax::visit::Visitor<'tcx>>::visit_fn::hb6502752dd44eaf2
  13: 0x68f0d185 - <unknown>
  14: 0x68f45ba0 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
  15: 0x68f3600b - <rustc_resolve::Resolver<'a> as syntax::visit::Visitor<'tcx>>::visit_fn::hb6502752dd44eaf2
  16: 0x68f0aae1 - <unknown>
  17: 0x68f43446 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
  18: 0x68f43f9f - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
  19: 0x68f43ba0 - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
  20: 0x68f4477b - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
  21: 0x68f4122f - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
  22: 0x68f0d1ab - <unknown>
  23: 0x68f3943c - rustc_resolve::Resolver::resolve_crate::h21192d37807c7296
  24: 0x6956ed8e - rustc_driver::driver::count_nodes::h3eec963a83fe2fd1
  25: 0x695663ff - rustc_driver::driver::count_nodes::h3eec963a83fe2fd1
  26: 0x695591b5 - rustc_driver::driver::compile_input::hc842f944bcd18638
  27: 0x695a65a0 - rustc_driver::run_compiler::h6dc31a7f5c3b8ab5
  28: 0x694ade5d - <unknown>
  29: 0x69034b7b - _rust_maybe_catch_panic
  30: 0x694d57ef - <rustc_driver::derive_registrar::Finder as rustc::hir::itemlikevisit::ItemLikeVisitor<'v>>::visit_trait_item::h7a35b26a502a3664
  31: 0x69029c9c - std::sys::imp::thread::Thread::new::h91a457219ca5ec2b
  32: 0x745862c3 - BaseThreadInitThunk
  33: 0x77150fd8 - RtlSubscribeWnfStateChangeNotification
  34: 0x77150fa3 - RtlSubscribeWnfStateChangeNotification

error: Could not compile game_1.

@est31
Copy link
Member

est31 commented Apr 12, 2017

cc @petrochenkov

@4dplanner which rustc version do you have?

Maybe this is a dupe of #39559?

@petrochenkov
Copy link
Contributor

Yes, it's a duplicate, was fixed in #39939

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants