Closed
Description
While trying to compile the lastest version of rust-hl-lua, I get this ICE. I have no idea if this has been reported before, and my attempts produce a minimal test case have failed.
ty@ty-desktop-ubuntu:~/workspace/rust/rust-hl-lua/rust-hl-lua$ cargo build
Compiling rust-hl-lua v0.1.0 (file:///home/ty/workspace/rust/rust-hl-lua/rust-hl-lua)
/home/ty/workspace/rust/rust-hl-lua/rust-hl-lua/src/lib.rs:1:1: 1:1 error: internal compiler error: Type parameter out of range when substituting in region 'a (root type='amut lua_tables::LuaTable<'var, L>) (space=FnSpace, index=0)
/home/ty/workspace/rust/rust-hl-lua/rust-hl-lua/src/lib.rs:1 #![crate_name = "rust-hl-lua"]
^
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:116
stack backtrace:
1: 0x7f3123598080 - rt::backtrace::imp::write::h939301e75513bc72Pdt
2: 0x7f312359b100 - failure::on_fail::hdd4bf65d63a3996bqzt
3: 0x7f3127b28d90 - unwind::begin_unwind_inner::h96243874d9cdbfadE9c
4: 0x7f3124105e90 - unwind::begin_unwind::h2280031143806423275
5: 0x7f3124105e10 - diagnostic::SpanHandler::span_bug::h909bcfe987334462oZF
6: 0x7f3128441f30 - middle::subst::SubstFolder<'a, 'tcx>.TypeFolder<'tcx>::fold_region::hc9dc6e5f89fe3b80zqW
7: 0x7f31283845f0 - middle::subst::SubstFolder<'a, 'tcx>.TypeFolder<'tcx>::fold_ty::h62822da8c93d1b30FsW
8: 0x7f3128616060 - middle::typeck::check::method::LookupContext<'a, 'tcx>::xform_self_ty::h542c52b0bf1cba8ffgV
9: 0x7f3128614860 - middle::typeck::check::method::LookupContext<'a, 'tcx>::push_inherent_impl_candidates_for_type::h5eb7f05754f0f332pWT
10: 0x7f3128614370 - middle::typeck::check::method::LookupContext<'a, 'tcx>::push_inherent_candidates::closure.132189
11: 0x7f3128613f60 - middle::typeck::check::autoderef::h866776130861456323
12: 0x7f31286062e0 - middle::typeck::check::method::lookup::hc1c051da6a885be7VjS
13: 0x7f312866a830 - middle::typeck::check::check_expr_with_unifier::ha8a701ce54eb86308GZ
14: 0x7f312862f280 - middle::typeck::check::check_block_with_expected::h24847bbc3646b17eeS1
15: 0x7f312862ab80 - middle::typeck::check::check_fn::h5d26e9dbe23051f4yjW
16: 0x7f312862a8c0 - middle::typeck::check::check_bare_fn::h2ebb8057bcbc86d4N8V
17: 0x7f3128631db0 - middle::typeck::check::check_method_body::h0cd80d47cea5b434GDW
18: 0x7f31286269c0 - middle::typeck::check::check_item::h2d34e2049f88b98aWsW
19: 0x7f312862a320 - visit::walk_mod::h14778329676043754467
20: 0x7f312862a670 - middle::typeck::check::check_item_types::h09fc778fd4368a2dX7V
21: 0x7f312811a980 - util::common::time::h5887625128919507912
22: 0x7f312894e3b0 - middle::typeck::check_crate::hc836e7120e6c8418Uup
23: 0x7f31289b7340 - driver::driver::phase_3_run_analysis_passes::h2ba914a4e9f02ba2leC
24: 0x7f31289b21d0 - driver::driver::compile_input::h4cd135e1510b41346UB
25: 0x7f3128a35470 - driver::run_compiler::hefe828ab7d56e443nLF
26: 0x7f3128a35360 - driver::run::closure.146371
27: 0x7f31281338b0 - task::TaskBuilder<S>::try_future::closure.104805
28: 0x7f31281336a0 - task::TaskBuilder<S>::spawn_internal::closure.104776
29: 0x7f3127e26b40 - task::NativeSpawner.Spawner::spawn::closure.2581
30: 0x7f3127b7dca0 - rust_try_inner
31: 0x7f3127b7dc90 - rust_try
32: 0x7f3127b26710 - unwind::try::h523801dc9878f329mYc
33: 0x7f3127b265a0 - task::Task::run::hfb2d586240eaedeeu4b
34: 0x7f3127e26880 - task::NativeSpawner.Spawner::spawn::closure.2507
35: 0x7f3127b27db0 - thread::thread_start::hb97ea5d68265d21frpc
36: 0x7f312292d0c0 - start_thread
37: 0x7f31277f2f89 - __clone
38: 0x0 - <unknown>