Closed
Description
I tried to compile this code with cargo:
https://github.com/kykc/rustlogtest2
I've expected regular compiler error E0252 as my code is indeed invalid
Instead I've got unexpected panic inside rustc
Version:
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
Backtrace:
src\main.rs:24:11: 24:20 error: a type named `LogRecord` has already been import
ed in this module [E0252]
src\main.rs:24 use log::{LogRecord, LogLevel, LogMetadata, SetLoggerError, LogLe
velFilter};
^~~~~~~~~
src\main.rs:24:11: 24:20 help: run `rustc --explain E0252` to see a detailed exp
lanation
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/m
aster/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'expected item, found unknown node (id=13)', C:/bot/s
lave/stable-dist-rustc-win-gnu-64/build/src/libsyntax\ast_map/mod.rs:332
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
db0eca23Zpd
7: 0x362c7e - NamespaceResult...std..clone..Clone::clone::h70005733
db0eca23Zpd
8: 0x35e849 - resolve_imports::ImportResolution...std..fmt..Debug::
fmt::h281e20014381fba76Yb
9: 0x35c0f1 - resolve_imports::ImportResolution...std..fmt..Debug::
fmt::h281e20014381fba76Yb
10: 0x39b50d - resolve_crate::h6f4ae44f2f4e8251M9h
11: 0x6701d964 - driver::phase_3_run_analysis_passes::h5d9dbc988e0fcdb
atGa
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.