Skip to content

error: internal compiler error: /checkout/src/librustc_typeck/check/mod.rs:633 #44723

Closed
@17ts

Description

@17ts

I tricked you there ¯_(ツ)_/¯

error: internal compiler error: /checkout/src/librustc_typeck/check/mod.rs:633: escaping regions in predicate Obligation(predicate=Binder(ProjectionPredicate(ProjectionTy { substs: Slice([_]), item_def_id: DefId { krate: CrateNum(2), node: DefIndex(1599) => core/57224fa::iter[0]::iterator[0]::Iterator[0]::Item[0] } }, &[type error])),depth=0)
  --> /mnt/lib/code/goa/src/util/src/time.rs:39:37
   |
39 |     pub fn unwind<'de, T>(&self) -> impl Iterator<Item=&bson::ordered::OrderedDocument>
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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: rustc 1.22.0-nightly (f861b6ee4 2017-09-01) running on x86_64-unknown-linux-gnu

note: run with `RUST_BACKTRACE=1` for a backtrace

thread 'rustc' panicked at 'Box<Any>', /checkout/src/librustc_errors/lib.rs:439:8
stack backtrace:
   0:     0x7f97af773e93 - std::sys::imp::backtrace::tracing::imp::unwind_backtrace::h7c447402b351e520
                               at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1:     0x7f97af76e6d4 - std::sys_common::backtrace::_print::h9b262fc42753412e
                               at /checkout/src/libstd/sys_common/backtrace.rs:71
   2:     0x7f97af7815b3 - std::panicking::default_hook::{{closure}}::h29d7bc95543eb00e
                               at /checkout/src/libstd/sys_common/backtrace.rs:60
                               at /checkout/src/libstd/panicking.rs:381
   3:     0x7f97af7812ba - std::panicking::default_hook::hf7bed51644237fb6
                               at /checkout/src/libstd/panicking.rs:391
   4:     0x7f97af781a77 - std::panicking::rust_panic_with_hook::h613afb0d61a0a244
                               at /checkout/src/libstd/panicking.rs:577
   5:     0x7f97ade808d8 - std::panicking::begin_panic::he85a1987f2764e15
   6:     0x7f97ade7cf25 - rustc_errors::Handler::span_bug::h18a9ffd3aa4e6050
   7:     0x7f97adeacb54 - rustc::session::opt_span_bug_fmt::{{closure}}::h2c3481fe6ebc75d6
   8:     0x7f97adeac9e7 - rustc::session::span_bug_fmt::hc185ba3722219e40
   9:     0x7f97adf1da46 - rustc_typeck::check::Inherited::register_predicate::h2ce2286f126da92b
  10:     0x7f97ade7d636 - <rustc::ty::fold::BottomUpFolder<'a, 'gcx, 'tcx, F> as rustc::ty::fold::TypeFolder<'gcx, 'tcx>>::fold_ty::h953811d53bfe78dc
  11:     0x7f97adf27486 - rustc_typeck::check::check_fn::h7b75aff53be60a69
  12:     0x7f97adf1fc4f - rustc_typeck::check::typeck_tables_of::{{closure}}::hd2ea6b6d8c7f0b24
  13:     0x7f97adf1f615 - rustc_typeck::check::typeck_tables_of::hce5e13481671ad65
  14:     0x7f97ac360edd - rustc::dep_graph::graph::DepGraph::with_task::hae15f64ce71913c6
  15:     0x7f97ac58fc31 - rustc::ty::maps::<impl rustc::ty::maps::queries::typeck_tables_of<'tcx>>::try_get::h18bdd13a9fd3f50d
  16:     0x7f97ac5e700d - rustc::ty::maps::TyCtxtAt::typeck_tables_of::h06802fcc2668fd2d
  17:     0x7f97ac5e41b6 - rustc::ty::maps::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::typeck_tables_of::h6d4e44c6ff80370a
  18:     0x7f97adf1e8e7 - rustc_typeck::check::typeck_item_bodies::h8c3d3ba8484be480
  19:     0x7f97ac3609cd - rustc::dep_graph::graph::DepGraph::with_task::h9fe4c3a0ac813007
  20:     0x7f97ac58ddda - rustc::ty::maps::<impl rustc::ty::maps::queries::typeck_item_bodies<'tcx>>::try_get::hdc63b9b4a6279e95
  21:     0x7f97ac5e6eca - rustc::ty::maps::TyCtxtAt::typeck_item_bodies::hc4986cd71c3653ca
  22:     0x7f97ac5e4186 - rustc::ty::maps::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::typeck_item_bodies::hf7530d89b38bf2b2
  23:     0x7f97adf7ae4f - rustc_typeck::check_crate::h33895b2d7270d8d5
  24:     0x7f97afab4f40 - rustc::ty::context::TyCtxt::create_and_enter::h8b3c7ce1fd3c59a8
  25:     0x7f97afb2020b - rustc_driver::driver::compile_input::h27b2470633b47c64
  26:     0x7f97afb39302 - rustc_driver::run_compiler::h381daeeea77b8cb4
  27:     0x7f97afa670f7 - std::sys_common::backtrace::__rust_begin_short_backtrace::h02d159d0421c30f6
  28:     0x7f97af7bbd5c - __rust_maybe_catch_panic
                               at /checkout/src/libpanic_unwind/lib.rs:99
  29:     0x7f97afa9b050 - <F as alloc::boxed::FnBox<A>>::call_box::h83a8213705a5bbbc
  30:     0x7f97af78047b - std::sys::imp::thread::Thread::new::thread_start::hbd2d2918473494b3
                               at /checkout/src/liballoc/boxed.rs:692
                               at /checkout/src/libstd/sys_common/thread.rs:21
                               at /checkout/src/libstd/sys/unix/thread.rs:84
  31:     0x7f97aa756089 - start_thread
  32:     0x7f97af4321be - __clone
  33:                0x0 - <unknown>

Activity

kennytm

kennytm commented on Sep 20, 2017

@kennytm
Member

Duplicate of #42479

Also, you dropped this: \

added
C-bugCategory: This is a bug.
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kennytm@TimNN@17ts

        Issue actions

          error: internal compiler error: /checkout/src/librustc_typeck/check/mod.rs:633 · Issue #44723 · rust-lang/rust