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

Compiler Error on impl of a trait #24134

Closed
olynch opened this issue Apr 7, 2015 · 4 comments
Closed

Compiler Error on impl of a trait #24134

olynch opened this issue Apr 7, 2015 · 4 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@olynch
Copy link

olynch commented Apr 7, 2015

I'm getting a compiler panic while trying to compile https://github.com/iron/router.
Notice: I did not write this code, so it may just be outdated for the current version of Rust, however I thought I should do my due diligence and report the bug.

Full Error report:
Compiling router v0.0.9 (file:///home/olynch/git/router)
src/router.rs:158:1: 158:45 error: internal compiler error: coherence failed to report ambiguity: cannot locate the impl of the trait core::marker::MarkerTrait for the type iron::middleware::Handler
src/router.rs:158 impl Key for Router { type Value = Params; }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
note: run with RUST_BACKTRACE=1 for a backtrace
thread 'rustc' panicked at 'Box', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:130

stack backtrace:
1: 0x7fb982541818 - sys::backtrace::write::h4618bbda30a2c1fakHC
2: 0x7fb98256cbe7 - panicking::on_panic::h94b32ff0a2406463uUI
3: 0x7fb9824a48f3 - rt::unwind::begin_unwind_inner::h310b6bce2d1d1820CzI
4: 0x7fb97f84bf1d - rt::unwind::begin_unwind::h15255259843176184093
5: 0x7fb97f84bec3 - diagnostic::SpanHandler::span_bug::he0c1a59febe6c207YmB
6: 0x7fb980411fbd - middle::traits::error_reporting::report_fulfillment_error::h361f4d21db110ed2FQN
7: 0x7fb980290121 - middle::traits::error_reporting::report_fulfillment_errors::h1a0f8aa12029694cVPN
8: 0x7fb98118753c - check::vtable::select_all_fcx_obligations_or_error::haf7db39d8950f48dX1b
9: 0x7fb9812112d9 - check::wf::CheckTypeWellFormedVisitor<'ccx, 'tcx>::check_item_well_formed::h857600b69cfccd2amWk
10: 0x7fb981219aa2 - visit::walk_item::h16647639657954483846
11: 0x7fb981313e19 - check_crate::closure.36364
12: 0x7fb98130e3c3 - check_crate::hda9802680caa3ff01oC
13: 0x7fb982bc249d - driver::phase_3_run_analysis_passes::h360d9d4448a0da27gGa
14: 0x7fb982ba62f5 - driver::compile_input::h16213dd19660ff98Qba
15: 0x7fb982c5da05 - run_compiler::h2a37c69935ac5f41S4b
16: 0x7fb982c5b31d - boxed::F.FnBox::call_box::h5013090055299594809
17: 0x7fb982c5a859 - rt::unwind::try::try_fn::h6394874154857801728
18: 0x7fb9825e9398 - rust_try_inner
19: 0x7fb9825e9385 - rust_try
20: 0x7fb982c5ab2b - boxed::F.FnBox::call_box::h8372456613525927705
21: 0x7fb982557bd1 - sys::thread::create::thread_start::h0a2c84bef4c472f7MuH
22: 0x7fb97c32b181 - start_thread
23: 0x7fb98210747c - __clone
24: 0x0 -

Could not compile router.

Meta

rustc --version --verbose:
rustc 1.0.0-nightly (be9bd7c 2015-04-05) (built 2015-04-06)
binary: rustc
commit-hash: be9bd7c
commit-date: 2015-04-05
build-date: 2015-04-06
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly

@gsingh93
Copy link
Contributor

gsingh93 commented Apr 7, 2015

This should have been fixed here: #24056

You'll have to wait for the next nightly.

@steveklabnik steveklabnik added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Apr 7, 2015
@gsingh93
Copy link
Contributor

gsingh93 commented Apr 8, 2015

Try it with the latest nightly, this should be fixed.

@Munksgaard
Copy link
Contributor

Indeed, this compiles with rustc 1.1.0-dev (30a42faa1 2015-05-13) (built 2015-05-13).
Should we close it @steveklabnik ?

@olynch
Copy link
Author

olynch commented May 18, 2015

It now compiles! Issue closed.

@olynch olynch closed this as completed May 18, 2015
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

4 participants