Skip to content

compiler ICE after useful error message #32857

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
cardoe opened this issue Apr 9, 2016 · 3 comments
Closed

compiler ICE after useful error message #32857

cardoe opened this issue Apr 9, 2016 · 3 comments
Labels
A-metadata Area: Crate metadata I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@cardoe
Copy link
Contributor

cardoe commented Apr 9, 2016

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.
@cardoe
Copy link
Contributor Author

cardoe commented Apr 9, 2016

Not sure if there's a generic way to make this happen but the way I made it happen is pretty corner case so its ok if this is closed with a "don't do that".

steps to reproduce:

  1. built rust on a branch based off of 1.x.0
  2. switch to a branch based off of 1.y.0
  3. make rustc-stage1
  4. use that compiler for something

@nagisa nagisa added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ A-metadata Area: Crate metadata labels Apr 11, 2016
@jonas-schievink
Copy link
Contributor

There might just be an abort_if_errors missing here

@arielb1
Copy link
Contributor

arielb1 commented May 1, 2016

duplicate of #33015.

@arielb1 arielb1 closed this as completed May 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-metadata Area: Crate metadata I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants