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

Rust 1.1 internal compiler error: unexpected panic possibly related to E0252 #26594

kykc opened this issue Jun 26, 2015 · 3 comments

Rust 1.1 internal compiler error: unexpected panic possibly related to E0252 #26594

kykc opened this issue Jun 26, 2015 · 3 comments


Copy link

@kykc kykc commented Jun 26, 2015

I tried to compile this code with cargo:
I've expected regular compiler error E0252 as my code is indeed invalid
Instead I've got unexpected panic inside rustc

h:\test>rustc --version --verbose
rustc 1.1.0 (35ceea399 2015-06-19)
binary: rustc
commit-hash: 35ceea3997c79a3b7562e89b462ab76af5b86b22
commit-date: 2015-06-19
host: x86_64-pc-windows-gnu
release: 1.1.0


src\ 24:20 error: a type named `LogRecord` has already been import
ed in this module [E0252]
src\ use log::{LogRecord, LogLevel, LogMetadata, SetLoggerError, LogLe
src\ 24:20 help: run `rustc --explain E0252` to see a detailed exp
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report:
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'expected item, found unknown node (id=13)', C:/bot/s

stack backtrace:
   1:         0x6f138a02 - sys::backtrace::write::hb142593d131303b10fs
   2:         0x6f141e76 - rt::unwind::register::h2f2891f465b0e536sNv
   3:         0x6f1053c0 - rt::unwind::begin_unwind_inner::he5d025d7f655ecaaCKv
   4:         0x6f105db7 - rt::unwind::begin_unwind_fmt::h9375a8127097adc4IJv
   5:         0x65a5ff6d - ast_map::Map<'ast>::expect_item::hb158f805109e4d6eUyw

   6:           0x36350a - NamespaceResult...std..clone..Clone::clone::h70005733
   7:           0x362c7e - NamespaceResult...std..clone..Clone::clone::h70005733
   8:           0x35e849 - resolve_imports::ImportResolution...std..fmt..Debug::
   9:           0x35c0f1 - resolve_imports::ImportResolution...std..fmt..Debug::
  10:           0x39b50d - resolve_crate::h6f4ae44f2f4e8251M9h
  11:         0x6701d964 - driver::phase_3_run_analysis_passes::h5d9dbc988e0fcdb
  12:         0x67002b40 - driver::compile_input::h66ba80b489f2ef28Qba
  13:         0x670b5913 - run_compiler::hf1308c7d75cfa1a775b
  14:         0x670b349f - run::h99d8d2bce2d42189N5b
  15:         0x670b2a59 - run::h99d8d2bce2d42189N5b
  16:         0x6f17b5bc - rust_try
  17:         0x6f17b599 - rust_try
  18:         0x670b2cd5 - run::h99d8d2bce2d42189N5b
  19:         0x6f140134 - sys::process::Command::cwd::hecbd2393e1ca7c52luu
  20:         0x771a59dd - BaseThreadInitThunk

Could not compile `rustlogtest2`.

To learn more, run the command again with --verbose.
Copy link

@mitaa mitaa commented Jun 26, 2015

This has already been reported in #25763 and fixed in #25791

AFAIU this should be fixed on stable in the next release-cycle*

Copy link

@kykc kykc commented Jun 26, 2015

Thanks, seems that I've failed to use search properly 👍

@steveklabnik steveklabnik added the I-ICE label Jun 26, 2015
Copy link

@steveklabnik steveklabnik commented Jun 26, 2015

Closing since it was already fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants