Skip to content

ICE: thread 'rustc' panicked at 'assertion failed: !predicates.has_escaping_regions()' #23589

Closed
@fmendez

Description

@fmendez

Minimal example to reproduce (using parenthesis instead of <> ):

fn main() {
    let v: Vec(&str) = vec!['1','2'];
}
~/D/s/o/test-rs git:master ❯❯❯ RUST_BACKTRACE=1 rustc src/main.rs                                                           
src/main.rs:2:12: 2:21 error: parenthesized parameters may only be used with a trait [E0214]
src/main.rs:2     let v: Vec(&str) = vec!['1','2'];
                         ^~~~~~~~~
src/main.rs:2:15: 2:21 error: associated type bindings are not allowed here [E0229]
src/main.rs:2     let v: Vec(&str) = vec!['1','2'];
                            ^~~~~~
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
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'assertion failed: !predicates.has_escaping_regions()', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librustc_typeck/check/mod.rs:1887

stack backtrace:
   1:        0x103b1725b - sys::backtrace::write::hf72be5f813c90d15u5C
   2:        0x103b42918 - panicking::on_panic::h357b9ffd8bc8f79dSWI
   3:        0x103a5f7f7 - rt::unwind::begin_unwind_inner::h12b438ebbd8042edUFI
   4:        0x100184bbf - rt::unwind::begin_unwind::h4407626155523256809
   5:        0x1001f01b1 - check::FnCtxt<'a, 'tcx>::add_obligations_for_parameters::hedc68c4e9f8bb7eaR3o
   6:        0x1002348de - check::wf::BoundsChecker<'cx, 'tcx>.TypeFolder<'tcx>::fold_ty::h81005dd8c26ce0f4dxl
   7:        0x100259d85 - check::GatherLocalsVisitor<'a, 'tcx>.Visitor<'tcx>::visit_local::hbbae7f527d661f07Jln
   8:        0x10023d4d5 - check::check_fn::h1d6196fc5f338991ssn
   9:        0x1002583ef - check::check_bare_fn::h866934e1757608268hn
  10:        0x100250650 - check::check_item::h403800fd4efc7443MAn
  11:        0x100328962 - check_crate::closure.36029
  12:        0x1003235ca - check_crate::hae957740b683eaa4IhC
  13:        0x10005b6e7 - driver::phase_3_run_analysis_passes::hdf5ccffdc8a743bcsGa
  14:        0x100041f96 - driver::compile_input::h7fdf739785f6d9d4Rba
  15:        0x1001027d3 - run_compiler::hb484336e43423a0fv2b
  16:        0x1001002f5 - thunk::F.Invoke<A, R>::invoke::h11654417678186204529
  17:        0x1000ff6b7 - rt::unwind::try::try_fn::h10741634765121132143
  18:        0x103bc6f68 - rust_try_inner
  19:        0x103bc6f55 - rust_try
  20:        0x1000ffa55 - thunk::F.Invoke<A, R>::invoke::h13457747256212984027
  21:        0x103b2d83d - sys::thread::create::thread_start::h937519545136f3ecJBH
  22:     0x7fff94a06267 - _pthread_body
  23:     0x7fff94a061e4 - _pthread_start
 rustc --version                                                                              
rustc 1.0.0-nightly (f4e0ce66a 2015-03-19) (built 2015-03-20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions