Skip to content

'rustc' panicked at 'No def'n found for DefId { krate: 0, node: 4 } in tcx.tcache' #19341

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
dan-t opened this issue Nov 26, 2014 · 1 comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@dan-t
Copy link

dan-t commented Nov 26, 2014

rustc 0.13.0-nightly (eedfc0779 2014-11-25 22:36:59 +0000)
binary: rustc
commit-hash: eedfc077964b811315589d9a70293d3ff2eb0e1d
commit-date: 2014-11-25 22:36:59 +0000
host: x86_64-unknown-linux-gnu
release: 0.13.0-nightly

When I'm trying to compile:

mod point
{
}

fn main()
{
   let point = point { x: 0, y: 0 };
}

I'm getting:

task 'rustc' panicked at 'No def'n found for DefId { krate: 0, node: 4 } in tcx.tcache', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc/middle/ty.rs:4376

stack backtrace:
   1:     0x2af65aa1f6c0 - rt::backtrace::imp::write::haa47b8c121fd0a91H4x
   2:     0x2af65aa22790 - failure::on_fail::h677b2ecbbc3adea62wy
   3:     0x2af65aea72b0 - unwind::begin_unwind_inner::h6076ba341dd042bdYQc
   4:     0x2af65aea6f30 - unwind::begin_unwind_fmt::h6dced2c2ae1fae959Nc
   5:     0x2af65b870310 - middle::ty::lookup_item_type::h4cfd8030b31d223aRb8
   6:     0x2af65baa6240 - middle::typeck::check::check_expr_with_unifier::hfad60af32af63d30wZo
   7:     0x2af65badcac0 - middle::typeck::check::check_decl_local::hd70b78f975793173XSq
   8:     0x2af65badcc80 - middle::typeck::check::check_stmt::h25797fbcff20d4bdXUq
   9:     0x2af65ba5e9b0 - middle::typeck::check::check_block_with_expected::h11d0415a834f4c97cZq
  10:     0x2af65ba368a0 - middle::typeck::check::check_fn::h165efe49f79ce15dXpl
  11:     0x2af65ba5b330 - middle::typeck::check::check_bare_fn::hf40ae3184034a2e32el
  12:     0x2af65ba571a0 - middle::typeck::check::check_item::h2e1dfb0a78700099czl
  13:     0x2af65ba5afc0 - middle::typeck::check::check_item_types::h0a40801e0812848bcel
  14:     0x2af65bdfe740 - util::common::time::h14215828515916188419
  15:     0x2af65bdfd950 - middle::typeck::check_crate::h5f18445781f0e2c5TVO
  16:     0x2af65a5d6b40 - driver::driver::phase_3_run_analysis_passes::h1e6ec93ec340b11aVlS
  17:     0x2af65a5cbbc0 - driver::driver::compile_input::h3650ea3ea9db5c1312R
  18:     0x2af65a64fa60 - driver::run_compiler::h8c15fe2011461f3690T
  19:     0x2af65a64f950 - driver::run::closure.59868
  20:     0x2af65a457b60 - task::TaskBuilder::try_future::closure.38986
  21:     0x2af65a9f03d0 - task::TaskBuilder::spawn_internal::closure.30137
  22:     0x2af65aea50d0 - task::Task::spawn::closure.5703
  23:     0x2af65aeff760 - rust_try_inner
  24:     0x2af65aeff750 - rust_try
  25:     0x2af65aea51b0 - unwind::try::he2929ed1852ce283jFc
  26:     0x2af65aea4f70 - task::Task::run::h9debf4f19d281b44cOb
  27:     0x2af65aea4b60 - task::Task::spawn::closure.5679
  28:     0x2af65aea65b0 - thread::thread_start::hbf69e7ffa558b448f6b
  29:     0x2af6601bf0c0 - start_thread
  30:     0x2af65b2972d9 - __clone
  31:                0x0 - <unknown>

I stumpled over it when trying some things with modules and structs and
for testing purposes just named both in the same way and forgot to
qualify the struct with the module name.

Greetings,
Daniel

@sfackler sfackler added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Nov 26, 2014
@ftxqxd
Copy link
Contributor

ftxqxd commented Nov 29, 2014

Looks like a dup of #17001.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants