We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The rust compiler is experiencing a panic when running a juniper example
I tried this code:
I run the example from the repository https://github.com/graphql-rust/juniper commit SHA c93911958a2749c74232ac851f16d90fa943df91 In the folder https://github.com/graphql-rust/juniper/tree/master/juniper_hyper
Running: cargo run --example hyper_server
cargo run --example hyper_server
I expected to see this happen: The server to be running
Instead, this happened: it has been triggered a panic event from the rust compiler
os-version: Darwin kmacw-2.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64
Darwin kmacw-2.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64
rustc --version --verbose:
rustc --version --verbose
binary: rustc commit-hash: 6c2484dc3c532c052f159264e970278d8b77cdc9 commit-date: 2019-05-13 host: x86_64-apple-darwin release: 1.34.2 LLVM version: 8.0
Backtrace:
error: internal compiler error: src/librustc_mir/borrow_check/nll/universal_regions.rs:745: cannot convert `ReScope(Node(238))` to a region vid thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:620:9 stack backtrace: 0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace 1: std::sys_common::backtrace::_print 2: std::panicking::default_hook::{{closure}} 3: std::panicking::default_hook 4: rustc::util::common::panic_hook 5: std::panicking::rust_panic_with_hook 6: std::panicking::begin_panic 7: rustc_errors::Handler::bug 8: rustc::util::bug::opt_span_bug_fmt::{{closure}} 9: rustc::ty::context::tls::with_opt::{{closure}} 10: rustc::ty::context::tls::with_context_opt 11: rustc::ty::context::tls::with_opt 12: rustc::util::bug::opt_span_bug_fmt 13: rustc::util::bug::bug_fmt 14: rustc_mir::borrow_check::nll::universal_regions::UniversalRegionIndices::to_region_vid::{{closure}} 15: rustc_mir::borrow_check::nll::universal_regions::UniversalRegionIndices::to_region_vid 16: rustc_mir::borrow_check::nll::type_check::constraint_conversion::ConstraintConversion::convert_all 17: rustc_mir::borrow_check::nll::type_check::TypeChecker::prove_predicate 18: rustc_mir::borrow_check::nll::type_check::TypeChecker::check_stmt 19: rustc_mir::borrow_check::nll::type_check::TypeChecker::typeck_mir 20: rustc_mir::borrow_check::nll::type_check::type_check 21: rustc_mir::borrow_check::nll::compute_regions 22: rustc_mir::borrow_check::do_mir_borrowck 23: rustc::ty::context::GlobalCtxt::enter_local 24: rustc_mir::borrow_check::mir_borrowck 25: rustc::ty::query::__query_compute::mir_borrowck 26: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_borrowck<'tcx>>::compute 27: rustc::dep_graph::graph::DepGraph::with_task_impl 28: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query 29: rustc_mir::borrow_check::nll::type_check::TypeChecker::check_stmt 30: rustc_mir::borrow_check::nll::type_check::TypeChecker::typeck_mir 31: rustc_mir::borrow_check::nll::type_check::type_check 32: rustc_mir::borrow_check::nll::compute_regions 33: rustc_mir::borrow_check::do_mir_borrowck 34: rustc::ty::context::GlobalCtxt::enter_local 35: rustc_mir::borrow_check::mir_borrowck 36: rustc::ty::query::__query_compute::mir_borrowck 37: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_borrowck<'tcx>>::compute 38: rustc::dep_graph::graph::DepGraph::with_task_impl 39: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query 40: rustc_mir::borrow_check::nll::type_check::TypeChecker::check_stmt 41: rustc_mir::borrow_check::nll::type_check::TypeChecker::typeck_mir 42: rustc_mir::borrow_check::nll::type_check::type_check 43: rustc_mir::borrow_check::nll::compute_regions 44: rustc_mir::borrow_check::do_mir_borrowck 45: rustc::ty::context::GlobalCtxt::enter_local 46: rustc_mir::borrow_check::mir_borrowck 47: rustc::ty::query::__query_compute::mir_borrowck 48: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::mir_borrowck<'tcx>>::compute 49: rustc::dep_graph::graph::DepGraph::with_task_impl 50: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query 51: rustc::ty::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::par_body_owners 52: rustc::util::common::time 53: <std::thread::local::LocalKey<T>>::with 54: rustc::ty::context::TyCtxt::create_and_enter 55: rustc_driver::driver::compile_input 56: rustc_driver::run_compiler_with_pool 57: <scoped_tls::ScopedKey<T>>::set 58: rustc_driver::run_compiler 59: syntax::with_globals 60: __rust_maybe_catch_panic 61: <F as alloc::boxed::FnBox<A>>::call_box 62: std::sys::unix::thread::Thread::new::thread_start 63: _pthread_body 64: _pthread_start query stack during panic: #0 [mir_borrowck] processing `main::{{closure}}::{{closure}}` #1 [mir_borrowck] processing `main::{{closure}}` #2 [mir_borrowck] processing `main` end of query stack error: aborting due to previous 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.34.2 (6c2484dc3 2019-05-13) running on x86_64-apple-darwin note: compiler flags: -C debuginfo=2 -C incremental --crate-type bin note: some of the compiler flags provided by cargo are hidden error: Could not compile `juniper_hyper`. To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered:
Duplicate of #59344 and #58840, so closing in favor of those.
Can you try building the example with the current nightly? It should be fixed there.
Sorry, something went wrong.
No branches or pull requests
The rust compiler is experiencing a panic when running a juniper example
I tried this code:
I run the example from the repository https://github.com/graphql-rust/juniper
commit SHA c93911958a2749c74232ac851f16d90fa943df91
In the folder https://github.com/graphql-rust/juniper/tree/master/juniper_hyper
Running:
cargo run --example hyper_server
I expected to see this happen: The server to be running
Instead, this happened: it has been triggered a panic event from the rust compiler
Meta
os-version:
Darwin kmacw-2.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: