Closed
Description
So I think the error message made the situation clear what I had done wrong but to me it feels awkward that the compiler threw an ICE after the telling me the issue.
$ ~/work/rust/x86_64-unknown-linux-gnu/stage1/bin/rustc -o json-test json-test.rs
json-test.rs:5:1: 5:24 error: the crate `serialize` has been compiled with rustc 1.7.0-dev (c6e520edb 2016-04-08), which is incompatible with this version of rustc [E0514]
json-test.rs:5 extern crate serialize;
^~~~~~~~~~~~~~~~~~~~~~~
json-test.rs:5:1: 5:24 help: consider removing the compiled binaries and recompiling with your current version of rustc
ERROR:rbml::reader: failed to find block with tag 275
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
thread 'rustc' panicked at 'explicit panic', src/librbml/lib.rs:437
note: Run with `RUST_BACKTRACE=1` for a backtrace.