From a51d7df0f8906303b36942c7ede4dfe98d07ee21 Mon Sep 17 00:00:00 2001 From: Amiya Behera Date: Thu, 8 Aug 2024 22:08:23 +0530 Subject: [PATCH] department test --- custom-pallets/departments/src/lib.rs | 3 +- custom-pallets/departments/src/mock.rs | 5 +- custom-pallets/departments/src/tests.rs | 32 +- .../rustc-ice-2024-08-08T15_59_27-28771.txt | 635 ++++++++++++++++++ 4 files changed, 666 insertions(+), 9 deletions(-) create mode 100644 runtime/rustc-ice-2024-08-08T15_59_27-28771.txt diff --git a/custom-pallets/departments/src/lib.rs b/custom-pallets/departments/src/lib.rs index 5ed024b..07252e4 100644 --- a/custom-pallets/departments/src/lib.rs +++ b/custom-pallets/departments/src/lib.rs @@ -181,9 +181,10 @@ pub mod pallet { #[pallet::call_index(0)] #[pallet::weight(0)] pub fn create_department(origin: OriginFor, content: Content) -> DispatchResult { + let who = ensure_signed(origin)?; + let new_department_id = Self::next_department_id(); - let who = ensure_signed(origin)?; let new_department: DepartmentDetails = DepartmentDetails::new(new_department_id, content, who.clone()); diff --git a/custom-pallets/departments/src/mock.rs b/custom-pallets/departments/src/mock.rs index cfa7832..c8f6784 100644 --- a/custom-pallets/departments/src/mock.rs +++ b/custom-pallets/departments/src/mock.rs @@ -16,7 +16,8 @@ frame_support::construct_runtime!( pub enum Test { System: frame_system, - CreateDepartmentModule: pallet_template, + Timestamp: pallet_timestamp, + Departments: pallet_template, } ); @@ -63,6 +64,8 @@ impl pallet_template::Config for Test { type WeightInfo = (); } + + // Build genesis storage according to the mock runtime. pub fn new_test_ext() -> sp_io::TestExternalities { frame_system::GenesisConfig::::default().build_storage().unwrap().into() diff --git a/custom-pallets/departments/src/tests.rs b/custom-pallets/departments/src/tests.rs index 966df9b..12daec7 100644 --- a/custom-pallets/departments/src/tests.rs +++ b/custom-pallets/departments/src/tests.rs @@ -1,15 +1,33 @@ use crate::{mock::*, Error, Event, Something}; use frame_support::{assert_noop, assert_ok}; +use pallet_support::Content; #[test] -fn it_works_for_default_value() { +fn create_department_works() { new_test_ext().execute_with(|| { - // Go past genesis block so events get deposited + // // Go past genesis block so events get deposited System::set_block_number(1); - }); -} + let account_id = 1; + let content: Content = Content::IPFS( + "bafkreiaiq24be2iioasr6ftyaum3icmj7amtjkom2jeokov5k5ojwzhvqy" + .as_bytes() + .to_vec(), + ); + assert_ok!(Departments::create_department( + RuntimeOrigin::signed(account_id), + content.clone() + )); -#[test] -fn correct_error_for_none_value() { - new_test_ext().execute_with(|| {}); + // Check that the department was stored correctly + let department_id = Departments::next_department_id() - 1; + let stored_department = Departments::departments(department_id).unwrap(); + assert_eq!(stored_department.department_id, department_id); + assert_eq!(stored_department.content, content); + assert_eq!(stored_department.department_admin, account_id); + + // Verify that the correct event was emitted + System::assert_last_event( + Event::DepartmentCreated { account: account_id, department_id }.into(), + ); + }); } diff --git a/runtime/rustc-ice-2024-08-08T15_59_27-28771.txt b/runtime/rustc-ice-2024-08-08T15_59_27-28771.txt new file mode 100644 index 0000000..50fc6ff --- /dev/null +++ b/runtime/rustc-ice-2024-08-08T15_59_27-28771.txt @@ -0,0 +1,635 @@ +thread 'rustc' panicked at compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:168:90: +Box +stack backtrace: + 0: 0x7eb8a2773035 - std::backtrace_rs::backtrace::libunwind::trace::h58eed11393533053 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 + 1: 0x7eb8a2773035 - std::backtrace_rs::backtrace::trace_unsynchronized::had4fb78c8be00134 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 + 2: 0x7eb8a2773035 - std::backtrace::Backtrace::create::h63578d063b6212c6 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:331:13 + 3: 0x7eb8a2772f85 - std::backtrace::Backtrace::force_capture::h91c8717b9b6d7371 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:312:9 + 4: 0x7eb8a581f5d8 - std[dece285a2424a0b]::panicking::update_hook::>::{closure#0} + 5: 0x7eb8a278de4b - as core::ops::function::Fn>::call::hb8210adad49183e7 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2077:9 + 6: 0x7eb8a278de4b - std::panicking::rust_panic_with_hook::h51af00bcb4660c4e + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:799:13 + 7: 0x7eb8a584da24 - std[dece285a2424a0b]::panicking::begin_panic::::{closure#0} + 8: 0x7eb8a584a246 - std[dece285a2424a0b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 9: 0x7eb8a5845736 - std[dece285a2424a0b]::panicking::begin_panic:: + 10: 0x7eb8a58571c1 - ::emit_producing_guarantee + 11: 0x7eb8a5d0b0fc - rustc_middle[806dc37a95cc1433]::util::bug::opt_span_bug_fmt::::{closure#0} + 12: 0x7eb8a5cf41ba - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 13: 0x7eb8a5cf405b - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 14: 0x7eb8a38ee140 - rustc_middle[806dc37a95cc1433]::util::bug::bug_fmt + 15: 0x7eb8a71efb17 - >::fold_ty + 16: 0x7eb8a796fa65 - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 17: 0x7eb8a796dd9a - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 18: 0x7eb8a6fa5a8b - rustc_pattern_analysis[b305b0f92cfef030]::analyze_match + 19: 0x7eb8a443b34a - ::visit_expr + 20: 0x7eb8a443a8fd - ::visit_expr + 21: 0x7eb8a443b739 - ::visit_expr + 22: 0x7eb8a443a8fd - ::visit_expr + 23: 0x7eb8a70536ac - rustc_mir_build[d6faaa64442a7ed5]::thir::pattern::check_match::check_match + 24: 0x7eb8a7053363 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 25: 0x7eb8a7052ab6 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 26: 0x7eb8a70527c1 - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_match::get_query_non_incr::__rust_end_short_backtrace + 27: 0x7eb8a70590d9 - rustc_mir_build[d6faaa64442a7ed5]::build::mir_build + 28: 0x7eb8a705878e - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 29: 0x7eb8a6d981ab - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 30: 0x7eb8a6d97c53 - rustc_query_impl[e1fdd24b038f677d]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace + 31: 0x7eb8a6f19f63 - rustc_mir_build[d6faaa64442a7ed5]::check_unsafety::check_unsafety + 32: 0x7eb8a6f19d6d - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 33: 0x7eb8a6f1931c - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 34: 0x7eb8a6f18f8d - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace + 35: 0x7eb8a760a1a4 - rustc_interface[e93a829871290abb]::passes::analysis + 36: 0x7eb8a7609ae5 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 37: 0x7eb8a7935d62 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 38: 0x7eb8a7935b0f - rustc_query_impl[e1fdd24b038f677d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace + 39: 0x7eb8a782b7cd - rustc_interface[e93a829871290abb]::interface::run_compiler::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1} + 40: 0x7eb8a793cc69 - std[dece285a2424a0b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>> + 41: 0x7eb8a793ca6a - <::spawn_unchecked_, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#2} as core[8d9e01cfbf9cd659]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 42: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h3af90da315d4b185 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 43: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h4e7f3b3405b4b88b + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 44: 0x7eb8a2797e3b - std::sys::pal::unix::thread::Thread::new::thread_start::h3b8e81128811868f + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/sys/pal/unix/thread.rs:108:17 + 45: 0x7eb8a2494ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 46: 0x7eb8a2526850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + 47: 0x0 - + + +rustc version: 1.80.0 (051478957 2024-07-21) +platform: x86_64-unknown-linux-gnu + +query stack during panic: +#0 [check_match] match-checking `::clone` +#1 [mir_built] building MIR for `::clone` +#2 [check_unsafety] unsafety-checking `::clone` +#3 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:168:90: +Box +stack backtrace: + 0: 0x7eb8a2773035 - std::backtrace_rs::backtrace::libunwind::trace::h58eed11393533053 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 + 1: 0x7eb8a2773035 - std::backtrace_rs::backtrace::trace_unsynchronized::had4fb78c8be00134 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 + 2: 0x7eb8a2773035 - std::backtrace::Backtrace::create::h63578d063b6212c6 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:331:13 + 3: 0x7eb8a2772f85 - std::backtrace::Backtrace::force_capture::h91c8717b9b6d7371 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:312:9 + 4: 0x7eb8a581f5d8 - std[dece285a2424a0b]::panicking::update_hook::>::{closure#0} + 5: 0x7eb8a278de4b - as core::ops::function::Fn>::call::hb8210adad49183e7 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2077:9 + 6: 0x7eb8a278de4b - std::panicking::rust_panic_with_hook::h51af00bcb4660c4e + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:799:13 + 7: 0x7eb8a584da24 - std[dece285a2424a0b]::panicking::begin_panic::::{closure#0} + 8: 0x7eb8a584a246 - std[dece285a2424a0b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 9: 0x7eb8a5845736 - std[dece285a2424a0b]::panicking::begin_panic:: + 10: 0x7eb8a58571c1 - ::emit_producing_guarantee + 11: 0x7eb8a5d0b0fc - rustc_middle[806dc37a95cc1433]::util::bug::opt_span_bug_fmt::::{closure#0} + 12: 0x7eb8a5cf41ba - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 13: 0x7eb8a5cf405b - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 14: 0x7eb8a38ee140 - rustc_middle[806dc37a95cc1433]::util::bug::bug_fmt + 15: 0x7eb8a71efb17 - >::fold_ty + 16: 0x7eb8a796fa65 - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 17: 0x7eb8a796dd9a - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 18: 0x7eb8a796dd9a - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 19: 0x7eb8a6fa5a8b - rustc_pattern_analysis[b305b0f92cfef030]::analyze_match + 20: 0x7eb8a443b34a - ::visit_expr + 21: 0x7eb8a443a8fd - ::visit_expr + 22: 0x7eb8a443b739 - ::visit_expr + 23: 0x7eb8a443a8fd - ::visit_expr + 24: 0x7eb8a443b739 - ::visit_expr + 25: 0x7eb8a443a8fd - ::visit_expr + 26: 0x7eb8a70536ac - rustc_mir_build[d6faaa64442a7ed5]::thir::pattern::check_match::check_match + 27: 0x7eb8a7053363 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 28: 0x7eb8a7052ab6 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 29: 0x7eb8a70527c1 - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_match::get_query_non_incr::__rust_end_short_backtrace + 30: 0x7eb8a70590d9 - rustc_mir_build[d6faaa64442a7ed5]::build::mir_build + 31: 0x7eb8a705878e - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 32: 0x7eb8a6d981ab - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 33: 0x7eb8a6d97c53 - rustc_query_impl[e1fdd24b038f677d]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace + 34: 0x7eb8a6f19f63 - rustc_mir_build[d6faaa64442a7ed5]::check_unsafety::check_unsafety + 35: 0x7eb8a6f19d6d - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 36: 0x7eb8a6f1931c - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 37: 0x7eb8a6f18f8d - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace + 38: 0x7eb8a760a1a4 - rustc_interface[e93a829871290abb]::passes::analysis + 39: 0x7eb8a7609ae5 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 40: 0x7eb8a7935d62 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 41: 0x7eb8a7935b0f - rustc_query_impl[e1fdd24b038f677d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace + 42: 0x7eb8a782b7cd - rustc_interface[e93a829871290abb]::interface::run_compiler::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1} + 43: 0x7eb8a793cc69 - std[dece285a2424a0b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>> + 44: 0x7eb8a793ca6a - <::spawn_unchecked_, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#2} as core[8d9e01cfbf9cd659]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 45: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h3af90da315d4b185 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 46: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h4e7f3b3405b4b88b + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 47: 0x7eb8a2797e3b - std::sys::pal::unix::thread::Thread::new::thread_start::h3b8e81128811868f + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/sys/pal/unix/thread.rs:108:17 + 48: 0x7eb8a2494ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 49: 0x7eb8a2526850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + 50: 0x0 - + + +query stack during panic: +#0 [check_match] match-checking `::eq` +#1 [mir_built] building MIR for `::eq` +#2 [check_unsafety] unsafety-checking `::eq` +#3 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:168:90: +Box +stack backtrace: + 0: 0x7eb8a2773035 - std::backtrace_rs::backtrace::libunwind::trace::h58eed11393533053 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 + 1: 0x7eb8a2773035 - std::backtrace_rs::backtrace::trace_unsynchronized::had4fb78c8be00134 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 + 2: 0x7eb8a2773035 - std::backtrace::Backtrace::create::h63578d063b6212c6 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:331:13 + 3: 0x7eb8a2772f85 - std::backtrace::Backtrace::force_capture::h91c8717b9b6d7371 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:312:9 + 4: 0x7eb8a581f5d8 - std[dece285a2424a0b]::panicking::update_hook::>::{closure#0} + 5: 0x7eb8a278de4b - as core::ops::function::Fn>::call::hb8210adad49183e7 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2077:9 + 6: 0x7eb8a278de4b - std::panicking::rust_panic_with_hook::h51af00bcb4660c4e + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:799:13 + 7: 0x7eb8a584da24 - std[dece285a2424a0b]::panicking::begin_panic::::{closure#0} + 8: 0x7eb8a584a246 - std[dece285a2424a0b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 9: 0x7eb8a5845736 - std[dece285a2424a0b]::panicking::begin_panic:: + 10: 0x7eb8a58571c1 - ::emit_producing_guarantee + 11: 0x7eb8a5d0b0fc - rustc_middle[806dc37a95cc1433]::util::bug::opt_span_bug_fmt::::{closure#0} + 12: 0x7eb8a5cf41ba - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 13: 0x7eb8a5cf405b - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 14: 0x7eb8a38ee140 - rustc_middle[806dc37a95cc1433]::util::bug::bug_fmt + 15: 0x7eb8a71efb17 - >::fold_ty + 16: 0x7eb8a796fa65 - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 17: 0x7eb8a6fa5a8b - rustc_pattern_analysis[b305b0f92cfef030]::analyze_match + 18: 0x7eb8a443b34a - ::visit_expr + 19: 0x7eb8a443a8fd - ::visit_expr + 20: 0x7eb8a443b739 - ::visit_expr + 21: 0x7eb8a443a8fd - ::visit_expr + 22: 0x7eb8a443b739 - ::visit_expr + 23: 0x7eb8a443a8fd - ::visit_expr + 24: 0x7eb8a70536ac - rustc_mir_build[d6faaa64442a7ed5]::thir::pattern::check_match::check_match + 25: 0x7eb8a7053363 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 26: 0x7eb8a7052ab6 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 27: 0x7eb8a70527c1 - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_match::get_query_non_incr::__rust_end_short_backtrace + 28: 0x7eb8a70590d9 - rustc_mir_build[d6faaa64442a7ed5]::build::mir_build + 29: 0x7eb8a705878e - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 30: 0x7eb8a6d981ab - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 31: 0x7eb8a6d97c53 - rustc_query_impl[e1fdd24b038f677d]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace + 32: 0x7eb8a6f19f63 - rustc_mir_build[d6faaa64442a7ed5]::check_unsafety::check_unsafety + 33: 0x7eb8a6f19d6d - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 34: 0x7eb8a6f1931c - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 35: 0x7eb8a6f18f8d - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace + 36: 0x7eb8a760a1a4 - rustc_interface[e93a829871290abb]::passes::analysis + 37: 0x7eb8a7609ae5 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 38: 0x7eb8a7935d62 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 39: 0x7eb8a7935b0f - rustc_query_impl[e1fdd24b038f677d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace + 40: 0x7eb8a782b7cd - rustc_interface[e93a829871290abb]::interface::run_compiler::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1} + 41: 0x7eb8a793cc69 - std[dece285a2424a0b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>> + 42: 0x7eb8a793ca6a - <::spawn_unchecked_, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#2} as core[8d9e01cfbf9cd659]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 43: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h3af90da315d4b185 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 44: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h4e7f3b3405b4b88b + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 45: 0x7eb8a2797e3b - std::sys::pal::unix::thread::Thread::new::thread_start::h3b8e81128811868f + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/sys/pal/unix/thread.rs:108:17 + 46: 0x7eb8a2494ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 47: 0x7eb8a2526850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + 48: 0x0 - + + +query stack during panic: +#0 [check_match] match-checking `_::::size_hint` +#1 [mir_built] building MIR for `_::::size_hint` +#2 [check_unsafety] unsafety-checking `_::::size_hint` +#3 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:168:90: +Box +stack backtrace: + 0: 0x7eb8a2773035 - std::backtrace_rs::backtrace::libunwind::trace::h58eed11393533053 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 + 1: 0x7eb8a2773035 - std::backtrace_rs::backtrace::trace_unsynchronized::had4fb78c8be00134 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 + 2: 0x7eb8a2773035 - std::backtrace::Backtrace::create::h63578d063b6212c6 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:331:13 + 3: 0x7eb8a2772f85 - std::backtrace::Backtrace::force_capture::h91c8717b9b6d7371 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:312:9 + 4: 0x7eb8a581f5d8 - std[dece285a2424a0b]::panicking::update_hook::>::{closure#0} + 5: 0x7eb8a278de4b - as core::ops::function::Fn>::call::hb8210adad49183e7 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2077:9 + 6: 0x7eb8a278de4b - std::panicking::rust_panic_with_hook::h51af00bcb4660c4e + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:799:13 + 7: 0x7eb8a584da24 - std[dece285a2424a0b]::panicking::begin_panic::::{closure#0} + 8: 0x7eb8a584a246 - std[dece285a2424a0b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 9: 0x7eb8a5845736 - std[dece285a2424a0b]::panicking::begin_panic:: + 10: 0x7eb8a58571c1 - ::emit_producing_guarantee + 11: 0x7eb8a5d0b0fc - rustc_middle[806dc37a95cc1433]::util::bug::opt_span_bug_fmt::::{closure#0} + 12: 0x7eb8a5cf41ba - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 13: 0x7eb8a5cf405b - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 14: 0x7eb8a38ee140 - rustc_middle[806dc37a95cc1433]::util::bug::bug_fmt + 15: 0x7eb8a71efb17 - >::fold_ty + 16: 0x7eb8a796fa65 - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 17: 0x7eb8a6fa5a8b - rustc_pattern_analysis[b305b0f92cfef030]::analyze_match + 18: 0x7eb8a443b34a - ::visit_expr + 19: 0x7eb8a443a8fd - ::visit_expr + 20: 0x7eb8a443b739 - ::visit_expr + 21: 0x7eb8a443a8fd - ::visit_expr + 22: 0x7eb8a70536ac - rustc_mir_build[d6faaa64442a7ed5]::thir::pattern::check_match::check_match + 23: 0x7eb8a7053363 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 24: 0x7eb8a7052ab6 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 25: 0x7eb8a70527c1 - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_match::get_query_non_incr::__rust_end_short_backtrace + 26: 0x7eb8a70590d9 - rustc_mir_build[d6faaa64442a7ed5]::build::mir_build + 27: 0x7eb8a705878e - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 28: 0x7eb8a6d981ab - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 29: 0x7eb8a6d97c53 - rustc_query_impl[e1fdd24b038f677d]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace + 30: 0x7eb8a6f19f63 - rustc_mir_build[d6faaa64442a7ed5]::check_unsafety::check_unsafety + 31: 0x7eb8a6f19d6d - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 32: 0x7eb8a6f1931c - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 33: 0x7eb8a6f18f8d - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace + 34: 0x7eb8a760a1a4 - rustc_interface[e93a829871290abb]::passes::analysis + 35: 0x7eb8a7609ae5 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 36: 0x7eb8a7935d62 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 37: 0x7eb8a7935b0f - rustc_query_impl[e1fdd24b038f677d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace + 38: 0x7eb8a782b7cd - rustc_interface[e93a829871290abb]::interface::run_compiler::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1} + 39: 0x7eb8a793cc69 - std[dece285a2424a0b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>> + 40: 0x7eb8a793ca6a - <::spawn_unchecked_, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#2} as core[8d9e01cfbf9cd659]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 41: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h3af90da315d4b185 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 42: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h4e7f3b3405b4b88b + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 43: 0x7eb8a2797e3b - std::sys::pal::unix::thread::Thread::new::thread_start::h3b8e81128811868f + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/sys/pal/unix/thread.rs:108:17 + 44: 0x7eb8a2494ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 45: 0x7eb8a2526850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + 46: 0x0 - + + +query stack during panic: +#0 [check_match] match-checking `_::::encode_to` +#1 [mir_built] building MIR for `_::::encode_to` +#2 [check_unsafety] unsafety-checking `_::::encode_to` +#3 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:168:90: +Box +stack backtrace: + 0: 0x7eb8a2773035 - std::backtrace_rs::backtrace::libunwind::trace::h58eed11393533053 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 + 1: 0x7eb8a2773035 - std::backtrace_rs::backtrace::trace_unsynchronized::had4fb78c8be00134 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 + 2: 0x7eb8a2773035 - std::backtrace::Backtrace::create::h63578d063b6212c6 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:331:13 + 3: 0x7eb8a2772f85 - std::backtrace::Backtrace::force_capture::h91c8717b9b6d7371 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:312:9 + 4: 0x7eb8a581f5d8 - std[dece285a2424a0b]::panicking::update_hook::>::{closure#0} + 5: 0x7eb8a278de4b - as core::ops::function::Fn>::call::hb8210adad49183e7 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2077:9 + 6: 0x7eb8a278de4b - std::panicking::rust_panic_with_hook::h51af00bcb4660c4e + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:799:13 + 7: 0x7eb8a584da24 - std[dece285a2424a0b]::panicking::begin_panic::::{closure#0} + 8: 0x7eb8a584a246 - std[dece285a2424a0b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 9: 0x7eb8a5845736 - std[dece285a2424a0b]::panicking::begin_panic:: + 10: 0x7eb8a58571c1 - ::emit_producing_guarantee + 11: 0x7eb8a5d0b0fc - rustc_middle[806dc37a95cc1433]::util::bug::opt_span_bug_fmt::::{closure#0} + 12: 0x7eb8a5cf41ba - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 13: 0x7eb8a5cf405b - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 14: 0x7eb8a38ee140 - rustc_middle[806dc37a95cc1433]::util::bug::bug_fmt + 15: 0x7eb8a71efb17 - >::fold_ty + 16: 0x7eb8a796fa65 - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 17: 0x7eb8a796dd9a - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 18: 0x7eb8a6fa5a8b - rustc_pattern_analysis[b305b0f92cfef030]::analyze_match + 19: 0x7eb8a443b34a - ::visit_expr + 20: 0x7eb8a443a8fd - ::visit_expr + 21: 0x7eb8a443b739 - ::visit_expr + 22: 0x7eb8a443a8fd - ::visit_expr + 23: 0x7eb8a70536ac - rustc_mir_build[d6faaa64442a7ed5]::thir::pattern::check_match::check_match + 24: 0x7eb8a7053363 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 25: 0x7eb8a7052ab6 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 26: 0x7eb8a70527c1 - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_match::get_query_non_incr::__rust_end_short_backtrace + 27: 0x7eb8a70590d9 - rustc_mir_build[d6faaa64442a7ed5]::build::mir_build + 28: 0x7eb8a705878e - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 29: 0x7eb8a6d981ab - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 30: 0x7eb8a6d97c53 - rustc_query_impl[e1fdd24b038f677d]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace + 31: 0x7eb8a6f19f63 - rustc_mir_build[d6faaa64442a7ed5]::check_unsafety::check_unsafety + 32: 0x7eb8a6f19d6d - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 33: 0x7eb8a6f1931c - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 34: 0x7eb8a6f18f8d - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace + 35: 0x7eb8a760a1a4 - rustc_interface[e93a829871290abb]::passes::analysis + 36: 0x7eb8a7609ae5 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 37: 0x7eb8a7935d62 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 38: 0x7eb8a7935b0f - rustc_query_impl[e1fdd24b038f677d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace + 39: 0x7eb8a782b7cd - rustc_interface[e93a829871290abb]::interface::run_compiler::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1} + 40: 0x7eb8a793cc69 - std[dece285a2424a0b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>> + 41: 0x7eb8a793ca6a - <::spawn_unchecked_, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#2} as core[8d9e01cfbf9cd659]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 42: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h3af90da315d4b185 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 43: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h4e7f3b3405b4b88b + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 44: 0x7eb8a2797e3b - std::sys::pal::unix::thread::Thread::new::thread_start::h3b8e81128811868f + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/sys/pal/unix/thread.rs:108:17 + 45: 0x7eb8a2494ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 46: 0x7eb8a2526850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + 47: 0x0 - + + +query stack during panic: +#0 [check_match] match-checking `::get_dispatch_info` +#1 [mir_built] building MIR for `::get_dispatch_info` +#2 [check_unsafety] unsafety-checking `::get_dispatch_info` +#3 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:168:90: +Box +stack backtrace: + 0: 0x7eb8a2773035 - std::backtrace_rs::backtrace::libunwind::trace::h58eed11393533053 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 + 1: 0x7eb8a2773035 - std::backtrace_rs::backtrace::trace_unsynchronized::had4fb78c8be00134 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 + 2: 0x7eb8a2773035 - std::backtrace::Backtrace::create::h63578d063b6212c6 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:331:13 + 3: 0x7eb8a2772f85 - std::backtrace::Backtrace::force_capture::h91c8717b9b6d7371 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:312:9 + 4: 0x7eb8a581f5d8 - std[dece285a2424a0b]::panicking::update_hook::>::{closure#0} + 5: 0x7eb8a278de4b - as core::ops::function::Fn>::call::hb8210adad49183e7 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2077:9 + 6: 0x7eb8a278de4b - std::panicking::rust_panic_with_hook::h51af00bcb4660c4e + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:799:13 + 7: 0x7eb8a584da24 - std[dece285a2424a0b]::panicking::begin_panic::::{closure#0} + 8: 0x7eb8a584a246 - std[dece285a2424a0b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 9: 0x7eb8a5845736 - std[dece285a2424a0b]::panicking::begin_panic:: + 10: 0x7eb8a58571c1 - ::emit_producing_guarantee + 11: 0x7eb8a5d0b0fc - rustc_middle[806dc37a95cc1433]::util::bug::opt_span_bug_fmt::::{closure#0} + 12: 0x7eb8a5cf41ba - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 13: 0x7eb8a5cf405b - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 14: 0x7eb8a38ee140 - rustc_middle[806dc37a95cc1433]::util::bug::bug_fmt + 15: 0x7eb8a71efb17 - >::fold_ty + 16: 0x7eb8a796fa65 - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 17: 0x7eb8a796dd9a - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 18: 0x7eb8a6fa5a8b - rustc_pattern_analysis[b305b0f92cfef030]::analyze_match + 19: 0x7eb8a443b34a - ::visit_expr + 20: 0x7eb8a443a8fd - ::visit_expr + 21: 0x7eb8a443b739 - ::visit_expr + 22: 0x7eb8a443a8fd - ::visit_expr + 23: 0x7eb8a70536ac - rustc_mir_build[d6faaa64442a7ed5]::thir::pattern::check_match::check_match + 24: 0x7eb8a7053363 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 25: 0x7eb8a7052ab6 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 26: 0x7eb8a70527c1 - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_match::get_query_non_incr::__rust_end_short_backtrace + 27: 0x7eb8a70590d9 - rustc_mir_build[d6faaa64442a7ed5]::build::mir_build + 28: 0x7eb8a705878e - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 29: 0x7eb8a6d981ab - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 30: 0x7eb8a6d97c53 - rustc_query_impl[e1fdd24b038f677d]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace + 31: 0x7eb8a6f19f63 - rustc_mir_build[d6faaa64442a7ed5]::check_unsafety::check_unsafety + 32: 0x7eb8a6f19d6d - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 33: 0x7eb8a6f1931c - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 34: 0x7eb8a6f18f8d - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace + 35: 0x7eb8a760a1a4 - rustc_interface[e93a829871290abb]::passes::analysis + 36: 0x7eb8a7609ae5 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 37: 0x7eb8a7935d62 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 38: 0x7eb8a7935b0f - rustc_query_impl[e1fdd24b038f677d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace + 39: 0x7eb8a782b7cd - rustc_interface[e93a829871290abb]::interface::run_compiler::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1} + 40: 0x7eb8a793cc69 - std[dece285a2424a0b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>> + 41: 0x7eb8a793ca6a - <::spawn_unchecked_, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#2} as core[8d9e01cfbf9cd659]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 42: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h3af90da315d4b185 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 43: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h4e7f3b3405b4b88b + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 44: 0x7eb8a2797e3b - std::sys::pal::unix::thread::Thread::new::thread_start::h3b8e81128811868f + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/sys/pal/unix/thread.rs:108:17 + 45: 0x7eb8a2494ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 46: 0x7eb8a2526850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + 47: 0x0 - + + +query stack during panic: +#0 [check_match] match-checking `::is_feeless` +#1 [mir_built] building MIR for `::is_feeless` +#2 [check_unsafety] unsafety-checking `::is_feeless` +#3 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:168:90: +Box +stack backtrace: + 0: 0x7eb8a2773035 - std::backtrace_rs::backtrace::libunwind::trace::h58eed11393533053 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 + 1: 0x7eb8a2773035 - std::backtrace_rs::backtrace::trace_unsynchronized::had4fb78c8be00134 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 + 2: 0x7eb8a2773035 - std::backtrace::Backtrace::create::h63578d063b6212c6 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:331:13 + 3: 0x7eb8a2772f85 - std::backtrace::Backtrace::force_capture::h91c8717b9b6d7371 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:312:9 + 4: 0x7eb8a581f5d8 - std[dece285a2424a0b]::panicking::update_hook::>::{closure#0} + 5: 0x7eb8a278de4b - as core::ops::function::Fn>::call::hb8210adad49183e7 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2077:9 + 6: 0x7eb8a278de4b - std::panicking::rust_panic_with_hook::h51af00bcb4660c4e + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:799:13 + 7: 0x7eb8a584da24 - std[dece285a2424a0b]::panicking::begin_panic::::{closure#0} + 8: 0x7eb8a584a246 - std[dece285a2424a0b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 9: 0x7eb8a5845736 - std[dece285a2424a0b]::panicking::begin_panic:: + 10: 0x7eb8a58571c1 - ::emit_producing_guarantee + 11: 0x7eb8a5d0b0fc - rustc_middle[806dc37a95cc1433]::util::bug::opt_span_bug_fmt::::{closure#0} + 12: 0x7eb8a5cf41ba - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 13: 0x7eb8a5cf405b - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 14: 0x7eb8a38ee140 - rustc_middle[806dc37a95cc1433]::util::bug::bug_fmt + 15: 0x7eb8a71efb17 - >::fold_ty + 16: 0x7eb8a796fa65 - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 17: 0x7eb8a796dd9a - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 18: 0x7eb8a6fa5a8b - rustc_pattern_analysis[b305b0f92cfef030]::analyze_match + 19: 0x7eb8a443b34a - ::visit_expr + 20: 0x7eb8a443a8fd - ::visit_expr + 21: 0x7eb8a443b739 - ::visit_expr + 22: 0x7eb8a443a8fd - ::visit_expr + 23: 0x7eb8a70536ac - rustc_mir_build[d6faaa64442a7ed5]::thir::pattern::check_match::check_match + 24: 0x7eb8a7053363 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 25: 0x7eb8a7052ab6 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 26: 0x7eb8a70527c1 - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_match::get_query_non_incr::__rust_end_short_backtrace + 27: 0x7eb8a70590d9 - rustc_mir_build[d6faaa64442a7ed5]::build::mir_build + 28: 0x7eb8a705878e - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 29: 0x7eb8a6d981ab - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 30: 0x7eb8a6d97c53 - rustc_query_impl[e1fdd24b038f677d]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace + 31: 0x7eb8a6f19f63 - rustc_mir_build[d6faaa64442a7ed5]::check_unsafety::check_unsafety + 32: 0x7eb8a6f19d6d - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 33: 0x7eb8a6f1931c - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 34: 0x7eb8a6f18f8d - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace + 35: 0x7eb8a760a1a4 - rustc_interface[e93a829871290abb]::passes::analysis + 36: 0x7eb8a7609ae5 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 37: 0x7eb8a7935d62 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 38: 0x7eb8a7935b0f - rustc_query_impl[e1fdd24b038f677d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace + 39: 0x7eb8a782b7cd - rustc_interface[e93a829871290abb]::interface::run_compiler::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1} + 40: 0x7eb8a793cc69 - std[dece285a2424a0b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>> + 41: 0x7eb8a793ca6a - <::spawn_unchecked_, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#2} as core[8d9e01cfbf9cd659]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 42: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h3af90da315d4b185 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 43: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h4e7f3b3405b4b88b + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 44: 0x7eb8a2797e3b - std::sys::pal::unix::thread::Thread::new::thread_start::h3b8e81128811868f + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/sys/pal/unix/thread.rs:108:17 + 45: 0x7eb8a2494ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 46: 0x7eb8a2526850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + 47: 0x0 - + + +query stack during panic: +#0 [check_match] match-checking `::get_call_metadata` +#1 [mir_built] building MIR for `::get_call_metadata` +#2 [check_unsafety] unsafety-checking `::get_call_metadata` +#3 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:168:90: +Box +stack backtrace: + 0: 0x7eb8a2773035 - std::backtrace_rs::backtrace::libunwind::trace::h58eed11393533053 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 + 1: 0x7eb8a2773035 - std::backtrace_rs::backtrace::trace_unsynchronized::had4fb78c8be00134 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 + 2: 0x7eb8a2773035 - std::backtrace::Backtrace::create::h63578d063b6212c6 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:331:13 + 3: 0x7eb8a2772f85 - std::backtrace::Backtrace::force_capture::h91c8717b9b6d7371 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:312:9 + 4: 0x7eb8a581f5d8 - std[dece285a2424a0b]::panicking::update_hook::>::{closure#0} + 5: 0x7eb8a278de4b - as core::ops::function::Fn>::call::hb8210adad49183e7 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2077:9 + 6: 0x7eb8a278de4b - std::panicking::rust_panic_with_hook::h51af00bcb4660c4e + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:799:13 + 7: 0x7eb8a584da24 - std[dece285a2424a0b]::panicking::begin_panic::::{closure#0} + 8: 0x7eb8a584a246 - std[dece285a2424a0b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 9: 0x7eb8a5845736 - std[dece285a2424a0b]::panicking::begin_panic:: + 10: 0x7eb8a58571c1 - ::emit_producing_guarantee + 11: 0x7eb8a5d0b0fc - rustc_middle[806dc37a95cc1433]::util::bug::opt_span_bug_fmt::::{closure#0} + 12: 0x7eb8a5cf41ba - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 13: 0x7eb8a5cf405b - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 14: 0x7eb8a38ee140 - rustc_middle[806dc37a95cc1433]::util::bug::bug_fmt + 15: 0x7eb8a71efb17 - >::fold_ty + 16: 0x7eb8a796fa65 - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 17: 0x7eb8a6fa5a8b - rustc_pattern_analysis[b305b0f92cfef030]::analyze_match + 18: 0x7eb8a443b34a - ::visit_expr + 19: 0x7eb8a443a8fd - ::visit_expr + 20: 0x7eb8a443b739 - ::visit_expr + 21: 0x7eb8a443a8fd - ::visit_expr + 22: 0x7eb8a70536ac - rustc_mir_build[d6faaa64442a7ed5]::thir::pattern::check_match::check_match + 23: 0x7eb8a7053363 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 24: 0x7eb8a7052ab6 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 25: 0x7eb8a70527c1 - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_match::get_query_non_incr::__rust_end_short_backtrace + 26: 0x7eb8a70590d9 - rustc_mir_build[d6faaa64442a7ed5]::build::mir_build + 27: 0x7eb8a705878e - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 28: 0x7eb8a6d981ab - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 29: 0x7eb8a6d97c53 - rustc_query_impl[e1fdd24b038f677d]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace + 30: 0x7eb8a6f19f63 - rustc_mir_build[d6faaa64442a7ed5]::check_unsafety::check_unsafety + 31: 0x7eb8a6f19d6d - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 32: 0x7eb8a6f1931c - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 33: 0x7eb8a6f18f8d - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace + 34: 0x7eb8a760a1a4 - rustc_interface[e93a829871290abb]::passes::analysis + 35: 0x7eb8a7609ae5 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 36: 0x7eb8a7935d62 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 37: 0x7eb8a7935b0f - rustc_query_impl[e1fdd24b038f677d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace + 38: 0x7eb8a782b7cd - rustc_interface[e93a829871290abb]::interface::run_compiler::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1} + 39: 0x7eb8a793cc69 - std[dece285a2424a0b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>> + 40: 0x7eb8a793ca6a - <::spawn_unchecked_, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#2} as core[8d9e01cfbf9cd659]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 41: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h3af90da315d4b185 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 42: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h4e7f3b3405b4b88b + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 43: 0x7eb8a2797e3b - std::sys::pal::unix::thread::Thread::new::thread_start::h3b8e81128811868f + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/sys/pal/unix/thread.rs:108:17 + 44: 0x7eb8a2494ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 45: 0x7eb8a2526850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + 46: 0x0 - + + +query stack during panic: +#0 [check_match] match-checking `::dispatch_bypass_filter` +#1 [mir_built] building MIR for `::dispatch_bypass_filter` +#2 [check_unsafety] unsafety-checking `::dispatch_bypass_filter` +#3 [analysis] running analysis passes on this crate +end of query stack +thread 'rustc' panicked at compiler/rustc_middle/src/ty/normalize_erasing_regions.rs:168:90: +Box +stack backtrace: + 0: 0x7eb8a2773035 - std::backtrace_rs::backtrace::libunwind::trace::h58eed11393533053 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 + 1: 0x7eb8a2773035 - std::backtrace_rs::backtrace::trace_unsynchronized::had4fb78c8be00134 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 + 2: 0x7eb8a2773035 - std::backtrace::Backtrace::create::h63578d063b6212c6 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:331:13 + 3: 0x7eb8a2772f85 - std::backtrace::Backtrace::force_capture::h91c8717b9b6d7371 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/backtrace.rs:312:9 + 4: 0x7eb8a581f5d8 - std[dece285a2424a0b]::panicking::update_hook::>::{closure#0} + 5: 0x7eb8a278de4b - as core::ops::function::Fn>::call::hb8210adad49183e7 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2077:9 + 6: 0x7eb8a278de4b - std::panicking::rust_panic_with_hook::h51af00bcb4660c4e + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:799:13 + 7: 0x7eb8a584da24 - std[dece285a2424a0b]::panicking::begin_panic::::{closure#0} + 8: 0x7eb8a584a246 - std[dece285a2424a0b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 9: 0x7eb8a5845736 - std[dece285a2424a0b]::panicking::begin_panic:: + 10: 0x7eb8a58571c1 - ::emit_producing_guarantee + 11: 0x7eb8a5d0b0fc - rustc_middle[806dc37a95cc1433]::util::bug::opt_span_bug_fmt::::{closure#0} + 12: 0x7eb8a5cf41ba - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 13: 0x7eb8a5cf405b - rustc_middle[806dc37a95cc1433]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 14: 0x7eb8a38ee140 - rustc_middle[806dc37a95cc1433]::util::bug::bug_fmt + 15: 0x7eb8a71efb17 - >::fold_ty + 16: 0x7eb8a796fa65 - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 17: 0x7eb8a796dd9a - rustc_pattern_analysis[b305b0f92cfef030]::usefulness::compute_exhaustiveness_and_usefulness::::{closure#0} + 18: 0x7eb8a6fa5a8b - rustc_pattern_analysis[b305b0f92cfef030]::analyze_match + 19: 0x7eb8a443b34a - ::visit_expr + 20: 0x7eb8a443a8fd - ::visit_expr + 21: 0x7eb8a443b739 - ::visit_expr + 22: 0x7eb8a443a8fd - ::visit_expr + 23: 0x7eb8a70536ac - rustc_mir_build[d6faaa64442a7ed5]::thir::pattern::check_match::check_match + 24: 0x7eb8a7053363 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 25: 0x7eb8a7052ab6 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 26: 0x7eb8a70527c1 - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_match::get_query_non_incr::__rust_end_short_backtrace + 27: 0x7eb8a70590d9 - rustc_mir_build[d6faaa64442a7ed5]::build::mir_build + 28: 0x7eb8a705878e - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 29: 0x7eb8a6d981ab - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 30: 0x7eb8a6d97c53 - rustc_query_impl[e1fdd24b038f677d]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace + 31: 0x7eb8a6f19f63 - rustc_mir_build[d6faaa64442a7ed5]::check_unsafety::check_unsafety + 32: 0x7eb8a6f19d6d - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 33: 0x7eb8a6f1931c - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 34: 0x7eb8a6f18f8d - rustc_query_impl[e1fdd24b038f677d]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace + 35: 0x7eb8a760a1a4 - rustc_interface[e93a829871290abb]::passes::analysis + 36: 0x7eb8a7609ae5 - rustc_query_impl[e1fdd24b038f677d]::plumbing::__rust_begin_short_backtrace::> + 37: 0x7eb8a7935d62 - rustc_query_system[181e9214754b2580]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e1fdd24b038f677d]::plumbing::QueryCtxt, false> + 38: 0x7eb8a7935b0f - rustc_query_impl[e1fdd24b038f677d]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace + 39: 0x7eb8a782b7cd - rustc_interface[e93a829871290abb]::interface::run_compiler::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1} + 40: 0x7eb8a793cc69 - std[dece285a2424a0b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>> + 41: 0x7eb8a793ca6a - <::spawn_unchecked_, rustc_driver_impl[aab422d80b3fe9fb]::run_compiler::{closure#0}>::{closure#1}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[8d9e01cfbf9cd659]::result::Result<(), rustc_span[6fd0e9f3c9cf86ed]::ErrorGuaranteed>>::{closure#2} as core[8d9e01cfbf9cd659]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 42: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h3af90da315d4b185 + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 43: 0x7eb8a2797e3b - as core::ops::function::FnOnce>::call_once::h4e7f3b3405b4b88b + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/alloc/src/boxed.rs:2063:9 + 44: 0x7eb8a2797e3b - std::sys::pal::unix::thread::Thread::new::thread_start::h3b8e81128811868f + at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/sys/pal/unix/thread.rs:108:17 + 45: 0x7eb8a2494ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 46: 0x7eb8a2526850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 + 47: 0x0 - + + +query stack during panic: +#0 [check_match] match-checking `::is_sub_type` +#1 [mir_built] building MIR for `::is_sub_type` +#2 [check_unsafety] unsafety-checking `::is_sub_type` +#3 [analysis] running analysis passes on this crate +end of query stack