Skip to content

Instantly share code, notes, and snippets.

@hawkw
Created July 3, 2017 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hawkw/f69c536918266225c70402458ad867f2 to your computer and use it in GitHub Desktop.
Save hawkw/f69c536918266225c70402458ad867f2 to your computer and use it in GitHub Desktop.
Compiling flossy v0.0.1 (file:///Users/eliza/Development/flossy)
error: internal compiler error: src/librustc_typeck/check/mod.rs:613: escaping regions in predicate Obligation(predicate=Binder(ProjectionPredicate(ProjectionTy { trait_ref: <_ as futures::Future>, item_def_id: DefId { krate: CrateNum(11), node: DefIndex(318) => futures/620ce4c::future[0]::Future[0]::Item[0] } }, upstream::Status<'_>)),depth=0)
--> src/upstream/mod.rs:29:13
|
29 | -> impl Future<Item=Status, Error=Error>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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.19.0-nightly (78d8416ca 2017-06-17) running on x86_64-apple-darwin
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:428
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
1: std::panicking::default_hook::{{closure}}
2: std::panicking::default_hook
3: std::panicking::rust_panic_with_hook
4: std::panicking::begin_panic
5: rustc_errors::Handler::span_bug
6: rustc::session::opt_span_bug_fmt::{{closure}}
7: rustc::session::span_bug_fmt
8: rustc_typeck::check::Inherited::register_predicate
9: <rustc::ty::fold::BottomUpFolder<'a, 'gcx, 'tcx, F> as rustc::ty::fold::TypeFolder<'gcx, 'tcx>>::fold_ty
10: rustc_typeck::check::check_fn
11: rustc_typeck::check::typeck_tables_of::{{closure}}
12: rustc_typeck::check::typeck_tables_of
13: rustc::ty::maps::<impl rustc::ty::maps::queries::typeck_tables_of<'tcx>>::try_get
14: rustc::ty::maps::TyCtxtAt::typeck_tables_of
15: rustc::ty::maps::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::typeck_tables_of
16: rustc_typeck::check::typeck_item_bodies
17: rustc::ty::maps::<impl rustc::ty::maps::queries::typeck_item_bodies<'tcx>>::try_get
18: rustc::ty::maps::TyCtxtAt::typeck_item_bodies
19: rustc::ty::maps::<impl rustc::ty::context::TyCtxt<'a, 'tcx, 'lcx>>::typeck_item_bodies
20: rustc_typeck::check_crate
21: rustc_driver::driver::phase_3_run_analysis_passes::{{closure}}
22: rustc_driver::driver::phase_3_run_analysis_passes
23: rustc_driver::driver::compile_input
24: rustc_driver::run_compiler
error: Could not compile `flossy`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment