-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-Z print-type-sizes: internal error: entered unreachable code: FieldsShape::offset: Primitive
s have no fields'
#86528
Comments
Primitive
s have no fields'Primitive
s have no fields'
rust/compiler/rustc_target/src/abi/mod.rs Lines 761 to 765 in 406d4a9
|
"Minimised" to a reproducer involving 3 crates, 2 of which are empty: repo containing repro. The crates are laid out like so:
root and my_macro are both empty, dep contains the following code: use std::str::FromStr;
pub fn foo() {
f64::from_str("");
} Using that repro I used cargo-bisect to find the offending commit: bisected with cargo-bisect-rustc v0.6.0Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2021-03-28 --end=2021-06-27 --script ./test.sh |
It's worth adding that this was triggered by syn, so it will probably occur for all crates that depend on a proc macro that depends on syn (i.e. basically everything). |
Repros on godbolt, so the 2 empty crates don't seem needed: https://rust.godbolt.org/z/KEW4Koz7a Agreed, @jyn514, I'm also completely surprised that the Only thing I could think of would be that somehow it propagated a different type that somehow still compiled, but I've never seen an example of that. And the layout stuff is using Unless maybe it's another instance of something getting confused by the default parameter on FromResidual somehow? (Not sure how it could be, but rust-lang/rust-analyzer#8692 came to mind.) Full backtrace from a build with debug info, in case it helps somebodythread 'rustc' panicked at 'internal error: entered unreachable code: FieldsShape::offset: `Primitive`s have no fields', compiler\rustc_target\src\abi\mod.rs:764:17 stack backtrace: 0: 0x7ffa13ee5ef6 - std::backtrace_rs::backtrace::dbghelp::trace at C:\src\rust\library\backtrace\src\backtrace\dbghelp.rs:98 1: 0x7ffa13ee5ef6 - std::backtrace_rs::backtrace::trace_unsynchronized at C:\src\rust\library\backtrace\src\backtrace\mod.rs:66 2: 0x7ffa13ef37d0 - std::sys_common::backtrace::_print_fmt at C:\src\rust\library\std\src\sys_common\backtrace.rs:67 3: 0x7ffa13ef37d0 - std::sys_common::backtrace::_print::{{impl}}::fmt at C:\src\rust\library\std\src\sys_common\backtrace.rs:46 4: 0x7ffa13f128ab - core::fmt::write at C:\src\rust\library\core\src\fmt\mod.rs:1111 5: 0x7ffa13ef0e18 - std::io::Write::write_fmt at C:\src\rust\library\std\src\io\mod.rs:1640 6: 0x7ffa13ef49e4 - std::sys_common::backtrace::_print at C:\src\rust\library\std\src\sys_common\backtrace.rs:49 7: 0x7ffa13ef49e4 - std::sys_common::backtrace::print at C:\src\rust\library\std\src\sys_common\backtrace.rs:36 8: 0x7ffa13ef49e4 - std::panicking::default_hook::{{closure}} at C:\src\rust\library\std\src\panicking.rs:208 9: 0x7ffa13ef4660 - std::panicking::default_hook at C:\src\rust\library\std\src\panicking.rs:225 10: 0x7ff9d2f96690 - alloc::boxed::{{impl}}::call at C:\src\rust\library\alloc\src\boxed.rs:1589 11: 0x7ff9d2f96690 - rustc_driver::report_ice at C:\src\rust\compiler\rustc_driver\src\lib.rs:1182 12: 0x7ffa13ef51ef - std::panicking::rust_panic_with_hook at C:\src\rust\library\std\src\panicking.rs:626 13: 0x7ffa13ef4da1 - std::panicking::begin_panic_handler::{{closure}} at C:\src\rust\library\std\src\panicking.rs:519 14: 0x7ffa13ef3a6f - std::sys_common::backtrace::__rust_end_short_backtrace at C:\src\rust\library\std\src\sys_common\backtrace.rs:141 15: 0x7ffa13ef4cf2 - std::panicking::begin_panic_handler at C:\src\rust\library\std\src\panicking.rs:515 16: 0x7ffa13f39a30 - core::panicking::panic_fmt at C:\src\rust\library\core\src\panicking.rs:92 17: 0x7ff9d4a4525a - rustc_target::abi::FieldsShape::offset at C:\src\rust\compiler\rustc_target\src\abi\mod.rs:764 18: 0x7ff9d47ff58a - rustc_middle::ty::layout::{{impl}}::record_layout_for_printing_outlined::{{closure}}::{{closure}} at C:\src\rust\compiler\rustc_middle\src\ty\layout.rs:1774 19: 0x7ff9d47ff58a - core::iter::adapters::map::map_fold::{{closure}} at C:\src\rust\library\core\src\iter\adapters\map.rs:82 20: 0x7ff9d47ff58a - core::iter::adapters::enumerate::{{impl}}::fold::enumerate::{{closure}} at C:\src\rust\library\core\src\iter\adapters\enumerate.rs:104 21: 0x7ff9d47ff58a - core::iter::traits::iterator::Iterator::fold at C:\src\rust\library\core\src\iter\traits\iterator.rs:2173 22: 0x7ff9d47ff58a - core::iter::adapters::enumerate::{{impl}}::fold at C:\src\rust\library\core\src\iter\adapters\enumerate.rs:110 23: 0x7ff9d47ff58a - core::iter::adapters::map::{{impl}}::fold>,closure-0,tuple<>,closure-0> at C:\src\rust\library\core\src\iter\adapters\map.rs:122 24: 0x7ff9d4781571 - core::iter::traits::iterator::Iterator::for_each at C:\src\rust\library\core\src\iter\traits\iterator.rs:736 25: 0x7ff9d4781571 - alloc::vec::spec_extend::{{impl}}::spec_extend at C:\src\rust\library\alloc\src\vec\spec_extend.rs:97 26: 0x7ff9d4781571 - alloc::vec::spec_from_iter_nested::{{impl}}::from_iter at C:\src\rust\library\alloc\src\vec\spec_from_iter_nested.rs:56 27: 0x7ff9d4781571 - alloc::vec::spec_from_iter::{{impl}}::from_iter>, closure-0>> at C:\src\rust\library\alloc\src\vec\spec_from_iter.rs:33 28: 0x7ff9d48d751f - alloc::vec::{{impl}}::from_iter at C:\src\rust\library\alloc\src\vec\mod.rs:2461 29: 0x7ff9d48d751f - core::iter::traits::iterator::Iterator::collect at C:\src\rust\library\core\src\iter\traits\iterator.rs:1748 30: 0x7ff9d48d751f - rustc_middle::ty::layout::{{impl}}::record_layout_for_printing_outlined::{{closure}} at C:\src\rust\compiler\rustc_middle\src\ty\layout.rs:1732 31: 0x7ff9d48d751f - rustc_middle::ty::layout::LayoutCx::record_layout_for_printing_outlined at C:\src\rust\compiler\rustc_middle\src\ty\layout.rs:1808 32: 0x7ff9d48d751f - rustc_middle::ty::layout::LayoutCx::record_layout_for_printing at C:\src\rust\compiler\rustc_middle\src\ty\layout.rs:1717 33: 0x7ff9d48d751f - rustc_middle::ty::layout::{{impl}}::layout_of at C:\src\rust\compiler\rustc_middle\src\ty\layout.rs:2051 34: 0x7ff9d480246c - rustc_middle::ty::layout::{{impl}}::layout_raw_uncached::{{closure}}::{{closure}} at C:\src\rust\compiler\rustc_middle\src\ty\layout.rs:804 35: 0x7ff9d480246c - core::iter::adapters::map::map_try_fold::{{closure}} at C:\src\rust\library\core\src\iter\adapters\map.rs:89 36: 0x7ff9d480246c - core::iter::traits::iterator::Iterator::try_fold at C:\src\rust\library\core\src\iter\traits\iterator.rs:1997 37: 0x7ff9d480246c - core::iter::adapters::map::{{impl}}::try_fold, rustc_middle::ty::layout::LayoutError>,core::slice::iter::Iter,closure-0,tuple<>,closure-0,core::ops::co at C:\src\rust\library\core\src\iter\adapters\map.rs:115 38: 0x7ff9d48bc004 - core::iter::adapters::{{impl}}::try_fold at C:\src\rust\library\core\src\iter\adapters\mod.rs:174 39: 0x7ff9d48bc004 - core::iter::traits::iterator::Iterator::find at C:\src\rust\library\core\src\iter\traits\iterator.rs:2385 40: 0x7ff9d48bc004 - core::iter::adapters::{{impl}}::next, closure-0>,rustc_target::abi::TyAndLayout,rustc_middle::ty::layout::LayoutError> at C:\src\rust\library\core\src\iter\adapters\mod.rs:156 41: 0x7ff9d4781826 - alloc::vec::spec_from_iter_nested::{{impl}}::from_iter at C:\src\rust\library\alloc\src\vec\spec_from_iter_nested.rs:52 42: 0x7ff9d4781826 - alloc::vec::spec_from_iter::{{impl}}::from_iter,core::iter::adapters::ResultShunt, closure-0>, rustc_middle::ty::layo at C:\src\rust\library\alloc\src\vec\spec_from_iter.rs:33 43: 0x7ff9d48c0417 - alloc::vec::{{impl}}::from_iter at C:\src\rust\library\alloc\src\vec\mod.rs:2461 44: 0x7ff9d48c0417 - core::iter::traits::iterator::Iterator::collect at C:\src\rust\library\core\src\iter\traits\iterator.rs:1748 45: 0x7ff9d48c0417 - core::result::{{impl}}::from_iter::{{closure}} at C:\src\rust\library\core\src\result.rs:1625 46: 0x7ff9d48c0417 - core::iter::adapters::process_results, closure-0>,rustc_target::abi::TyAndLayout,rustc_middle::ty::layout::LayoutError,closure-0,alloc::vec::Vec, alloc::alloc::Global>, rustc_middle::ty::layout::LayoutError>,core::slice::iter::Iter, at C:\src\rust\library\core\src\iter\adapters\map.rs:115 53: 0x7ff9d48bc055 - core::iter::adapters::{{impl}}::try_fold at C:\src\rust\library\core\src\iter\adapters\mod.rs:174 54: 0x7ff9d48bc055 - core::iter::traits::iterator::Iterator::find at C:\src\rust\library\core\src\iter\traits\iterator.rs:2385 55: 0x7ff9d48bc055 - core::iter::adapters::{{impl}}::next, closure-5>,alloc::vec::Vec, alloc::alloc::Global>,rustc_middle::ty::layout::L at C:\src\rust\library\core\src\iter\adapters\mod.rs:156 56: 0x7ff9d478597f - alloc::vec::Vec::extend_desugared at C:\src\rust\library\alloc\src\vec\mod.rs:2558 57: 0x7ff9d478597f - alloc::vec::spec_extend::{{impl}}::spec_extend at C:\src\rust\library\alloc\src\vec\spec_extend.rs:84 58: 0x7ff9d478597f - alloc::vec::spec_from_iter_nested::{{impl}}::from_iter at C:\src\rust\library\alloc\src\vec\spec_from_iter_nested.rs:66 59: 0x7ff9d478597f - alloc::vec::spec_from_iter::{{impl}}::from_iter, alloc::alloc::Global>,core::iter::adapters::ResultShunt,closure-0> at C:\src\rust\compiler\rustc_data_structures\src\stack.rs:16 82: 0x7ff9d39eaf59 - rustc_query_impl::plumbing::{{impl}}::start_query::{{closure}}::{{closure}} at C:\src\rust\compiler\rustc_query_impl\src\plumbing.rs:133 83: 0x7ff9d39eaf59 - rustc_middle::ty::context::tls::enter_context::{{closure}} at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1744 84: 0x7ff9d39eaf59 - rustc_middle::ty::context::tls::set_tlv at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1728 85: 0x7ff9d39eaf59 - rustc_middle::ty::context::tls::enter_context at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1744 86: 0x7ff9d39eaf59 - rustc_query_impl::plumbing::{{impl}}::start_query::{{closure}} at C:\src\rust\compiler\rustc_query_impl\src\plumbing.rs:132 87: 0x7ff9d39eaf59 - rustc_middle::ty::context::tls::with_related_context::{{closure}} at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1788 88: 0x7ff9d39eaf59 - rustc_middle::ty::context::tls::with_context::{{closure}} at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1772 89: 0x7ff9d39eaf59 - rustc_middle::ty::context::tls::with_context_opt at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1761 90: 0x7ff9d39eaf59 - rustc_middle::ty::context::tls::with_context at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1772 91: 0x7ff9d39eaf59 - rustc_middle::ty::context::tls::with_related_context at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1785 92: 0x7ff9d39eaf59 - rustc_query_impl::plumbing::{{impl}}::start_query at C:\src\rust\compiler\rustc_query_impl\src\plumbing.rs:121 93: 0x7ff9d39eaf59 - rustc_query_system::query::plumbing::try_execute_query at C:\src\rust\compiler\rustc_query_system\src\query\plumbing.rs:461 94: 0x7ff9d39eaf59 - rustc_query_system::query::plumbing::get_query_impl, core::result::Result at C:\src\rust\compiler\rustc_query_system\src\query\plumbing.rs:828 96: 0x7ff9d38c7bbe - rustc_query_impl::{{impl}}::layout_raw at C:\src\rust\compiler\rustc_query_impl\src\plumbing.rs:552 97: 0x7ff9d48d71dc - rustc_middle::ty::query::TyCtxtAt::layout_raw at C:\src\rust\compiler\rustc_middle\src\ty\query\mod.rs:206 98: 0x7ff9d48d71dc - rustc_middle::ty::context::TyCtxt::layout_raw at C:\src\rust\compiler\rustc_middle\src\ty\query\mod.rs:187 99: 0x7ff9d48d71dc - rustc_middle::ty::layout::{{impl}}::layout_of at C:\src\rust\compiler\rustc_middle\src\ty\layout.rs:2042 100: 0x7ff9d30dab68 - rustc_middle::ty::context::TyCtxt::layout_of at C:\src\rust\compiler\rustc_middle\src\ty\layout.rs:2092 101: 0x7ff9d30dab68 - rustc_codegen_llvm::context::{{impl}}::spanned_layout_of at C:\src\rust\compiler\rustc_codegen_llvm\src\context.rs:797 102: 0x7ff9d30dab68 - rustc_codegen_ssa::mir::analyze::non_ssa_locals::{{closure}} at C:\src\rust\compiler\rustc_codegen_ssa\src\mir\analyze.rs:25 103: 0x7ff9d30dab68 - core::iter::adapters::map::map_fold::{{closure}} at C:\src\rust\library\core\src\iter\adapters\map.rs:82 104: 0x7ff9d30dab68 - core::iter::traits::iterator::Iterator::fold at C:\src\rust\library\core\src\iter\traits\iterator.rs:2173 105: 0x7ff9d30dab68 - core::iter::adapters::map::{{impl}}::fold,closure-0,tuple<>,closure-0> at C:\src\rust\library\core\src\iter\adapters\map.rs:122 106: 0x7ff9d31756a2 - core::iter::traits::iterator::Iterator::for_each at C:\src\rust\library\core\src\iter\traits\iterator.rs:736 107: 0x7ff9d31756a2 - alloc::vec::spec_extend::{{impl}}::spec_extend at C:\src\rust\library\alloc\src\vec\spec_extend.rs:40 108: 0x7ff9d31756a2 - alloc::vec::spec_from_iter_nested::{{impl}}::from_iter at C:\src\rust\library\alloc\src\vec\spec_from_iter_nested.rs:56 109: 0x7ff9d31756a2 - alloc::vec::spec_from_iter::{{impl}}::from_iter, closure-0>> at C:\src\rust\library\alloc\src\vec\spec_from_iter.rs:33 110: 0x7ff9d30fda4f - alloc::vec::{{impl}}::from_iter at C:\src\rust\library\alloc\src\vec\mod.rs:2461 111: 0x7ff9d30fda4f - rustc_index::vec::{{impl}}::from_iter at C:\src\rust\compiler\rustc_index\src\vec.rs:786 112: 0x7ff9d30fda4f - core::iter::traits::iterator::Iterator::collect at C:\src\rust\library\core\src\iter\traits\iterator.rs:1748 113: 0x7ff9d30fda4f - rustc_codegen_ssa::mir::analyze::non_ssa_locals at C:\src\rust\compiler\rustc_codegen_ssa\src\mir\analyze.rs:20 114: 0x7ff9d31999e2 - rustc_codegen_ssa::mir::codegen_mir at C:\src\rust\compiler\rustc_codegen_ssa\src\mir\mod.rs:210 115: 0x7ff9d3164262 - rustc_codegen_ssa::base::codegen_instance at C:\src\rust\compiler\rustc_codegen_ssa\src\base.rs:343 116: 0x7ff9d313fe4c - rustc_codegen_ssa::mono_item::{{impl}}::define at C:\src\rust\compiler\rustc_codegen_ssa\src\mono_item.rs:70 117: 0x7ff9d3158c6b - rustc_codegen_llvm::base::compile_codegen_unit::module_codegen at C:\src\rust\compiler\rustc_codegen_llvm\src\base.rs:141 118: 0x7ff9d31455a5 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl at C:\src\rust\compiler\rustc_query_system\src\dep_graph\graph.rs:278 119: 0x7ff9d31455a5 - rustc_query_system::dep_graph::graph::DepGraph::with_task,fn(mut rustc_middle::ich::hc at C:\src\rust\compiler\rustc_query_system\src\dep_graph\graph.rs:213 120: 0x7ff9d31587a2 - rustc_codegen_llvm::base::compile_codegen_unit at C:\src\rust\compiler\rustc_codegen_llvm\src\base.rs:117 121: 0x7ff9d31622cc - rustc_codegen_llvm::{{impl}}::compile_codegen_unit at C:\src\rust\compiler\rustc_codegen_llvm\src\lib.rs:107 122: 0x7ff9d31622cc - rustc_codegen_ssa::base::codegen_crate at C:\src\rust\compiler\rustc_codegen_ssa\src\base.rs:647 123: 0x7ff9d314f3da - rustc_codegen_llvm::{{impl}}::codegen_crate at C:\src\rust\compiler\rustc_codegen_llvm\src\lib.rs:257 124: 0x7ff9d2ff2cac - rustc_interface::passes::start_codegen::{{closure}} at C:\src\rust\compiler\rustc_interface\src\passes.rs:1060 125: 0x7ff9d2ff2cac - rustc_data_structures::profiling::VerboseTimingGuard::run at C:\src\rust\compiler\rustc_data_structures\src\profiling.rs:573 126: 0x7ff9d2ff2cac - rustc_session::session::Session::time,closure-0> at C:\src\rust\compiler\rustc_session\src\utils.rs:16 127: 0x7ff9d300dd5a - rustc_interface::passes::start_codegen at C:\src\rust\compiler\rustc_interface\src\passes.rs:1059 128: 0x7ff9d302be30 - rustc_interface::queries::{{impl}}::ongoing_codegen::{{closure}}::{{closure}} at C:\src\rust\compiler\rustc_interface\src\queries.rs:295 129: 0x7ff9d302be30 - rustc_interface::passes::{{impl}}::enter::{{closure}} at C:\src\rust\compiler\rustc_interface\src\passes.rs:799 130: 0x7ff9d302be30 - rustc_middle::ty::context::tls::enter_context::{{closure}} at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1744 131: 0x7ff9d302be30 - rustc_middle::ty::context::tls::set_tlv at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1728 132: 0x7ff9d302be30 - rustc_middle::ty::context::tls::enter_context at C:\src\rust\compiler\rustc_middle\src\ty\context.rs:1744 133: 0x7ff9d302be30 - rustc_interface::passes::QueryContext::enter at C:\src\rust\compiler\rustc_interface\src\passes.rs:799 134: 0x7ff9d302be30 - rustc_interface::queries::{{impl}}::ongoing_codegen::{{closure}} at C:\src\rust\compiler\rustc_interface\src\queries.rs:286 135: 0x7ff9d302be30 - rustc_interface::queries::Query::compute,closure-0> at C:\src\rust\compiler\rustc_interface\src\queries.rs:40 136: 0x7ff9d2ffd62a - rustc_interface::queries::Queries::ongoing_codegen at C:\src\rust\compiler\rustc_interface\src\queries.rs:284 137: 0x7ff9d2f6607d - rustc_driver::run_compiler::{{closure}}::{{closure}} at C:\src\rust\compiler\rustc_driver\src\lib.rs:414 138: 0x7ff9d2f6607d - rustc_interface::interface::Compiler::enter, rustc_errors::ErrorReported>> at C:\src\rust\compiler\rustc_interface\src\queries.rs:431 139: 0x7ff9d2f722d0 - rustc_driver::run_compiler::{{closure}} at C:\src\rust\compiler\rustc_driver\src\lib.rs:313 140: 0x7ff9d2f722d0 - rustc_interface::interface::create_compiler_and_run::{{closure}} at C:\src\rust\compiler\rustc_interface\src\interface.rs:208 141: 0x7ff9d2f722d0 - rustc_span::with_source_map, rustc_errors::ErrorReported>,closure-0> at C:\src\rust\compiler\rustc_span\src\lib.rs:873 142: 0x7ff9d2f64a32 - rustc_interface::interface::create_compiler_and_run at C:\src\rust\compiler\rustc_interface\src\interface.rs:202 143: 0x7ff9d2f64a32 - rustc_interface::interface::run_compiler::{{closure}} at C:\src\rust\compiler\rustc_interface\src\interface.rs:224 144: 0x7ff9d2f64a32 - rustc_interface::util::setup_callbacks_and_run_in_thread_pool_with_globals::{{closure}}::{{closure}} at C:\src\rust\compiler\rustc_interface\src\util.rs:158 145: 0x7ff9d2f64a32 - scoped_tls::ScopedKey::set, rustc_errors::ErrorReported>> at C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\scoped-tls-1.0.0\src\lib.rs:137 146: 0x7ff9d2f72df8 - rustc_span::with_session_globals, rustc_errors::ErrorReported>,closure-0> at C:\src\rust\compiler\rustc_span\src\lib.rs:104 147: 0x7ff9d2f7be91 - rustc_interface::util::setup_callbacks_and_run_in_thread_pool_with_globals::{{closure}} at C:\src\rust\compiler\rustc_interface\src\util.rs:156 148: 0x7ff9d2f7be91 - rustc_interface::util::scoped_thread::{{closure}} at C:\src\rust\compiler\rustc_interface\src\util.rs:131 149: 0x7ff9d2f7be91 - std::sys_common::backtrace::__rust_begin_short_backtrace> at C:\src\rust\library\std\src\sys_common\backtrace.rs:125 150: 0x7ff9d2f5fea7 - std::thread::{{impl}}::spawn_unchecked::{{closure}}::{{closure}} at C:\src\rust\library\std\src\thread\mod.rs:476 151: 0x7ff9d2f5fea7 - std::panic::{{impl}}::call_once at C:\src\rust\library\std\src\panic.rs:347 152: 0x7ff9d2f5fea7 - std::panicking::try::do_call at C:\src\rust\library\std\src\panicking.rs:401 153: 0x7ff9d2f5fea7 - std::panicking::try,std::panic::AssertUnwindSafe> at C:\src\rust\library\std\src\panicking.rs:365 154: 0x7ff9d2f6e639 - std::panic::catch_unwind at C:\src\rust\library\std\src\panic.rs:434 155: 0x7ff9d2f6e639 - std::thread::{{impl}}::spawn_unchecked::{{closure}} at C:\src\rust\library\std\src\thread\mod.rs:475 156: 0x7ff9d2f6e639 - core::ops::function::FnOnce::call_once> at C:\src\rust\library\core\src\ops\function.rs:227 157: 0x7ffa13eeae5c - alloc::boxed::{{impl}}::call_once at C:\src\rust\library\alloc\src\boxed.rs:1575 158: 0x7ffa13eeae5c - alloc::boxed::{{impl}}::call_once at C:\src\rust\library\alloc\src\boxed.rs:1575 159: 0x7ffa13eeae5c - std::sys::windows::thread::{{impl}}::new::thread_start at C:\src\rust\library\std\src\sys\windows\thread.rs:57 160: 0x7ffa5b697034 - BaseThreadInitThunk 161: 0x7ffa5c6e2651 - RtlUserThreadStart |
Issue: rust-lang/rust#86528
Triage: #86761 removed the ICE but it doesn't seem like an actual fix. Any other examples to reproduce it? |
This still ICEs on docs.rs.
Backtrace
|
I ran this on vulkano-rs/vulkano@ab01ae7 ( There is an issue with Vulkano that overflows the stack because of some huge structs, and looking for a clippy lint I found this nightly flag. Gave it a go. Oops? Meta
Error output
Backtrace
|
I have another minimal reproducer, it's no more enlightening than the first: pub fn test() {
Vec::<()>::new()
.into_iter()
.filter(|_| true)
.collect::<Vec<_>>();
} |
Crashed for me on serde_repr crate:
|
… r=jackh726 print-type-sizes: skip field printing for primitives Fixes rust-lang#86528.
Yay, this works on docs.rs now 🎉 |
Code
rust-lang/docs.rs@69b1f3d
MCVE:
Meta
rustc --version
:rustc 1.54.0-nightly (cc77ba46f 2021-06-03)
Error output
The text was updated successfully, but these errors were encountered: