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

ICE - Type parameter out of range when substituting in region 'a #18513

Closed
jedisct1 opened this issue Nov 1, 2014 · 1 comment
Closed

ICE - Type parameter out of range when substituting in region 'a #18513

jedisct1 opened this issue Nov 1, 2014 · 1 comment

Comments

@jedisct1
Copy link
Contributor

jedisct1 commented Nov 1, 2014

Always getting an ICE when trying to compile lmdb-rs, on OSX and Linux:

--- stdout
task 'rustc' panicked at 'Box<Any>', /Users/j/src/rust/src/libsyntax/diagnostic.rs:116

stack backtrace:
   1:        0x1101b40f9 - rt::backtrace::imp::write::hc034b8113aef673cknq
   2:        0x1101b733c - failure::on_fail::h08ca53aaf26a8a2aTDq
   3:        0x110412ba5 - unwind::begin_unwind_inner::h6033868b8dcf182baLd
   4:        0x10f950d07 - unwind::begin_unwind::h17210840252498245105
   5:        0x10f950ca0 - unwind::begin_unwind::h17210840252498245105
   6:        0x10d26ee86 - middle::subst::SubstFolder<'a, 'tcx>.TypeFolder<'tcx>::fold_region::ha774b617ce1f6cb274V
   7:        0x10d1b1c70 - middle::subst::SubstFolder<'a, 'tcx>.TypeFolder<'tcx>::fold_ty::h11eb5a8f882b8c64d7V
   8:        0x10d4380c8 - middle::typeck::check::method::LookupContext<'a, 'tcx>::xform_self_ty::hf933b1c851c8199cGmU
   9:        0x10d436c9d - middle::typeck::check::method::LookupContext<'a, 'tcx>::push_inherent_impl_candidates_for_type::hd51f224622afd17ap8S
  10:        0x10d436711 - middle::typeck::check::method::LookupContext<'a, 'tcx>::push_inherent_candidates::closure.131163
  11:        0x10d43611f - middle::typeck::check::autoderef::h7313512288943139136
  12:        0x10d42d602 - middle::typeck::check::method::lookup::h3508c869c83469e0QRR
  13:        0x10d485ceb - middle::typeck::check::check_expr_with_unifier::h53965b1c609c1524XCY
  14:        0x10d4518d1 - middle::typeck::check::check_block_with_expected::h024202c307559401PJ0
  15:        0x10d44d342 - middle::typeck::check::check_fn::h53705ecdc59555f59oV
  16:        0x10d44c86f - middle::typeck::check::check_bare_fn::h109a71c0aa389197oeV
  17:        0x10d454010 - middle::typeck::check::check_method_body::h29ca20f50a717bbchJV
  18:        0x10d449848 - middle::typeck::check::check_item::h92864fa88bd7af97xyV
  19:        0x10d44bf42 - visit::Visitor::visit_mod::h4077404214488974064
  20:        0x10d44aa90 - visit::walk_item::h5766717815990464808
  21:        0x10d44c6ca - middle::typeck::check::check_item_types::h11bed99b52d5f1e5ydV
  22:        0x10cf62cc6 - util::common::time::h2348211270054626022
  23:        0x10d70cbae - middle::typeck::check_crate::hb4ff366b57eeda13ZVn
  24:        0x10d7751df - driver::driver::phase_3_run_analysis_passes::h390e9ff4f12fa3bclEA
  25:        0x10d76f8c8 - driver::driver::compile_input::h313e8e2950a5b0a86kA
  26:        0x10d7ed3c8 - driver::run_compiler::h05f113a4aa815618K7D
  27:        0x10d7eb5ee - driver::run::closure.145351
  28:        0x10cf7afbb - task::TaskBuilder<S>::try_future::closure.103711
  29:        0x10cf7aeb3 - task::TaskBuilder<S>::spawn_internal::closure.103682
  30:        0x10cefec2d - task::NativeSpawner.Spawner::spawn::closure.8527
  31:        0x11047cdac - rust_try_inner
  32:        0x11047cd96 - rust_try
  33:        0x110410317 - unwind::try::hac0a5b0165f17d6euzd
  34:        0x1104101ac - task::Task::run::hd49a1d5582fa2326hLc
  35:        0x10cefea53 - task::NativeSpawner.Spawner::spawn::closure.8464
  36:        0x1104119d7 - thread::thread_start::hfb84dd18d767c327w6c
  37:     0x7fff87d4f2fc - _pthread_body
  38:     0x7fff87d4f279 - _pthread_body


--- stderr
/Users/j/.cargo/git/checkouts/lmdb-rs-b94d0ef3cf220b0d/master/src/lib.rs:1:1: 1:1 error: internal compiler error: Type parameter out of range when substituting in region 'a (root type='acore::NativeTransaction<'a>) (space=FnSpace, index=0)
/Users/j/.cargo/git/checkouts/lmdb-rs-b94d0ef3cf220b0d/master/src/lib.rs:1 #![crate_name = "lmdb"]
                                                                           ^
note: the compiler unexpectedly panicked. this is a bug.
@jedisct1
Copy link
Contributor Author

jedisct1 commented Nov 1, 2014

Seems to be the same issue as #18232

@jedisct1 jedisct1 closed this as completed Nov 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant