Closed
Description
Hi, I was using rust v1.58.0 nightly
, cargo build
was working fine in our project. Recently I updated the rust version to v1.61.0. nightly
Now I am facing the below issue with the rocket.rs package, whenever I try to build.
Rust version :
rustc 1.61.0-nightly (52b34550a 2022-03-15)
binary: rustc
commit-hash: 52b34550aca5f7dd7e152f773e3ab786acb86f6f
commit-date: 2022-03-15
host: x86_64-apple-darwin
release: 1.61.0-nightly
LLVM version: 14.0.0
Error Complier
thread 'rustc' panicked at 'assertion failed: !value.has_escaping_bound_vars()', /rustc/52b34550aca5f7dd7e152f773e3ab786acb86f6f/compiler/rustc_middle/src/ty/sty.rs:1089:9
stack backtrace:
0: 0x10d4b0fb4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h254d4b149dd42021
1: 0x10d50964b - core::fmt::write::h75fa52a54c4c085a
2: 0x10d4a3798 - std::io::Write::write_fmt::h5beb680276d373ed
3: 0x10d4b44ed - std::panicking::default_hook::{{closure}}::h44a470242caad290
4: 0x10d4b41d1 - std::panicking::default_hook::heb3bf7a1a99fd831
5: 0x1157a69fa - rustc_driver[68f5af5f4fbd43df]::DEFAULT_HOOK::{closure#0}::{closure#0}
6: 0x10d4b4c56 - std::panicking::rust_panic_with_hook::h3835de48593d565d
7: 0x10d4b4a5a - std::panicking::begin_panic_handler::{{closure}}::hf5992e479f8a449b
8: 0x10d4b1437 - std::sys_common::backtrace::__rust_end_short_backtrace::hd7d94f69adb52ab6
9: 0x10d4b476a - _rust_begin_unwind
10: 0x10d532c33 - core::panicking::panic_fmt::hc66f4ee528ad596d
11: 0x10d532b17 - core::panicking::panic::h7973c4c5a950ee25
12: 0x1199d89cc - rustc_trait_selection[718c1d978defa14d]::traits::type_known_to_meet_bound_modulo_regions
13: 0x11856bb79 - <rustc_infer[1fa14ac0600d063c]::infer::InferCtxtBuilder>::enter::<bool, rustc_ty_utils[5b827f266eb119e4]::common_traits::is_item_raw::{closure#0}>
14: 0x1185721dd - rustc_ty_utils[5b827f266eb119e4]::common_traits::is_item_raw
15: 0x118e2b1a5 - rustc_query_system[d6602a5114bfb900]::query::plumbing::try_execute_query::<rustc_query_impl[da14cdaa7c74b32b]::plumbing::QueryCtxt, rustc_query_system[d6602a5114bfb900]::query::caches::DefaultCache<rustc_middle[6028c850d8428a7e]::ty::ParamEnvAnd<rustc_middle[6028c850d8428a7e]::ty::Ty>, bool>>
16: 0x118f12c24 - rustc_query_system[d6602a5114bfb900]::query::plumbing::get_query::<rustc_query_impl[da14cdaa7c74b32b]::queries::is_sized_raw, rustc_query_impl[da14cdaa7c74b32b]::plumbing::QueryCtxt>
17: 0x119ce42c6 - <rustc_middle[6028c850d8428a7e]::ty::Ty>::is_sized
18: 0x119c200bf - <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt>>::layout_of_uncached
19: 0x119c39536 - rustc_middle[6028c850d8428a7e]::ty::layout::layout_of
20: 0x118f46758 - rustc_query_system[d6602a5114bfb900]::query::plumbing::get_query::<rustc_query_impl[da14cdaa7c74b32b]::queries::layout_of, rustc_query_impl[da14cdaa7c74b32b]::plumbing::QueryCtxt>
21: 0x119190360 - <rustc_query_impl[da14cdaa7c74b32b]::Queries as rustc_middle[6028c850d8428a7e]::ty::query::QueryEngine>::layout_of
22: 0x119c68a14 - <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt> as rustc_middle[6028c850d8428a7e]::ty::layout::LayoutOf>::layout_of
23: 0x119c592c9 - <alloc[4452997152f96314]::vec::Vec<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>> as alloc[4452997152f96314]::vec::spec_from_iter::SpecFromIter<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>, core[bf1d29f64462da08]::iter::adapters::GenericShunt<core[bf1d29f64462da08]::iter::adapters::map::Map<core[bf1d29f64462da08]::slice::iter::Iter<rustc_middle[6028c850d8428a7e]::ty::FieldDef>, <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}::{closure#0}>, core[bf1d29f64462da08]::result::Result<core[bf1d29f64462da08]::convert::Infallible, rustc_middle[6028c850d8428a7e]::ty::layout::LayoutError>>>>::from_iter
24: 0x119c585fc - <alloc[4452997152f96314]::vec::Vec<alloc[4452997152f96314]::vec::Vec<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>>> as alloc[4452997152f96314]::vec::spec_from_iter::SpecFromIter<alloc[4452997152f96314]::vec::Vec<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>>, core[bf1d29f64462da08]::iter::adapters::GenericShunt<core[bf1d29f64462da08]::iter::adapters::map::Map<core[bf1d29f64462da08]::slice::iter::Iter<rustc_middle[6028c850d8428a7e]::ty::VariantDef>, <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}>, core[bf1d29f64462da08]::result::Result<core[bf1d29f64462da08]::convert::Infallible, rustc_middle[6028c850d8428a7e]::ty::layout::LayoutError>>>>::from_iter
25: 0x119c1f3b2 - <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt>>::layout_of_uncached
26: 0x119c39536 - rustc_middle[6028c850d8428a7e]::ty::layout::layout_of
27: 0x118f46758 - rustc_query_system[d6602a5114bfb900]::query::plumbing::get_query::<rustc_query_impl[da14cdaa7c74b32b]::queries::layout_of, rustc_query_impl[da14cdaa7c74b32b]::plumbing::QueryCtxt>
28: 0x119190360 - <rustc_query_impl[da14cdaa7c74b32b]::Queries as rustc_middle[6028c850d8428a7e]::ty::query::QueryEngine>::layout_of
29: 0x119c68a14 - <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt> as rustc_middle[6028c850d8428a7e]::ty::layout::LayoutOf>::layout_of
30: 0x119c592c9 - <alloc[4452997152f96314]::vec::Vec<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>> as alloc[4452997152f96314]::vec::spec_from_iter::SpecFromIter<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>, core[bf1d29f64462da08]::iter::adapters::GenericShunt<core[bf1d29f64462da08]::iter::adapters::map::Map<core[bf1d29f64462da08]::slice::iter::Iter<rustc_middle[6028c850d8428a7e]::ty::FieldDef>, <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}::{closure#0}>, core[bf1d29f64462da08]::result::Result<core[bf1d29f64462da08]::convert::Infallible, rustc_middle[6028c850d8428a7e]::ty::layout::LayoutError>>>>::from_iter
31: 0x119c585fc - <alloc[4452997152f96314]::vec::Vec<alloc[4452997152f96314]::vec::Vec<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>>> as alloc[4452997152f96314]::vec::spec_from_iter::SpecFromIter<alloc[4452997152f96314]::vec::Vec<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>>, core[bf1d29f64462da08]::iter::adapters::GenericShunt<core[bf1d29f64462da08]::iter::adapters::map::Map<core[bf1d29f64462da08]::slice::iter::Iter<rustc_middle[6028c850d8428a7e]::ty::VariantDef>, <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}>, core[bf1d29f64462da08]::result::Result<core[bf1d29f64462da08]::convert::Infallible, rustc_middle[6028c850d8428a7e]::ty::layout::LayoutError>>>>::from_iter
32: 0x119c1f3b2 - <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt>>::layout_of_uncached
33: 0x119c39536 - rustc_middle[6028c850d8428a7e]::ty::layout::layout_of
34: 0x118f46758 - rustc_query_system[d6602a5114bfb900]::query::plumbing::get_query::<rustc_query_impl[da14cdaa7c74b32b]::queries::layout_of, rustc_query_impl[da14cdaa7c74b32b]::plumbing::QueryCtxt>
35: 0x119190360 - <rustc_query_impl[da14cdaa7c74b32b]::Queries as rustc_middle[6028c850d8428a7e]::ty::query::QueryEngine>::layout_of
36: 0x119c68a14 - <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt> as rustc_middle[6028c850d8428a7e]::ty::layout::LayoutOf>::layout_of
37: 0x119c592c9 - <alloc[4452997152f96314]::vec::Vec<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>> as alloc[4452997152f96314]::vec::spec_from_iter::SpecFromIter<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>, core[bf1d29f64462da08]::iter::adapters::GenericShunt<core[bf1d29f64462da08]::iter::adapters::map::Map<core[bf1d29f64462da08]::slice::iter::Iter<rustc_middle[6028c850d8428a7e]::ty::FieldDef>, <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}::{closure#0}>, core[bf1d29f64462da08]::result::Result<core[bf1d29f64462da08]::convert::Infallible, rustc_middle[6028c850d8428a7e]::ty::layout::LayoutError>>>>::from_iter
38: 0x119c585fc - <alloc[4452997152f96314]::vec::Vec<alloc[4452997152f96314]::vec::Vec<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>>> as alloc[4452997152f96314]::vec::spec_from_iter::SpecFromIter<alloc[4452997152f96314]::vec::Vec<rustc_target[579aeb433b1fb1a0]::abi::TyAndLayout<rustc_middle[6028c850d8428a7e]::ty::Ty>>, core[bf1d29f64462da08]::iter::adapters::GenericShunt<core[bf1d29f64462da08]::iter::adapters::map::Map<core[bf1d29f64462da08]::slice::iter::Iter<rustc_middle[6028c850d8428a7e]::ty::VariantDef>, <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt>>::layout_of_uncached::{closure#5}>, core[bf1d29f64462da08]::result::Result<core[bf1d29f64462da08]::convert::Infallible, rustc_middle[6028c850d8428a7e]::ty::layout::LayoutError>>>>::from_iter
39: 0x119c1f3b2 - <rustc_middle[6028c850d8428a7e]::ty::layout::LayoutCx<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt>>::layout_of_uncached
40: 0x119c39536 - rustc_middle[6028c850d8428a7e]::ty::layout::layout_of
41: 0x118f46758 - rustc_query_system[d6602a5114bfb900]::query::plumbing::get_query::<rustc_query_impl[da14cdaa7c74b32b]::queries::layout_of, rustc_query_impl[da14cdaa7c74b32b]::plumbing::QueryCtxt>
42: 0x119190360 - <rustc_query_impl[da14cdaa7c74b32b]::Queries as rustc_middle[6028c850d8428a7e]::ty::query::QueryEngine>::layout_of
43: 0x1191f2a70 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::push_debuginfo_type_name
44: 0x1191f4919 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::push_debuginfo_type_name
45: 0x1191f7b49 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::push_generic_params_internal
46: 0x1191f30f3 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::push_debuginfo_type_name
47: 0x1191f7b49 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::push_generic_params_internal
48: 0x1191f30f3 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::push_debuginfo_type_name
49: 0x1191f7b49 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::push_generic_params_internal
50: 0x1191f30f3 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::push_debuginfo_type_name
51: 0x1191f7b49 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::push_generic_params_internal
52: 0x1191f30f3 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::push_debuginfo_type_name
53: 0x1191f1c17 - rustc_codegen_ssa[50d8efce28531570]::debuginfo::type_names::compute_debuginfo_type_name
54: 0x1159adf6a - rustc_codegen_llvm[7611e23cd93720f5]::debuginfo::metadata::enums::native::build_enum_type_di_node
55: 0x115a1b271 - rustc_codegen_llvm[7611e23cd93720f5]::debuginfo::metadata::enums::build_enum_type_di_node
56: 0x115a42558 - rustc_codegen_llvm[7611e23cd93720f5]::debuginfo::metadata::type_di_node
57: 0x1159fb8be - <rustc_codegen_llvm[7611e23cd93720f5]::context::CodegenCx as rustc_codegen_ssa[50d8efce28531570]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn::get_function_signature
58: 0x1159e0150 - <rustc_codegen_llvm[7611e23cd93720f5]::context::CodegenCx as rustc_codegen_ssa[50d8efce28531570]::traits::debuginfo::DebugInfoMethods>::dbg_scope_fn
59: 0x1159dfd58 - <rustc_codegen_llvm[7611e23cd93720f5]::context::CodegenCx as rustc_codegen_ssa[50d8efce28531570]::traits::debuginfo::DebugInfoMethods>::create_function_debug_context
60: 0x115a4a425 - rustc_codegen_ssa[50d8efce28531570]::mir::codegen_mir::<rustc_codegen_llvm[7611e23cd93720f5]::builder::Builder>
61: 0x115933d39 - rustc_codegen_ssa[50d8efce28531570]::base::codegen_instance::<rustc_codegen_llvm[7611e23cd93720f5]::builder::Builder>
62: 0x115a2076a - <rustc_middle[6028c850d8428a7e]::mir::mono::MonoItem as rustc_codegen_ssa[50d8efce28531570]::mono_item::MonoItemExt>::define::<rustc_codegen_llvm[7611e23cd93720f5]::builder::Builder>
63: 0x11597e9f7 - rustc_codegen_llvm[7611e23cd93720f5]::base::compile_codegen_unit::module_codegen
64: 0x1159bc1bb - <rustc_query_system[d6602a5114bfb900]::dep_graph::graph::DepGraph<rustc_middle[6028c850d8428a7e]::dep_graph::dep_node::DepKind>>::with_task::<rustc_middle[6028c850d8428a7e]::ty::context::TyCtxt, rustc_span[ea6bf71f02730d2e]::symbol::Symbol, rustc_codegen_ssa[50d8efce28531570]::ModuleCodegen<rustc_codegen_llvm[7611e23cd93720f5]::ModuleLlvm>>
65: 0x11597e2b6 - rustc_codegen_llvm[7611e23cd93720f5]::base::compile_codegen_unit
66: 0x115953eef - <rustc_codegen_llvm[7611e23cd93720f5]::LlvmCodegenBackend as rustc_codegen_ssa[50d8efce28531570]::traits::backend::CodegenBackend>::codegen_crate
67: 0x1158ff1e2 - <rustc_session[46a9cee2ec394bd8]::session::Session>::time::<alloc[4452997152f96314]::boxed::Box<dyn core[bf1d29f64462da08]::any::Any>, rustc_interface[bad71de8e7671400]::passes::start_codegen::{closure#0}>
68: 0x1158b4f1b - <rustc_interface[bad71de8e7671400]::passes::QueryContext>::enter::<<rustc_interface[bad71de8e7671400]::queries::Queries>::ongoing_codegen::{closure#0}::{closure#0}, core[bf1d29f64462da08]::result::Result<alloc[4452997152f96314]::boxed::Box<dyn core[bf1d29f64462da08]::any::Any>, rustc_errors[303ac6616d2d060]::ErrorGuaranteed>>
69: 0x115898e99 - <rustc_interface[bad71de8e7671400]::queries::Queries>::ongoing_codegen
70: 0x1157373ea - <rustc_interface[bad71de8e7671400]::interface::Compiler>::enter::<rustc_driver[68f5af5f4fbd43df]::run_compiler::{closure#1}::{closure#2}, core[bf1d29f64462da08]::result::Result<core[bf1d29f64462da08]::option::Option<rustc_interface[bad71de8e7671400]::queries::Linker>, rustc_errors[303ac6616d2d060]::ErrorGuaranteed>>
71: 0x115759788 - rustc_span[ea6bf71f02730d2e]::with_source_map::<core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>, rustc_interface[bad71de8e7671400]::interface::create_compiler_and_run<core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>, rustc_driver[68f5af5f4fbd43df]::run_compiler::{closure#1}>::{closure#1}>
72: 0x11573990a - rustc_interface[bad71de8e7671400]::interface::create_compiler_and_run::<core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>, rustc_driver[68f5af5f4fbd43df]::run_compiler::{closure#1}>
73: 0x11572fb85 - <scoped_tls[b249fb2a4ee1394c]::ScopedKey<rustc_span[ea6bf71f02730d2e]::SessionGlobals>>::set::<rustc_interface[bad71de8e7671400]::interface::run_compiler<core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>, rustc_driver[68f5af5f4fbd43df]::run_compiler::{closure#1}>::{closure#0}, core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>>
74: 0x11572be39 - std[ff2381176b90674b]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[bad71de8e7671400]::util::run_in_thread_pool_with_globals<rustc_interface[bad71de8e7671400]::interface::run_compiler<core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>, rustc_driver[68f5af5f4fbd43df]::run_compiler::{closure#1}>::{closure#0}, core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>>::{closure#0}, core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>>
75: 0x115760832 - <<std[ff2381176b90674b]::thread::Builder>::spawn_unchecked_<rustc_interface[bad71de8e7671400]::util::run_in_thread_pool_with_globals<rustc_interface[bad71de8e7671400]::interface::run_compiler<core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>, rustc_driver[68f5af5f4fbd43df]::run_compiler::{closure#1}>::{closure#0}, core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>>::{closure#0}, core[bf1d29f64462da08]::result::Result<(), rustc_errors[303ac6616d2d060]::ErrorGuaranteed>>::{closure#1} as core[bf1d29f64462da08]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
76: 0x10d4be3c7 - std::sys::unix::thread::Thread::new::thread_start::he574bd67be95381d
77: 0x7ff80067d4e1 - __pthread_start
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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.61.0-nightly (52b34550a 2022-03-15) running on x86_64-apple-darwin
note: compiler flags: --crate-type lib -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [is_sized_raw] computing whether `dyn core::future::future::Future<Output = ()> + core::marker::Send` is `Sized`
#1 [layout_of] computing layout of `*const dyn core::future::future::Future<Output = ()> + core::marker::Send`
#2 [layout_of] computing layout of `core::ptr::unique::Unique<dyn core::future::future::Future<Output = ()> + core::marker::Send>`
#3 [layout_of] computing layout of `alloc::boxed::Box<dyn core::future::future::Future<Output = ()> + core::marker::Send>`
#4 [layout_of] computing layout of `core::pin::Pin<alloc::boxed::Box<dyn core::future::future::Future<Output = ()> + core::marker::Send>>`
end of query stack
error: could not compile `rocket`
Metadata
Metadata
Assignees
Labels
No labels