From 5de84950bfd92a118e7eedd4d7361847891a1bbb Mon Sep 17 00:00:00 2001 From: kanarus Date: Fri, 23 May 2025 19:11:20 +0900 Subject: [PATCH 1/3] cherry-pick 465f0dee6018eea6610b406c580df07beaf50291 --- examples/Cargo.toml | 16 +--- examples/html_layout/Cargo.toml | 9 ++ examples/html_layout/src/main.rs | 104 ++++++++++++++++++++++ ohkami/src/header/map.rs | 96 +++++++++++++++++++- ohkami/src/request/headers.rs | 2 +- ohkami/src/response/headers.rs | 2 +- rustc-ice-2025-05-23T09_23_44-3083387.txt | 91 +++++++++++++++++++ rustc-ice-2025-05-23T09_23_44-3083388.txt | 91 +++++++++++++++++++ rustc-ice-2025-05-23T09_23_46-3083548.txt | 91 +++++++++++++++++++ rustc-ice-2025-05-23T09_23_46-3083549.txt | 91 +++++++++++++++++++ 10 files changed, 575 insertions(+), 18 deletions(-) create mode 100644 examples/html_layout/Cargo.toml create mode 100644 examples/html_layout/src/main.rs create mode 100644 rustc-ice-2025-05-23T09_23_44-3083387.txt create mode 100644 rustc-ice-2025-05-23T09_23_44-3083388.txt create mode 100644 rustc-ice-2025-05-23T09_23_46-3083548.txt create mode 100644 rustc-ice-2025-05-23T09_23_46-3083549.txt diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 34cece999..d074f1c85 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,21 +1,11 @@ [workspace] resolver = "2" -members = [ - "sse", - "form", - "hello", - "chatgpt", - "websocket", - "basic_auth", - "quick_start", - "static_files", - "json_response", - "derive_from_request", -] +members = ["*"] +exclude = ["target"] [workspace.dependencies] # set `default-features = false` to assure "DEBUG" feature be off even when DEBUGing `../ohkami` ohkami = { path = "../ohkami", default-features = false, features = ["rt_tokio", "sse", "ws"] } tokio = { version = "1", features = ["full"] } tracing = "0.1" -tracing-subscriber = "0.3" \ No newline at end of file +tracing-subscriber = "0.3" diff --git a/examples/html_layout/Cargo.toml b/examples/html_layout/Cargo.toml new file mode 100644 index 000000000..d628e5659 --- /dev/null +++ b/examples/html_layout/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "html_layout" +version = "0.0.0" +edition = "2024" + +[dependencies] +ohkami = { workspace = true } +tokio = { workspace = true } +uibeam = "0.2" diff --git a/examples/html_layout/src/main.rs b/examples/html_layout/src/main.rs new file mode 100644 index 000000000..3c06d5049 --- /dev/null +++ b/examples/html_layout/src/main.rs @@ -0,0 +1,104 @@ +use ohkami::prelude::*; +use ohkami::serde::Deserialize; +use ohkami::format::{Query, HTML}; +use uibeam::{UI, Beam}; + +struct Layout { + title: String, + children: UI, +} +impl Beam for Layout { + fn render(self) -> UI { + UI! { + + + + {&*self.title} + + + {self.children} + + + } + } +} +impl Layout { + fn fang_with_title(title: &str) -> impl FangAction { + #[derive(Clone)] + struct Fang { + title: String, + } + + impl FangAction for Fang { + async fn back(&self, res: &mut Response) { + if res.headers.ContentType().is_some_and(|x| x.starts_with("text/html")) { + let content = res.drop_content().into_bytes().unwrap(); + let content = std::str::from_utf8(&*content).unwrap(); + res.set_html(uibeam::shoot(UI! { + + unsafe {content} + + })); + } + } + } + + Fang { + title: title.to_string(), + } + } +} + +struct Counter { + initial_count: i32, +} +impl Beam for Counter { + fn render(self) -> UI { + UI! { +
+

+ "count: "{self.initial_count} +

+ + + + +
+ } + } +} + +#[derive(Deserialize)] +struct CounterMeta { + init: Option, +} + +async fn index(Query(q): Query) -> HTML> { + let initial_count = q.init.unwrap_or(0); + + HTML(uibeam::shoot(UI! { + + })) +} + +#[tokio::main] +async fn main() { + Ohkami::new(( + Layout::fang_with_title("Counter Example"), + "/".GET(index), + )).howl("localhost:5000").await +} diff --git a/ohkami/src/header/map.rs b/ohkami/src/header/map.rs index db034e92f..8422eef5b 100644 --- a/ohkami/src/header/map.rs +++ b/ohkami/src/header/map.rs @@ -48,15 +48,25 @@ impl IndexMap { } #[inline(always)] - pub(crate) fn iter(&self) -> impl Iterator { + pub(crate) fn iter(&self) -> impl Iterator { self.values.iter() - .filter(|(i, _)| *unsafe {self.index.get_unchecked(*i)} != Self::NULL) + .enumerate() + .filter_map(|(pos, (index, value))| ( + // `!= Self::NULL` can't correctly handle *over-set after delete*, + // we MUST check the held index to be equal to the current position + *unsafe {self.index.get_unchecked(*index)} == pos as u8 + ).then_some((*index, value))) } #[inline(always)] pub(crate) fn into_iter(self) -> impl Iterator { self.values.into_iter() - .filter(move |(i, _)| *unsafe {self.index.get_unchecked(*i)} != Self::NULL) + .enumerate() + .filter_map(move |(pos, (index, value))| ( + // `!= Self::NULL` can't correctly handle *over-set after delete*, + // we MUST check the held index to be equal to the current position + *unsafe {self.index.get_unchecked(index)} == pos as u8 + ).then_some((index, value))) } } @@ -80,3 +90,83 @@ const _: () = { } } }; + +#[cfg(test)] +mod test { + use super::*; + + #[test] + fn test_index_map_iter_simple() { + let mut map = IndexMap::<8, &'static str>::new(); + + unsafe {map.set(0, "a")}; + unsafe {map.set(1, "b")}; + unsafe {map.set(2, "c")}; + unsafe {map.set(3, "d")}; + + assert_eq!( + map.into_iter().collect::>(), + vec![(0, "a"), (1, "b"), (2, "c"), (3, "d")] + ); + } + + #[test] + fn test_index_map_iter_with_delete() { + let mut map = IndexMap::<8, &'static str>::new(); + + unsafe {map.set(0, "a")}; + unsafe {map.set(1, "b")}; + unsafe {map.set(2, "c")}; + unsafe {map.set(3, "d")}; + + unsafe {map.delete(1)}; + unsafe {map.delete(3)}; + + assert_eq!( + map.into_iter().collect::>(), + vec![(0, "a"), (2, "c")] + ); + } + + #[test] + fn test_index_map_iter_with_delete_and_other_set() { + let mut map = IndexMap::<8, &'static str>::new(); + + unsafe {map.set(0, "a")}; + unsafe {map.set(1, "b")}; + unsafe {map.set(2, "c")}; + unsafe {map.set(3, "d")}; + + unsafe {map.delete(1)}; + unsafe {map.delete(3)}; + + unsafe {map.set(4, "e")}; + unsafe {map.set(5, "f")}; + + assert_eq!( + map.into_iter().collect::>(), + vec![(0, "a"), (2, "c"), (4, "e"), (5, "f")] + ); + } + + #[test] + fn test_index_map_iter_with_delete_and_overset() { + let mut map = IndexMap::<8, &'static str>::new(); + + unsafe {map.set(0, "a")}; + unsafe {map.set(1, "b")}; + unsafe {map.set(2, "c")}; + unsafe {map.set(3, "d")}; + + unsafe {map.delete(1)}; + unsafe {map.delete(3)}; + + unsafe {map.set(1, "e")}; + unsafe {map.set(3, "f")}; + + assert_eq!( + map.into_iter().collect::>(), + vec![(0, "a"), (2, "c"), (1, "e"), (3, "f")] + ); + } +} diff --git a/ohkami/src/request/headers.rs b/ohkami/src/request/headers.rs index 258195885..a9a211518 100644 --- a/ohkami/src/request/headers.rs +++ b/ohkami/src/request/headers.rs @@ -278,7 +278,7 @@ impl Headers { pub(crate) fn iter(&self) -> impl Iterator { self.standard.iter() .map(|(i, v)| ( - unsafe {std::mem::transmute::<_, Header>(*i as u8).as_str()}, + unsafe {std::mem::transmute::<_, Header>(i as u8).as_str()}, std::str::from_utf8(v).expect("Non UTF-8 header value") )) .chain(self.custom.as_ref() diff --git a/ohkami/src/response/headers.rs b/ohkami/src/response/headers.rs index 26a9b578a..834597354 100644 --- a/ohkami/src/response/headers.rs +++ b/ohkami/src/response/headers.rs @@ -438,7 +438,7 @@ impl Headers { pub(crate) fn iter_standard(&self) -> impl Iterator { self.standard.iter() .map(|(i, v)| ( - unsafe {std::mem::transmute::<_, Header>(*i as u8)}.as_str(), + unsafe {std::mem::transmute::<_, Header>(i as u8)}.as_str(), &**v )) } diff --git a/rustc-ice-2025-05-23T09_23_44-3083387.txt b/rustc-ice-2025-05-23T09_23_44-3083387.txt new file mode 100644 index 000000000..557cf8f16 --- /dev/null +++ b/rustc-ice-2025-05-23T09_23_44-3083387.txt @@ -0,0 +1,91 @@ +thread 'rustc' panicked at compiler/rustc_middle/src/ty/assoc.rs:43:25: +name of non-Rpitit assoc item +stack backtrace: + 0: 0x7b88560c4c65 - std::backtrace::Backtrace::create::hb98733a2d07da098 + 1: 0x7b88544b34a5 - std::backtrace::Backtrace::force_capture::h7453675e01572610 + 2: 0x7b8853549321 - std[cfbc79774844d935]::panicking::update_hook::>::{closure#0} + 3: 0x7b88544cce03 - std::panicking::rust_panic_with_hook::hdfd38210fc20e43b + 4: 0x7b88544ccafa - std::panicking::begin_panic_handler::{{closure}}::hc72899d25392f7bc + 5: 0x7b88544c9279 - std::sys::backtrace::__rust_end_short_backtrace::hd11e673a53554045 + 6: 0x7b88544cc7bd - __rustc[6dc022cbd14ae54d]::rust_begin_unwind + 7: 0x7b8850e870c0 - core::panicking::panic_fmt::h88a862c704395f75 + 8: 0x7b885223b3cb - core::option::expect_failed::h23bc92f892e77f28 + 9: 0x7b88565191b3 - ::ident.cold + 10: 0x7b8853698901 - as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::try_fold::flatten::>, (), core[8f5efdd3e17dd637]::ops::control_flow::ControlFlow, core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator::find::check::probe_traits_that_match_assoc_ty::{closure#0}>::{closure#0}>::{closure#0} + 11: 0x7b88536c88c3 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::next + 12: 0x7b8853688077 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::collect::> + 13: 0x7b885597dbb6 - ::lower_assoc_path_shared::{closure#0} + 14: 0x7b8855979000 - ::lower_assoc_path_ty + 15: 0x7b8854d29c4e - ::check_struct_path + 16: 0x7b8855951396 - ::check_expr_with_expectation_and_args + 17: 0x7b8854d23053 - ::check_overloaded_binop + 18: 0x7b885594fdf7 - ::check_expr_with_expectation_and_args + 19: 0x7b88551f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn + 20: 0x7b8855461877 - ::check_expr_closure + 21: 0x7b8855952f4e - ::check_expr_with_expectation_and_args + 22: 0x7b8854d07e52 - ::check_argument_types + 23: 0x7b885594f4d4 - ::check_expr_with_expectation_and_args + 24: 0x7b88559434b7 - ::check_expr_block + 25: 0x7b885594e1bf - ::check_expr_with_expectation_and_args + 26: 0x7b88551f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn + 27: 0x7b88551ddd9a - rustc_hir_typeck[461b12d63f26389c]::typeck_with_inspect::{closure#0} + 28: 0x7b88551dcab6 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 29: 0x7b8854e430f3 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 30: 0x7b8854e4651e - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>> + 31: 0x7b885604bcf3 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once + 32: 0x7b8854c1aa49 - >::try_mark_previous_green:: + 33: 0x7b8854c1a9bd - >::try_mark_previous_green:: + 34: 0x7b8854c1a9bd - >::try_mark_previous_green:: + 35: 0x7b8854c1a9bd - >::try_mark_previous_green:: + 36: 0x7b8854c1a9bd - >::try_mark_previous_green:: + 37: 0x7b8854e423bb - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 38: 0x7b8854e6d84b - rustc_query_impl[8687e3a7a5e012fc]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace + 39: 0x7b8855ec15eb - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::opaque::find_opaque_ty_constraints_for_rpit + 40: 0x7b8855ec1374 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of_opaque + 41: 0x7b8855ec122d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 42: 0x7b8854e708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 43: 0x7b8855f3d203 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of_opaque::get_query_incr::__rust_end_short_backtrace + 44: 0x7b8854ecb892 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of + 45: 0x7b8854ec9f78 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 46: 0x7b8854e708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 47: 0x7b8854e6c77d - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of::get_query_incr::__rust_end_short_backtrace + 48: 0x7b88550661c2 - ::ty + 49: 0x7b8855614bc0 - rustc_privacy[c658d5f4663e8f35]::effective_visibilities + 50: 0x7b88556144e3 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 51: 0x7b8855f1a406 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 52: 0x7b8855f19e59 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::>, false, false, false>> + 53: 0x7b8853f68653 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once + 54: 0x7b8854c1aa49 - >::try_mark_previous_green:: + 55: 0x7b8854c1a9bd - >::try_mark_previous_green:: + 56: 0x7b8855675fe2 - >::try_mark_green:: + 57: 0x7b8855675d6d - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::ensure_must_run::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt> + 58: 0x7b8855cd0199 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace + 59: 0x7b8854e3dd32 - rustc_hir_analysis[98c22e4b0d6d5cdc]::check_crate + 60: 0x7b88555fbef4 - rustc_interface[9462fce10cf7ee10]::passes::run_required_analyses + 61: 0x7b8855a9305e - rustc_interface[9462fce10cf7ee10]::passes::analysis + 62: 0x7b8855a9302d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 63: 0x7b8855f1c8fd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 64: 0x7b8855f1c221 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 65: 0x7b8855ac20be - rustc_interface[9462fce10cf7ee10]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} + 66: 0x7b8855d188c4 - rustc_interface[9462fce10cf7ee10]::interface::run_compiler::<(), rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}>::{closure#1} + 67: 0x7b8855b03c68 - std[cfbc79774844d935]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> + 68: 0x7b8855b040b4 - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[8f5efdd3e17dd637]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 69: 0x7b8855b054b7 - std::sys::pal::unix::thread::Thread::new::thread_start::h924abcfa8ac99dff + 70: 0x7b884f894ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 71: 0x7b884f926850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0 + 72: 0x0 - + + +rustc version: 1.88.0-nightly (077cedc2a 2025-04-19) +platform: x86_64-unknown-linux-gnu + +query stack during panic: +#0 [typeck] type-checking `header::map::::iter` +#1 [mir_borrowck] borrow-checking `header::map::::iter` +#2 [type_of_opaque] computing type of opaque `header::map::::iter::{opaque#0}` +#3 [type_of] computing type of `header::map::::iter::{opaque#0}` +#4 [effective_visibilities] checking effective visibilities +#5 [analysis] running analysis passes on this crate +end of query stack diff --git a/rustc-ice-2025-05-23T09_23_44-3083388.txt b/rustc-ice-2025-05-23T09_23_44-3083388.txt new file mode 100644 index 000000000..7c3169466 --- /dev/null +++ b/rustc-ice-2025-05-23T09_23_44-3083388.txt @@ -0,0 +1,91 @@ +thread 'rustc' panicked at compiler/rustc_middle/src/ty/assoc.rs:43:25: +name of non-Rpitit assoc item +stack backtrace: + 0: 0x78081b4c4c65 - std::backtrace::Backtrace::create::hb98733a2d07da098 + 1: 0x7808198b34a5 - std::backtrace::Backtrace::force_capture::h7453675e01572610 + 2: 0x780818949321 - std[cfbc79774844d935]::panicking::update_hook::>::{closure#0} + 3: 0x7808198cce03 - std::panicking::rust_panic_with_hook::hdfd38210fc20e43b + 4: 0x7808198ccafa - std::panicking::begin_panic_handler::{{closure}}::hc72899d25392f7bc + 5: 0x7808198c9279 - std::sys::backtrace::__rust_end_short_backtrace::hd11e673a53554045 + 6: 0x7808198cc7bd - __rustc[6dc022cbd14ae54d]::rust_begin_unwind + 7: 0x7808162870c0 - core::panicking::panic_fmt::h88a862c704395f75 + 8: 0x78081763b3cb - core::option::expect_failed::h23bc92f892e77f28 + 9: 0x78081b9191b3 - ::ident.cold + 10: 0x780818a98901 - as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::try_fold::flatten::>, (), core[8f5efdd3e17dd637]::ops::control_flow::ControlFlow, core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator::find::check::probe_traits_that_match_assoc_ty::{closure#0}>::{closure#0}>::{closure#0} + 11: 0x780818ac88c3 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::next + 12: 0x780818a88077 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::collect::> + 13: 0x78081ad7dbb6 - ::lower_assoc_path_shared::{closure#0} + 14: 0x78081ad79000 - ::lower_assoc_path_ty + 15: 0x78081a129c4e - ::check_struct_path + 16: 0x78081ad51396 - ::check_expr_with_expectation_and_args + 17: 0x78081a123053 - ::check_overloaded_binop + 18: 0x78081ad4fdf7 - ::check_expr_with_expectation_and_args + 19: 0x78081a5f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn + 20: 0x78081a861877 - ::check_expr_closure + 21: 0x78081ad52f4e - ::check_expr_with_expectation_and_args + 22: 0x78081a107e52 - ::check_argument_types + 23: 0x78081ad4f4d4 - ::check_expr_with_expectation_and_args + 24: 0x78081ad434b7 - ::check_expr_block + 25: 0x78081ad4e1bf - ::check_expr_with_expectation_and_args + 26: 0x78081a5f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn + 27: 0x78081a5ddd9a - rustc_hir_typeck[461b12d63f26389c]::typeck_with_inspect::{closure#0} + 28: 0x78081a5dcab6 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 29: 0x78081a2430f3 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 30: 0x78081a24651e - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>> + 31: 0x78081b44bcf3 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once + 32: 0x78081a01aa49 - >::try_mark_previous_green:: + 33: 0x78081a01a9bd - >::try_mark_previous_green:: + 34: 0x78081a01a9bd - >::try_mark_previous_green:: + 35: 0x78081a01a9bd - >::try_mark_previous_green:: + 36: 0x78081a01a9bd - >::try_mark_previous_green:: + 37: 0x78081a2423bb - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 38: 0x78081a26d84b - rustc_query_impl[8687e3a7a5e012fc]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace + 39: 0x78081b2c15eb - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::opaque::find_opaque_ty_constraints_for_rpit + 40: 0x78081b2c1374 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of_opaque + 41: 0x78081b2c122d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 42: 0x78081a2708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 43: 0x78081b33d203 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of_opaque::get_query_incr::__rust_end_short_backtrace + 44: 0x78081a2cb892 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of + 45: 0x78081a2c9f78 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 46: 0x78081a2708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 47: 0x78081a26c77d - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of::get_query_incr::__rust_end_short_backtrace + 48: 0x78081a4661c2 - ::ty + 49: 0x78081aa14bc0 - rustc_privacy[c658d5f4663e8f35]::effective_visibilities + 50: 0x78081aa144e3 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 51: 0x78081b31a406 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 52: 0x78081b319e59 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::>, false, false, false>> + 53: 0x780819368653 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once + 54: 0x78081a01aa49 - >::try_mark_previous_green:: + 55: 0x78081a01a9bd - >::try_mark_previous_green:: + 56: 0x78081aa75fe2 - >::try_mark_green:: + 57: 0x78081aa75d6d - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::ensure_must_run::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt> + 58: 0x78081b0d0199 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace + 59: 0x78081a23dd32 - rustc_hir_analysis[98c22e4b0d6d5cdc]::check_crate + 60: 0x78081a9fbef4 - rustc_interface[9462fce10cf7ee10]::passes::run_required_analyses + 61: 0x78081ae9305e - rustc_interface[9462fce10cf7ee10]::passes::analysis + 62: 0x78081ae9302d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 63: 0x78081b31c8fd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 64: 0x78081b31c221 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 65: 0x78081aec20be - rustc_interface[9462fce10cf7ee10]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} + 66: 0x78081b1188c4 - rustc_interface[9462fce10cf7ee10]::interface::run_compiler::<(), rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}>::{closure#1} + 67: 0x78081af03c68 - std[cfbc79774844d935]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> + 68: 0x78081af040b4 - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[8f5efdd3e17dd637]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 69: 0x78081af054b7 - std::sys::pal::unix::thread::Thread::new::thread_start::h924abcfa8ac99dff + 70: 0x780814c94ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 71: 0x780814d26850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0 + 72: 0x0 - + + +rustc version: 1.88.0-nightly (077cedc2a 2025-04-19) +platform: x86_64-unknown-linux-gnu + +query stack during panic: +#0 [typeck] type-checking `header::map::::iter` +#1 [mir_borrowck] borrow-checking `header::map::::iter` +#2 [type_of_opaque] computing type of opaque `header::map::::iter::{opaque#0}` +#3 [type_of] computing type of `header::map::::iter::{opaque#0}` +#4 [effective_visibilities] checking effective visibilities +#5 [analysis] running analysis passes on this crate +end of query stack diff --git a/rustc-ice-2025-05-23T09_23_46-3083548.txt b/rustc-ice-2025-05-23T09_23_46-3083548.txt new file mode 100644 index 000000000..539fcc10a --- /dev/null +++ b/rustc-ice-2025-05-23T09_23_46-3083548.txt @@ -0,0 +1,91 @@ +thread 'rustc' panicked at compiler/rustc_middle/src/ty/assoc.rs:43:25: +name of non-Rpitit assoc item +stack backtrace: + 0: 0x7940a12c4c65 - std::backtrace::Backtrace::create::hb98733a2d07da098 + 1: 0x79409f6b34a5 - std::backtrace::Backtrace::force_capture::h7453675e01572610 + 2: 0x79409e749321 - std[cfbc79774844d935]::panicking::update_hook::>::{closure#0} + 3: 0x79409f6cce03 - std::panicking::rust_panic_with_hook::hdfd38210fc20e43b + 4: 0x79409f6ccafa - std::panicking::begin_panic_handler::{{closure}}::hc72899d25392f7bc + 5: 0x79409f6c9279 - std::sys::backtrace::__rust_end_short_backtrace::hd11e673a53554045 + 6: 0x79409f6cc7bd - __rustc[6dc022cbd14ae54d]::rust_begin_unwind + 7: 0x79409c0870c0 - core::panicking::panic_fmt::h88a862c704395f75 + 8: 0x79409d43b3cb - core::option::expect_failed::h23bc92f892e77f28 + 9: 0x7940a17191b3 - ::ident.cold + 10: 0x79409e898901 - as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::try_fold::flatten::>, (), core[8f5efdd3e17dd637]::ops::control_flow::ControlFlow, core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator::find::check::probe_traits_that_match_assoc_ty::{closure#0}>::{closure#0}>::{closure#0} + 11: 0x79409e8c88c3 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::next + 12: 0x79409e888077 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::collect::> + 13: 0x7940a0b7dbb6 - ::lower_assoc_path_shared::{closure#0} + 14: 0x7940a0b79000 - ::lower_assoc_path_ty + 15: 0x79409ff29c4e - ::check_struct_path + 16: 0x7940a0b51396 - ::check_expr_with_expectation_and_args + 17: 0x79409ff23053 - ::check_overloaded_binop + 18: 0x7940a0b4fdf7 - ::check_expr_with_expectation_and_args + 19: 0x7940a03f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn + 20: 0x7940a0661877 - ::check_expr_closure + 21: 0x7940a0b52f4e - ::check_expr_with_expectation_and_args + 22: 0x79409ff07e52 - ::check_argument_types + 23: 0x7940a0b4f4d4 - ::check_expr_with_expectation_and_args + 24: 0x7940a0b434b7 - ::check_expr_block + 25: 0x7940a0b4e1bf - ::check_expr_with_expectation_and_args + 26: 0x7940a03f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn + 27: 0x7940a03ddd9a - rustc_hir_typeck[461b12d63f26389c]::typeck_with_inspect::{closure#0} + 28: 0x7940a03dcab6 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 29: 0x7940a00430f3 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 30: 0x7940a004651e - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>> + 31: 0x7940a124bcf3 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once + 32: 0x79409fe1aa49 - >::try_mark_previous_green:: + 33: 0x79409fe1a9bd - >::try_mark_previous_green:: + 34: 0x79409fe1a9bd - >::try_mark_previous_green:: + 35: 0x79409fe1a9bd - >::try_mark_previous_green:: + 36: 0x79409fe1a9bd - >::try_mark_previous_green:: + 37: 0x7940a00423bb - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 38: 0x7940a006d84b - rustc_query_impl[8687e3a7a5e012fc]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace + 39: 0x7940a10c15eb - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::opaque::find_opaque_ty_constraints_for_rpit + 40: 0x7940a10c1374 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of_opaque + 41: 0x7940a10c122d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 42: 0x7940a00708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 43: 0x7940a113d203 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of_opaque::get_query_incr::__rust_end_short_backtrace + 44: 0x7940a00cb892 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of + 45: 0x7940a00c9f78 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 46: 0x7940a00708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 47: 0x7940a006c77d - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of::get_query_incr::__rust_end_short_backtrace + 48: 0x7940a02661c2 - ::ty + 49: 0x7940a0814bc0 - rustc_privacy[c658d5f4663e8f35]::effective_visibilities + 50: 0x7940a08144e3 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 51: 0x7940a111a406 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 52: 0x7940a1119e59 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::>, false, false, false>> + 53: 0x79409f168653 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once + 54: 0x79409fe1aa49 - >::try_mark_previous_green:: + 55: 0x79409fe1a9bd - >::try_mark_previous_green:: + 56: 0x7940a0875fe2 - >::try_mark_green:: + 57: 0x7940a0875d6d - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::ensure_must_run::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt> + 58: 0x7940a0ed0199 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace + 59: 0x7940a003dd32 - rustc_hir_analysis[98c22e4b0d6d5cdc]::check_crate + 60: 0x7940a07fbef4 - rustc_interface[9462fce10cf7ee10]::passes::run_required_analyses + 61: 0x7940a0c9305e - rustc_interface[9462fce10cf7ee10]::passes::analysis + 62: 0x7940a0c9302d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 63: 0x7940a111c8fd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 64: 0x7940a111c221 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 65: 0x7940a0cc20be - rustc_interface[9462fce10cf7ee10]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} + 66: 0x7940a0f188c4 - rustc_interface[9462fce10cf7ee10]::interface::run_compiler::<(), rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}>::{closure#1} + 67: 0x7940a0d03c68 - std[cfbc79774844d935]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> + 68: 0x7940a0d040b4 - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[8f5efdd3e17dd637]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 69: 0x7940a0d054b7 - std::sys::pal::unix::thread::Thread::new::thread_start::h924abcfa8ac99dff + 70: 0x79409aa94ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 71: 0x79409ab26850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0 + 72: 0x0 - + + +rustc version: 1.88.0-nightly (077cedc2a 2025-04-19) +platform: x86_64-unknown-linux-gnu + +query stack during panic: +#0 [typeck] type-checking `header::map::::iter` +#1 [mir_borrowck] borrow-checking `header::map::::iter` +#2 [type_of_opaque] computing type of opaque `header::map::::iter::{opaque#0}` +#3 [type_of] computing type of `header::map::::iter::{opaque#0}` +#4 [effective_visibilities] checking effective visibilities +#5 [analysis] running analysis passes on this crate +end of query stack diff --git a/rustc-ice-2025-05-23T09_23_46-3083549.txt b/rustc-ice-2025-05-23T09_23_46-3083549.txt new file mode 100644 index 000000000..6c103eb3a --- /dev/null +++ b/rustc-ice-2025-05-23T09_23_46-3083549.txt @@ -0,0 +1,91 @@ +thread 'rustc' panicked at compiler/rustc_middle/src/ty/assoc.rs:43:25: +name of non-Rpitit assoc item +stack backtrace: + 0: 0x7a4d0a4c4c65 - std::backtrace::Backtrace::create::hb98733a2d07da098 + 1: 0x7a4d088b34a5 - std::backtrace::Backtrace::force_capture::h7453675e01572610 + 2: 0x7a4d07949321 - std[cfbc79774844d935]::panicking::update_hook::>::{closure#0} + 3: 0x7a4d088cce03 - std::panicking::rust_panic_with_hook::hdfd38210fc20e43b + 4: 0x7a4d088ccafa - std::panicking::begin_panic_handler::{{closure}}::hc72899d25392f7bc + 5: 0x7a4d088c9279 - std::sys::backtrace::__rust_end_short_backtrace::hd11e673a53554045 + 6: 0x7a4d088cc7bd - __rustc[6dc022cbd14ae54d]::rust_begin_unwind + 7: 0x7a4d052870c0 - core::panicking::panic_fmt::h88a862c704395f75 + 8: 0x7a4d0663b3cb - core::option::expect_failed::h23bc92f892e77f28 + 9: 0x7a4d0a9191b3 - ::ident.cold + 10: 0x7a4d07a98901 - as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::try_fold::flatten::>, (), core[8f5efdd3e17dd637]::ops::control_flow::ControlFlow, core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator::find::check::probe_traits_that_match_assoc_ty::{closure#0}>::{closure#0}>::{closure#0} + 11: 0x7a4d07ac88c3 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::next + 12: 0x7a4d07a88077 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::collect::> + 13: 0x7a4d09d7dbb6 - ::lower_assoc_path_shared::{closure#0} + 14: 0x7a4d09d79000 - ::lower_assoc_path_ty + 15: 0x7a4d09129c4e - ::check_struct_path + 16: 0x7a4d09d51396 - ::check_expr_with_expectation_and_args + 17: 0x7a4d09123053 - ::check_overloaded_binop + 18: 0x7a4d09d4fdf7 - ::check_expr_with_expectation_and_args + 19: 0x7a4d095f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn + 20: 0x7a4d09861877 - ::check_expr_closure + 21: 0x7a4d09d52f4e - ::check_expr_with_expectation_and_args + 22: 0x7a4d09107e52 - ::check_argument_types + 23: 0x7a4d09d4f4d4 - ::check_expr_with_expectation_and_args + 24: 0x7a4d09d434b7 - ::check_expr_block + 25: 0x7a4d09d4e1bf - ::check_expr_with_expectation_and_args + 26: 0x7a4d095f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn + 27: 0x7a4d095ddd9a - rustc_hir_typeck[461b12d63f26389c]::typeck_with_inspect::{closure#0} + 28: 0x7a4d095dcab6 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 29: 0x7a4d092430f3 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 30: 0x7a4d0924651e - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>> + 31: 0x7a4d0a44bcf3 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once + 32: 0x7a4d0901aa49 - >::try_mark_previous_green:: + 33: 0x7a4d0901a9bd - >::try_mark_previous_green:: + 34: 0x7a4d0901a9bd - >::try_mark_previous_green:: + 35: 0x7a4d0901a9bd - >::try_mark_previous_green:: + 36: 0x7a4d0901a9bd - >::try_mark_previous_green:: + 37: 0x7a4d092423bb - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 38: 0x7a4d0926d84b - rustc_query_impl[8687e3a7a5e012fc]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace + 39: 0x7a4d0a2c15eb - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::opaque::find_opaque_ty_constraints_for_rpit + 40: 0x7a4d0a2c1374 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of_opaque + 41: 0x7a4d0a2c122d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 42: 0x7a4d092708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 43: 0x7a4d0a33d203 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of_opaque::get_query_incr::__rust_end_short_backtrace + 44: 0x7a4d092cb892 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of + 45: 0x7a4d092c9f78 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 46: 0x7a4d092708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 47: 0x7a4d0926c77d - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of::get_query_incr::__rust_end_short_backtrace + 48: 0x7a4d094661c2 - ::ty + 49: 0x7a4d09a14bc0 - rustc_privacy[c658d5f4663e8f35]::effective_visibilities + 50: 0x7a4d09a144e3 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 51: 0x7a4d0a31a406 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 52: 0x7a4d0a319e59 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::>, false, false, false>> + 53: 0x7a4d08368653 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once + 54: 0x7a4d0901aa49 - >::try_mark_previous_green:: + 55: 0x7a4d0901a9bd - >::try_mark_previous_green:: + 56: 0x7a4d09a75fe2 - >::try_mark_green:: + 57: 0x7a4d09a75d6d - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::ensure_must_run::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt> + 58: 0x7a4d0a0d0199 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace + 59: 0x7a4d0923dd32 - rustc_hir_analysis[98c22e4b0d6d5cdc]::check_crate + 60: 0x7a4d099fbef4 - rustc_interface[9462fce10cf7ee10]::passes::run_required_analyses + 61: 0x7a4d09e9305e - rustc_interface[9462fce10cf7ee10]::passes::analysis + 62: 0x7a4d09e9302d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> + 63: 0x7a4d0a31c8fd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> + 64: 0x7a4d0a31c221 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 65: 0x7a4d09ec20be - rustc_interface[9462fce10cf7ee10]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} + 66: 0x7a4d0a1188c4 - rustc_interface[9462fce10cf7ee10]::interface::run_compiler::<(), rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}>::{closure#1} + 67: 0x7a4d09f03c68 - std[cfbc79774844d935]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> + 68: 0x7a4d09f040b4 - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[8f5efdd3e17dd637]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 69: 0x7a4d09f054b7 - std::sys::pal::unix::thread::Thread::new::thread_start::h924abcfa8ac99dff + 70: 0x7a4d03c94ac3 - start_thread + at ./nptl/pthread_create.c:442:8 + 71: 0x7a4d03d26850 - __GI___clone3 + at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0 + 72: 0x0 - + + +rustc version: 1.88.0-nightly (077cedc2a 2025-04-19) +platform: x86_64-unknown-linux-gnu + +query stack during panic: +#0 [typeck] type-checking `header::map::::iter` +#1 [mir_borrowck] borrow-checking `header::map::::iter` +#2 [type_of_opaque] computing type of opaque `header::map::::iter::{opaque#0}` +#3 [type_of] computing type of `header::map::::iter::{opaque#0}` +#4 [effective_visibilities] checking effective visibilities +#5 [analysis] running analysis passes on this crate +end of query stack From fd9a614630053ee1d45110e68e1bcc620e8b74cf Mon Sep 17 00:00:00 2001 From: kanarus Date: Fri, 23 May 2025 19:11:52 +0900 Subject: [PATCH 2/3] rm rustc-ice* --- rustc-ice-2025-05-23T09_23_44-3083387.txt | 91 ----------------------- rustc-ice-2025-05-23T09_23_44-3083388.txt | 91 ----------------------- rustc-ice-2025-05-23T09_23_46-3083548.txt | 91 ----------------------- rustc-ice-2025-05-23T09_23_46-3083549.txt | 91 ----------------------- 4 files changed, 364 deletions(-) delete mode 100644 rustc-ice-2025-05-23T09_23_44-3083387.txt delete mode 100644 rustc-ice-2025-05-23T09_23_44-3083388.txt delete mode 100644 rustc-ice-2025-05-23T09_23_46-3083548.txt delete mode 100644 rustc-ice-2025-05-23T09_23_46-3083549.txt diff --git a/rustc-ice-2025-05-23T09_23_44-3083387.txt b/rustc-ice-2025-05-23T09_23_44-3083387.txt deleted file mode 100644 index 557cf8f16..000000000 --- a/rustc-ice-2025-05-23T09_23_44-3083387.txt +++ /dev/null @@ -1,91 +0,0 @@ -thread 'rustc' panicked at compiler/rustc_middle/src/ty/assoc.rs:43:25: -name of non-Rpitit assoc item -stack backtrace: - 0: 0x7b88560c4c65 - std::backtrace::Backtrace::create::hb98733a2d07da098 - 1: 0x7b88544b34a5 - std::backtrace::Backtrace::force_capture::h7453675e01572610 - 2: 0x7b8853549321 - std[cfbc79774844d935]::panicking::update_hook::>::{closure#0} - 3: 0x7b88544cce03 - std::panicking::rust_panic_with_hook::hdfd38210fc20e43b - 4: 0x7b88544ccafa - std::panicking::begin_panic_handler::{{closure}}::hc72899d25392f7bc - 5: 0x7b88544c9279 - std::sys::backtrace::__rust_end_short_backtrace::hd11e673a53554045 - 6: 0x7b88544cc7bd - __rustc[6dc022cbd14ae54d]::rust_begin_unwind - 7: 0x7b8850e870c0 - core::panicking::panic_fmt::h88a862c704395f75 - 8: 0x7b885223b3cb - core::option::expect_failed::h23bc92f892e77f28 - 9: 0x7b88565191b3 - ::ident.cold - 10: 0x7b8853698901 - as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::try_fold::flatten::>, (), core[8f5efdd3e17dd637]::ops::control_flow::ControlFlow, core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator::find::check::probe_traits_that_match_assoc_ty::{closure#0}>::{closure#0}>::{closure#0} - 11: 0x7b88536c88c3 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::next - 12: 0x7b8853688077 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::collect::> - 13: 0x7b885597dbb6 - ::lower_assoc_path_shared::{closure#0} - 14: 0x7b8855979000 - ::lower_assoc_path_ty - 15: 0x7b8854d29c4e - ::check_struct_path - 16: 0x7b8855951396 - ::check_expr_with_expectation_and_args - 17: 0x7b8854d23053 - ::check_overloaded_binop - 18: 0x7b885594fdf7 - ::check_expr_with_expectation_and_args - 19: 0x7b88551f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn - 20: 0x7b8855461877 - ::check_expr_closure - 21: 0x7b8855952f4e - ::check_expr_with_expectation_and_args - 22: 0x7b8854d07e52 - ::check_argument_types - 23: 0x7b885594f4d4 - ::check_expr_with_expectation_and_args - 24: 0x7b88559434b7 - ::check_expr_block - 25: 0x7b885594e1bf - ::check_expr_with_expectation_and_args - 26: 0x7b88551f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn - 27: 0x7b88551ddd9a - rustc_hir_typeck[461b12d63f26389c]::typeck_with_inspect::{closure#0} - 28: 0x7b88551dcab6 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 29: 0x7b8854e430f3 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 30: 0x7b8854e4651e - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>> - 31: 0x7b885604bcf3 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once - 32: 0x7b8854c1aa49 - >::try_mark_previous_green:: - 33: 0x7b8854c1a9bd - >::try_mark_previous_green:: - 34: 0x7b8854c1a9bd - >::try_mark_previous_green:: - 35: 0x7b8854c1a9bd - >::try_mark_previous_green:: - 36: 0x7b8854c1a9bd - >::try_mark_previous_green:: - 37: 0x7b8854e423bb - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 38: 0x7b8854e6d84b - rustc_query_impl[8687e3a7a5e012fc]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace - 39: 0x7b8855ec15eb - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::opaque::find_opaque_ty_constraints_for_rpit - 40: 0x7b8855ec1374 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of_opaque - 41: 0x7b8855ec122d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 42: 0x7b8854e708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 43: 0x7b8855f3d203 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of_opaque::get_query_incr::__rust_end_short_backtrace - 44: 0x7b8854ecb892 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of - 45: 0x7b8854ec9f78 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 46: 0x7b8854e708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 47: 0x7b8854e6c77d - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of::get_query_incr::__rust_end_short_backtrace - 48: 0x7b88550661c2 - ::ty - 49: 0x7b8855614bc0 - rustc_privacy[c658d5f4663e8f35]::effective_visibilities - 50: 0x7b88556144e3 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 51: 0x7b8855f1a406 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 52: 0x7b8855f19e59 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::>, false, false, false>> - 53: 0x7b8853f68653 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once - 54: 0x7b8854c1aa49 - >::try_mark_previous_green:: - 55: 0x7b8854c1a9bd - >::try_mark_previous_green:: - 56: 0x7b8855675fe2 - >::try_mark_green:: - 57: 0x7b8855675d6d - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::ensure_must_run::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt> - 58: 0x7b8855cd0199 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace - 59: 0x7b8854e3dd32 - rustc_hir_analysis[98c22e4b0d6d5cdc]::check_crate - 60: 0x7b88555fbef4 - rustc_interface[9462fce10cf7ee10]::passes::run_required_analyses - 61: 0x7b8855a9305e - rustc_interface[9462fce10cf7ee10]::passes::analysis - 62: 0x7b8855a9302d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 63: 0x7b8855f1c8fd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 64: 0x7b8855f1c221 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace - 65: 0x7b8855ac20be - rustc_interface[9462fce10cf7ee10]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} - 66: 0x7b8855d188c4 - rustc_interface[9462fce10cf7ee10]::interface::run_compiler::<(), rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}>::{closure#1} - 67: 0x7b8855b03c68 - std[cfbc79774844d935]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> - 68: 0x7b8855b040b4 - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[8f5efdd3e17dd637]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} - 69: 0x7b8855b054b7 - std::sys::pal::unix::thread::Thread::new::thread_start::h924abcfa8ac99dff - 70: 0x7b884f894ac3 - start_thread - at ./nptl/pthread_create.c:442:8 - 71: 0x7b884f926850 - __GI___clone3 - at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0 - 72: 0x0 - - - -rustc version: 1.88.0-nightly (077cedc2a 2025-04-19) -platform: x86_64-unknown-linux-gnu - -query stack during panic: -#0 [typeck] type-checking `header::map::::iter` -#1 [mir_borrowck] borrow-checking `header::map::::iter` -#2 [type_of_opaque] computing type of opaque `header::map::::iter::{opaque#0}` -#3 [type_of] computing type of `header::map::::iter::{opaque#0}` -#4 [effective_visibilities] checking effective visibilities -#5 [analysis] running analysis passes on this crate -end of query stack diff --git a/rustc-ice-2025-05-23T09_23_44-3083388.txt b/rustc-ice-2025-05-23T09_23_44-3083388.txt deleted file mode 100644 index 7c3169466..000000000 --- a/rustc-ice-2025-05-23T09_23_44-3083388.txt +++ /dev/null @@ -1,91 +0,0 @@ -thread 'rustc' panicked at compiler/rustc_middle/src/ty/assoc.rs:43:25: -name of non-Rpitit assoc item -stack backtrace: - 0: 0x78081b4c4c65 - std::backtrace::Backtrace::create::hb98733a2d07da098 - 1: 0x7808198b34a5 - std::backtrace::Backtrace::force_capture::h7453675e01572610 - 2: 0x780818949321 - std[cfbc79774844d935]::panicking::update_hook::>::{closure#0} - 3: 0x7808198cce03 - std::panicking::rust_panic_with_hook::hdfd38210fc20e43b - 4: 0x7808198ccafa - std::panicking::begin_panic_handler::{{closure}}::hc72899d25392f7bc - 5: 0x7808198c9279 - std::sys::backtrace::__rust_end_short_backtrace::hd11e673a53554045 - 6: 0x7808198cc7bd - __rustc[6dc022cbd14ae54d]::rust_begin_unwind - 7: 0x7808162870c0 - core::panicking::panic_fmt::h88a862c704395f75 - 8: 0x78081763b3cb - core::option::expect_failed::h23bc92f892e77f28 - 9: 0x78081b9191b3 - ::ident.cold - 10: 0x780818a98901 - as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::try_fold::flatten::>, (), core[8f5efdd3e17dd637]::ops::control_flow::ControlFlow, core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator::find::check::probe_traits_that_match_assoc_ty::{closure#0}>::{closure#0}>::{closure#0} - 11: 0x780818ac88c3 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::next - 12: 0x780818a88077 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::collect::> - 13: 0x78081ad7dbb6 - ::lower_assoc_path_shared::{closure#0} - 14: 0x78081ad79000 - ::lower_assoc_path_ty - 15: 0x78081a129c4e - ::check_struct_path - 16: 0x78081ad51396 - ::check_expr_with_expectation_and_args - 17: 0x78081a123053 - ::check_overloaded_binop - 18: 0x78081ad4fdf7 - ::check_expr_with_expectation_and_args - 19: 0x78081a5f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn - 20: 0x78081a861877 - ::check_expr_closure - 21: 0x78081ad52f4e - ::check_expr_with_expectation_and_args - 22: 0x78081a107e52 - ::check_argument_types - 23: 0x78081ad4f4d4 - ::check_expr_with_expectation_and_args - 24: 0x78081ad434b7 - ::check_expr_block - 25: 0x78081ad4e1bf - ::check_expr_with_expectation_and_args - 26: 0x78081a5f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn - 27: 0x78081a5ddd9a - rustc_hir_typeck[461b12d63f26389c]::typeck_with_inspect::{closure#0} - 28: 0x78081a5dcab6 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 29: 0x78081a2430f3 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 30: 0x78081a24651e - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>> - 31: 0x78081b44bcf3 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once - 32: 0x78081a01aa49 - >::try_mark_previous_green:: - 33: 0x78081a01a9bd - >::try_mark_previous_green:: - 34: 0x78081a01a9bd - >::try_mark_previous_green:: - 35: 0x78081a01a9bd - >::try_mark_previous_green:: - 36: 0x78081a01a9bd - >::try_mark_previous_green:: - 37: 0x78081a2423bb - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 38: 0x78081a26d84b - rustc_query_impl[8687e3a7a5e012fc]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace - 39: 0x78081b2c15eb - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::opaque::find_opaque_ty_constraints_for_rpit - 40: 0x78081b2c1374 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of_opaque - 41: 0x78081b2c122d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 42: 0x78081a2708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 43: 0x78081b33d203 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of_opaque::get_query_incr::__rust_end_short_backtrace - 44: 0x78081a2cb892 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of - 45: 0x78081a2c9f78 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 46: 0x78081a2708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 47: 0x78081a26c77d - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of::get_query_incr::__rust_end_short_backtrace - 48: 0x78081a4661c2 - ::ty - 49: 0x78081aa14bc0 - rustc_privacy[c658d5f4663e8f35]::effective_visibilities - 50: 0x78081aa144e3 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 51: 0x78081b31a406 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 52: 0x78081b319e59 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::>, false, false, false>> - 53: 0x780819368653 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once - 54: 0x78081a01aa49 - >::try_mark_previous_green:: - 55: 0x78081a01a9bd - >::try_mark_previous_green:: - 56: 0x78081aa75fe2 - >::try_mark_green:: - 57: 0x78081aa75d6d - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::ensure_must_run::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt> - 58: 0x78081b0d0199 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace - 59: 0x78081a23dd32 - rustc_hir_analysis[98c22e4b0d6d5cdc]::check_crate - 60: 0x78081a9fbef4 - rustc_interface[9462fce10cf7ee10]::passes::run_required_analyses - 61: 0x78081ae9305e - rustc_interface[9462fce10cf7ee10]::passes::analysis - 62: 0x78081ae9302d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 63: 0x78081b31c8fd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 64: 0x78081b31c221 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace - 65: 0x78081aec20be - rustc_interface[9462fce10cf7ee10]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} - 66: 0x78081b1188c4 - rustc_interface[9462fce10cf7ee10]::interface::run_compiler::<(), rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}>::{closure#1} - 67: 0x78081af03c68 - std[cfbc79774844d935]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> - 68: 0x78081af040b4 - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[8f5efdd3e17dd637]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} - 69: 0x78081af054b7 - std::sys::pal::unix::thread::Thread::new::thread_start::h924abcfa8ac99dff - 70: 0x780814c94ac3 - start_thread - at ./nptl/pthread_create.c:442:8 - 71: 0x780814d26850 - __GI___clone3 - at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0 - 72: 0x0 - - - -rustc version: 1.88.0-nightly (077cedc2a 2025-04-19) -platform: x86_64-unknown-linux-gnu - -query stack during panic: -#0 [typeck] type-checking `header::map::::iter` -#1 [mir_borrowck] borrow-checking `header::map::::iter` -#2 [type_of_opaque] computing type of opaque `header::map::::iter::{opaque#0}` -#3 [type_of] computing type of `header::map::::iter::{opaque#0}` -#4 [effective_visibilities] checking effective visibilities -#5 [analysis] running analysis passes on this crate -end of query stack diff --git a/rustc-ice-2025-05-23T09_23_46-3083548.txt b/rustc-ice-2025-05-23T09_23_46-3083548.txt deleted file mode 100644 index 539fcc10a..000000000 --- a/rustc-ice-2025-05-23T09_23_46-3083548.txt +++ /dev/null @@ -1,91 +0,0 @@ -thread 'rustc' panicked at compiler/rustc_middle/src/ty/assoc.rs:43:25: -name of non-Rpitit assoc item -stack backtrace: - 0: 0x7940a12c4c65 - std::backtrace::Backtrace::create::hb98733a2d07da098 - 1: 0x79409f6b34a5 - std::backtrace::Backtrace::force_capture::h7453675e01572610 - 2: 0x79409e749321 - std[cfbc79774844d935]::panicking::update_hook::>::{closure#0} - 3: 0x79409f6cce03 - std::panicking::rust_panic_with_hook::hdfd38210fc20e43b - 4: 0x79409f6ccafa - std::panicking::begin_panic_handler::{{closure}}::hc72899d25392f7bc - 5: 0x79409f6c9279 - std::sys::backtrace::__rust_end_short_backtrace::hd11e673a53554045 - 6: 0x79409f6cc7bd - __rustc[6dc022cbd14ae54d]::rust_begin_unwind - 7: 0x79409c0870c0 - core::panicking::panic_fmt::h88a862c704395f75 - 8: 0x79409d43b3cb - core::option::expect_failed::h23bc92f892e77f28 - 9: 0x7940a17191b3 - ::ident.cold - 10: 0x79409e898901 - as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::try_fold::flatten::>, (), core[8f5efdd3e17dd637]::ops::control_flow::ControlFlow, core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator::find::check::probe_traits_that_match_assoc_ty::{closure#0}>::{closure#0}>::{closure#0} - 11: 0x79409e8c88c3 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::next - 12: 0x79409e888077 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::collect::> - 13: 0x7940a0b7dbb6 - ::lower_assoc_path_shared::{closure#0} - 14: 0x7940a0b79000 - ::lower_assoc_path_ty - 15: 0x79409ff29c4e - ::check_struct_path - 16: 0x7940a0b51396 - ::check_expr_with_expectation_and_args - 17: 0x79409ff23053 - ::check_overloaded_binop - 18: 0x7940a0b4fdf7 - ::check_expr_with_expectation_and_args - 19: 0x7940a03f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn - 20: 0x7940a0661877 - ::check_expr_closure - 21: 0x7940a0b52f4e - ::check_expr_with_expectation_and_args - 22: 0x79409ff07e52 - ::check_argument_types - 23: 0x7940a0b4f4d4 - ::check_expr_with_expectation_and_args - 24: 0x7940a0b434b7 - ::check_expr_block - 25: 0x7940a0b4e1bf - ::check_expr_with_expectation_and_args - 26: 0x7940a03f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn - 27: 0x7940a03ddd9a - rustc_hir_typeck[461b12d63f26389c]::typeck_with_inspect::{closure#0} - 28: 0x7940a03dcab6 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 29: 0x7940a00430f3 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 30: 0x7940a004651e - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>> - 31: 0x7940a124bcf3 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once - 32: 0x79409fe1aa49 - >::try_mark_previous_green:: - 33: 0x79409fe1a9bd - >::try_mark_previous_green:: - 34: 0x79409fe1a9bd - >::try_mark_previous_green:: - 35: 0x79409fe1a9bd - >::try_mark_previous_green:: - 36: 0x79409fe1a9bd - >::try_mark_previous_green:: - 37: 0x7940a00423bb - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 38: 0x7940a006d84b - rustc_query_impl[8687e3a7a5e012fc]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace - 39: 0x7940a10c15eb - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::opaque::find_opaque_ty_constraints_for_rpit - 40: 0x7940a10c1374 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of_opaque - 41: 0x7940a10c122d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 42: 0x7940a00708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 43: 0x7940a113d203 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of_opaque::get_query_incr::__rust_end_short_backtrace - 44: 0x7940a00cb892 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of - 45: 0x7940a00c9f78 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 46: 0x7940a00708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 47: 0x7940a006c77d - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of::get_query_incr::__rust_end_short_backtrace - 48: 0x7940a02661c2 - ::ty - 49: 0x7940a0814bc0 - rustc_privacy[c658d5f4663e8f35]::effective_visibilities - 50: 0x7940a08144e3 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 51: 0x7940a111a406 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 52: 0x7940a1119e59 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::>, false, false, false>> - 53: 0x79409f168653 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once - 54: 0x79409fe1aa49 - >::try_mark_previous_green:: - 55: 0x79409fe1a9bd - >::try_mark_previous_green:: - 56: 0x7940a0875fe2 - >::try_mark_green:: - 57: 0x7940a0875d6d - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::ensure_must_run::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt> - 58: 0x7940a0ed0199 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace - 59: 0x7940a003dd32 - rustc_hir_analysis[98c22e4b0d6d5cdc]::check_crate - 60: 0x7940a07fbef4 - rustc_interface[9462fce10cf7ee10]::passes::run_required_analyses - 61: 0x7940a0c9305e - rustc_interface[9462fce10cf7ee10]::passes::analysis - 62: 0x7940a0c9302d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 63: 0x7940a111c8fd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 64: 0x7940a111c221 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace - 65: 0x7940a0cc20be - rustc_interface[9462fce10cf7ee10]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} - 66: 0x7940a0f188c4 - rustc_interface[9462fce10cf7ee10]::interface::run_compiler::<(), rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}>::{closure#1} - 67: 0x7940a0d03c68 - std[cfbc79774844d935]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> - 68: 0x7940a0d040b4 - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[8f5efdd3e17dd637]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} - 69: 0x7940a0d054b7 - std::sys::pal::unix::thread::Thread::new::thread_start::h924abcfa8ac99dff - 70: 0x79409aa94ac3 - start_thread - at ./nptl/pthread_create.c:442:8 - 71: 0x79409ab26850 - __GI___clone3 - at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0 - 72: 0x0 - - - -rustc version: 1.88.0-nightly (077cedc2a 2025-04-19) -platform: x86_64-unknown-linux-gnu - -query stack during panic: -#0 [typeck] type-checking `header::map::::iter` -#1 [mir_borrowck] borrow-checking `header::map::::iter` -#2 [type_of_opaque] computing type of opaque `header::map::::iter::{opaque#0}` -#3 [type_of] computing type of `header::map::::iter::{opaque#0}` -#4 [effective_visibilities] checking effective visibilities -#5 [analysis] running analysis passes on this crate -end of query stack diff --git a/rustc-ice-2025-05-23T09_23_46-3083549.txt b/rustc-ice-2025-05-23T09_23_46-3083549.txt deleted file mode 100644 index 6c103eb3a..000000000 --- a/rustc-ice-2025-05-23T09_23_46-3083549.txt +++ /dev/null @@ -1,91 +0,0 @@ -thread 'rustc' panicked at compiler/rustc_middle/src/ty/assoc.rs:43:25: -name of non-Rpitit assoc item -stack backtrace: - 0: 0x7a4d0a4c4c65 - std::backtrace::Backtrace::create::hb98733a2d07da098 - 1: 0x7a4d088b34a5 - std::backtrace::Backtrace::force_capture::h7453675e01572610 - 2: 0x7a4d07949321 - std[cfbc79774844d935]::panicking::update_hook::>::{closure#0} - 3: 0x7a4d088cce03 - std::panicking::rust_panic_with_hook::hdfd38210fc20e43b - 4: 0x7a4d088ccafa - std::panicking::begin_panic_handler::{{closure}}::hc72899d25392f7bc - 5: 0x7a4d088c9279 - std::sys::backtrace::__rust_end_short_backtrace::hd11e673a53554045 - 6: 0x7a4d088cc7bd - __rustc[6dc022cbd14ae54d]::rust_begin_unwind - 7: 0x7a4d052870c0 - core::panicking::panic_fmt::h88a862c704395f75 - 8: 0x7a4d0663b3cb - core::option::expect_failed::h23bc92f892e77f28 - 9: 0x7a4d0a9191b3 - ::ident.cold - 10: 0x7a4d07a98901 - as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::try_fold::flatten::>, (), core[8f5efdd3e17dd637]::ops::control_flow::ControlFlow, core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator::find::check::probe_traits_that_match_assoc_ty::{closure#0}>::{closure#0}>::{closure#0} - 11: 0x7a4d07ac88c3 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::next - 12: 0x7a4d07a88077 - , core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>>, core[8f5efdd3e17dd637]::iter::adapters::copied::Copied>, ::all_traits::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#0}>, ::probe_traits_that_match_assoc_ty::{closure#1}> as core[8f5efdd3e17dd637]::iter::traits::iterator::Iterator>::collect::> - 13: 0x7a4d09d7dbb6 - ::lower_assoc_path_shared::{closure#0} - 14: 0x7a4d09d79000 - ::lower_assoc_path_ty - 15: 0x7a4d09129c4e - ::check_struct_path - 16: 0x7a4d09d51396 - ::check_expr_with_expectation_and_args - 17: 0x7a4d09123053 - ::check_overloaded_binop - 18: 0x7a4d09d4fdf7 - ::check_expr_with_expectation_and_args - 19: 0x7a4d095f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn - 20: 0x7a4d09861877 - ::check_expr_closure - 21: 0x7a4d09d52f4e - ::check_expr_with_expectation_and_args - 22: 0x7a4d09107e52 - ::check_argument_types - 23: 0x7a4d09d4f4d4 - ::check_expr_with_expectation_and_args - 24: 0x7a4d09d434b7 - ::check_expr_block - 25: 0x7a4d09d4e1bf - ::check_expr_with_expectation_and_args - 26: 0x7a4d095f0884 - rustc_hir_typeck[461b12d63f26389c]::check::check_fn - 27: 0x7a4d095ddd9a - rustc_hir_typeck[461b12d63f26389c]::typeck_with_inspect::{closure#0} - 28: 0x7a4d095dcab6 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 29: 0x7a4d092430f3 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 30: 0x7a4d0924651e - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>> - 31: 0x7a4d0a44bcf3 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once - 32: 0x7a4d0901aa49 - >::try_mark_previous_green:: - 33: 0x7a4d0901a9bd - >::try_mark_previous_green:: - 34: 0x7a4d0901a9bd - >::try_mark_previous_green:: - 35: 0x7a4d0901a9bd - >::try_mark_previous_green:: - 36: 0x7a4d0901a9bd - >::try_mark_previous_green:: - 37: 0x7a4d092423bb - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 38: 0x7a4d0926d84b - rustc_query_impl[8687e3a7a5e012fc]::query_impl::mir_borrowck::get_query_incr::__rust_end_short_backtrace - 39: 0x7a4d0a2c15eb - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::opaque::find_opaque_ty_constraints_for_rpit - 40: 0x7a4d0a2c1374 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of_opaque - 41: 0x7a4d0a2c122d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 42: 0x7a4d092708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 43: 0x7a4d0a33d203 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of_opaque::get_query_incr::__rust_end_short_backtrace - 44: 0x7a4d092cb892 - rustc_hir_analysis[98c22e4b0d6d5cdc]::collect::type_of::type_of - 45: 0x7a4d092c9f78 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 46: 0x7a4d092708cd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 47: 0x7a4d0926c77d - rustc_query_impl[8687e3a7a5e012fc]::query_impl::type_of::get_query_incr::__rust_end_short_backtrace - 48: 0x7a4d094661c2 - ::ty - 49: 0x7a4d09a14bc0 - rustc_privacy[c658d5f4663e8f35]::effective_visibilities - 50: 0x7a4d09a144e3 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 51: 0x7a4d0a31a406 - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 52: 0x7a4d0a319e59 - rustc_query_impl[8687e3a7a5e012fc]::plumbing::force_from_dep_node::>, false, false, false>> - 53: 0x7a4d08368653 - ::{closure#0} as core[8f5efdd3e17dd637]::ops::function::FnOnce<(rustc_middle[dbe9dbab0f97c09d]::ty::context::TyCtxt, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::dep_node::DepNode, rustc_query_system[aee8ed8ba3f3d4a4]::dep_graph::serialized::SerializedDepNodeIndex)>>::call_once - 54: 0x7a4d0901aa49 - >::try_mark_previous_green:: - 55: 0x7a4d0901a9bd - >::try_mark_previous_green:: - 56: 0x7a4d09a75fe2 - >::try_mark_green:: - 57: 0x7a4d09a75d6d - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::ensure_must_run::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt> - 58: 0x7a4d0a0d0199 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::check_mod_type_wf::get_query_incr::__rust_end_short_backtrace - 59: 0x7a4d0923dd32 - rustc_hir_analysis[98c22e4b0d6d5cdc]::check_crate - 60: 0x7a4d099fbef4 - rustc_interface[9462fce10cf7ee10]::passes::run_required_analyses - 61: 0x7a4d09e9305e - rustc_interface[9462fce10cf7ee10]::passes::analysis - 62: 0x7a4d09e9302d - rustc_query_impl[8687e3a7a5e012fc]::plumbing::__rust_begin_short_backtrace::> - 63: 0x7a4d0a31c8fd - rustc_query_system[aee8ed8ba3f3d4a4]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[8687e3a7a5e012fc]::plumbing::QueryCtxt, true> - 64: 0x7a4d0a31c221 - rustc_query_impl[8687e3a7a5e012fc]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace - 65: 0x7a4d09ec20be - rustc_interface[9462fce10cf7ee10]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} - 66: 0x7a4d0a1188c4 - rustc_interface[9462fce10cf7ee10]::interface::run_compiler::<(), rustc_driver_impl[4168e4092cb5e4c5]::run_compiler::{closure#0}>::{closure#1} - 67: 0x7a4d09f03c68 - std[cfbc79774844d935]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> - 68: 0x7a4d09f040b4 - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[8f5efdd3e17dd637]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} - 69: 0x7a4d09f054b7 - std::sys::pal::unix::thread::Thread::new::thread_start::h924abcfa8ac99dff - 70: 0x7a4d03c94ac3 - start_thread - at ./nptl/pthread_create.c:442:8 - 71: 0x7a4d03d26850 - __GI___clone3 - at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81:0 - 72: 0x0 - - - -rustc version: 1.88.0-nightly (077cedc2a 2025-04-19) -platform: x86_64-unknown-linux-gnu - -query stack during panic: -#0 [typeck] type-checking `header::map::::iter` -#1 [mir_borrowck] borrow-checking `header::map::::iter` -#2 [type_of_opaque] computing type of opaque `header::map::::iter::{opaque#0}` -#3 [type_of] computing type of `header::map::::iter::{opaque#0}` -#4 [effective_visibilities] checking effective visibilities -#5 [analysis] running analysis passes on this crate -end of query stack From bbc53c874291a1d137bbc536a76b34ab5b446980 Mon Sep 17 00:00:00 2001 From: kanarus Date: Sat, 24 May 2025 07:31:26 +0900 Subject: [PATCH 3/3] fix pick --- ohkami/src/response/headers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohkami/src/response/headers.rs b/ohkami/src/response/headers.rs index 834597354..6e872dbc4 100644 --- a/ohkami/src/response/headers.rs +++ b/ohkami/src/response/headers.rs @@ -479,7 +479,7 @@ impl Headers { /// SAFETY: `buf` has remaining capacity of at least `self.size` pub(crate) unsafe fn write_unchecked_to(&self, buf: &mut Vec) { for (i, v) in self.standard.iter() { - let h = std::mem::transmute::<_, Header>(*i as u8); { + let h = std::mem::transmute::<_, Header>(i as u8); { crate::push_unchecked!(buf <- h.as_bytes()); crate::push_unchecked!(buf <- b": "); crate::push_unchecked!(buf <- v.as_bytes());