Skip to content
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

ICE: compiler/rustc_ty_utils/src/layout_sanity_check.rs:25:9: the naive layout isn't refined by the actual layout: #113962

Closed
NobodyXu opened this issue Jul 22, 2023 · 2 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@NobodyXu
Copy link
Contributor

Code

compact_str

Meta

rustc --version --verbose:

rustc 1.73.0-nightly (0308df23e 2023-07-21)

This ICE happpens in compact_str CI.

Error output

$  env CARGO_TERM_COLOR=always RUSTFLAGS='-Zrandomize-layout' PROPTEST_CASES=10000 MIRIFLAGS='-Zmiri-strict-provenance -Zmiri-check-number-validity' cargo test --all-features --manifest-path=compact_str/Cargo.toml
warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
    Updating crates.io index
    Updating git repository `[https://github.com/ParkMyCar/honggfuzz-rs.git`](https://github.com/ParkMyCar/honggfuzz-rs.git%60)
    Updating git submodule `[https://github.com/google/honggfuzz`](https://github.com/google/honggfuzz%60)
    Updating git submodule `[https://github.com/aquynh/capstone`](https://github.com/aquynh/capstone%60)
    Updating git submodule `[https://github.com/libunwind/libunwind.git`](https://github.com/libunwind/libunwind.git%60)
 Downloading crates ...
  Downloaded num-traits v0.2.16
  Downloaded serde_derive v1.0.174
  Downloaded serde v1.0.174
  Downloaded either v1.9.0
   Compiling proc-macro2 v1.0.66
   Compiling cfg-if v1.0.0
   Compiling unicode-ident v1.0.11
   Compiling libc v0.2.147
   Compiling syn v1.0.109
   Compiling quote v1.0.31
   Compiling version_check v0.9.4
   Compiling autocfg v1.1.0
   Compiling getrandom v0.2.10
   Compiling crossbeam-utils v0.8.16
   Compiling rand_core v0.6.4
   Compiling memoffset v0.9.0
error: internal compiler error: compiler/rustc_ty_utils/src/layout_sanity_check.rs:25:9: the naive layout isn't refined by the actual layout:
                                NaiveLayout {
                                    abi: Sized,
                                    niches: Some,
                                    size: Size(64 bytes),
                                    align: Align(8 bytes),
                                    exact: true,
                                }
                                TyAndLayout {
                                    ty: expr::ExprMatch,
                                    layout: Layout {
                                        size: Size(72 bytes),
                                        align: AbiAndPrefAlign {
                                            abi: Align(8 bytes),
                                            pref: Align(8 bytes),
                                        },
                                        abi: Aggregate {
                                            sized: true,
                                        },
                                        fields: Arbitrary {
                                            offsets: [
                                                Size(8 bytes),
                                                Size(32 bytes),
                                                Size(40 bytes),
                                                Size(0 bytes),
                                                Size(48 bytes),
                                            ],
                                            memory_index: [
                                                1,
                                                2,
                                                3,
                                                0,
                                                4,
                                            ],
                                        },
                                        largest_niche: Some(
                                            Niche {
                                                offset: Size(8 bytes),
                                                value: Pointer(
                                                    AddressSpace(
                                                        0,
                                                    ),
                                                ),
                                                valid_range: 1..=18446744073709551615,
                                            },
                                        ),
                                        variants: Single {
                                            index: 0,
                                        },
                                        max_repr_align: None,
                                        unadjusted_abi_align: Align(8 bytes),
                                    },
                                }

thread 'rustc' panicked at 'Box<dyn Any>', /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/compiler/rustc_errors/src/lib.rs:1663:9

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: please attach the file at `/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/rustc-ice-2023-07-22T13:47:00.614515827Z-1981.txt` to your bug report

note: compiler flags: --crate-type lib -C embed-bitcode=no -Z randomize-layout

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [layout_of] computing layout of `expr::ExprMatch`
#1 [layout_of] computing layout of `expr::Expr`
#2 [layout_of] computing layout of `(token::Eq, expr::Expr)`
#3 [layout_of] computing layout of `core::option::Option<(token::Eq, expr::Expr)>`
#4 [layout_of] computing layout of `data::Variant`
#5 [layout_of] computing layout of `core::result::Result<data::Variant, error::Error>`
#6 [mir_drops_elaborated_and_const_checked] elaborating drops for `data::parsing::<impl at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/data.rs:247:5: 247:27>::parse`
#7 [analysis] running analysis passes on this crate
end of query stack
   Compiling crossbeam-epoch v0.9.15
error: could not compile `syn` (lib)
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 101.
Backtrace

   0:     0x7fd32e14dfc1 - std::backtrace_rs::backtrace::libunwind::trace::h8f154b6a796326e2
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x7fd32e14dfc1 - std::backtrace_rs::backtrace::trace_unsynchronized::hb8abeaf7dfb1c24b
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x7fd32e14dfc1 - std::sys_common::backtrace::_print_fmt::h3f47e60290db41a5
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x7fd32e14dfc1 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4552f2dd442a589d
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x7fd32e1b449c - core::fmt::rt::Argument::fmt::h78a6be6446bd82bd
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/core/src/fmt/rt.rs:138:9
   5:     0x7fd32e1b449c - core::fmt::write::hd14ae211f7dd66b2
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/core/src/fmt/mod.rs:1094:21
   6:     0x7fd32e1407ae - std::io::Write::write_fmt::hdc8c0b5c45666412
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/io/mod.rs:1714:15
   7:     0x7fd32e14ddd5 - std::sys_common::backtrace::_print::h381fcf6b91d9d880
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x7fd32e14ddd5 - std::sys_common::backtrace::print::hcfe75c5be0f60777
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x7fd32e150e2a - std::panicking::panic_hook_with_disk_dump::{{closure}}::hfe5fad22482c9f6d
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/panicking.rs:278:22
  10:     0x7fd32e150ac3 - std::panicking::panic_hook_with_disk_dump::hc822f132c197763d
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/panicking.rs:312:9
  11:     0x7fd33137d8b9 - rustc_driver_impl[fead4037fc65a3e4]::install_ice_hook::{closure#0}
  12:     0x7fd32e1516d0 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h549a9102e6ec42b3
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/alloc/src/boxed.rs:2021:9
  13:     0x7fd32e1516d0 - std::panicking::rust_panic_with_hook::h8adf1e4a5b603f89
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/panicking.rs:733:13
  14:     0x7fd331939271 - std[bbbc53192af03470]::panicking::begin_panic::<rustc_errors[5f83c55a23d0ef58]::ExplicitBug>::{closure#0}
  15:     0x7fd331937266 - std[bbbc53192af03470]::sys_common::backtrace::__rust_end_short_backtrace::<std[bbbc53192af03470]::panicking::begin_panic<rustc_errors[5f83c55a23d0ef58]::ExplicitBug>::{closure#0}, !>
  16:     0x7fd33192f7a6 - std[bbbc53192af03470]::panicking::begin_panic::<rustc_errors[5f83c55a23d0ef58]::ExplicitBug>
  17:     0x7fd3318acf94 - <rustc_errors[5f83c55a23d0ef58]::HandlerInner>::bug::<alloc[c920ce942076dd6e]::string::String>
  18:     0x7fd3318ace26 - <rustc_errors[5f83c55a23d0ef58]::Handler>::bug::<alloc[c920ce942076dd6e]::string::String>
  19:     0x7fd33188729c - rustc_middle[2e38e64f479fe5b8]::util::bug::opt_span_bug_fmt::<rustc_span[a321f1cb1523dd0b]::span_encoding::Span>::{closure#0}
  20:     0x7fd3318870da - rustc_middle[2e38e64f479fe5b8]::ty::context::tls::with_opt::<rustc_middle[2e38e64f479fe5b8]::util::bug::opt_span_bug_fmt<rustc_span[a321f1cb1523dd0b]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  21:     0x7fd3318870a8 - rustc_middle[2e38e64f479fe5b8]::ty::context::tls::with_context_opt::<rustc_middle[2e38e64f479fe5b8]::ty::context::tls::with_opt<rustc_middle[2e38e64f479fe5b8]::util::bug::opt_span_bug_fmt<rustc_span[a321f1cb1523dd0b]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  22:     0x7fd32fd93fa0 - rustc_middle[2e38e64f479fe5b8]::util::bug::bug_fmt
  23:     0x7fd32fce20ce - rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of
  24:     0x7fd32f3f58ce - rustc_query_impl[89227dfa721c8c03]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>
  25:     0x7fd32fcd6ff1 - rustc_query_system[c0a52eceb1a71305]::query::plumbing::try_execute_query::<rustc_query_impl[89227dfa721c8c03]::DynamicConfig<rustc_query_system[c0a52eceb1a71305]::query::caches::DefaultCache<rustc_middle[2e38e64f479fe5b8]::ty::ParamEnvAnd<rustc_middle[2e38e64f479fe5b8]::ty::Ty>, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>, false, true, false>, rustc_query_impl[89227dfa721c8c03]::plumbing::QueryCtxt, false>
  26:     0x7fd32fcd6bf3 - rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::get_query_non_incr::__rust_end_short_backtrace
  27:     0x7fd32f5f8547 - <core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::FieldDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}::{closure#0}> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_fold::<(), <core[d7f3879bb305828b]::iter::adapters::GenericShunt<core[d7f3879bb305828b]::iter::adapters::by_ref_sized::ByRefSized<core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::FieldDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}::{closure#0}>>, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::convert::Infallible, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_fold<(), core[d7f3879bb305828b]::iter::traits::iterator::Iterator::try_for_each::call<rustc_abi[b96530f2078f8d11]::Layout, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>::Break>::{closure#0}, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>::{closure#0}, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>>
  28:     0x7fd32fce7a92 - core[d7f3879bb305828b]::iter::adapters::try_process::<core[d7f3879bb305828b]::iter::adapters::by_ref_sized::ByRefSized<core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::VariantDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}>>, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::convert::Infallible, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>, <core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::VariantDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_collect<rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::VariantIdx, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>>>::{closure#0}, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::VariantIdx, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>>>
  29:     0x7fd32fce0d1b - rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of
  30:     0x7fd32f3f58ce - rustc_query_impl[89227dfa721c8c03]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>
  31:     0x7fd32fcd6ff1 - rustc_query_system[c0a52eceb1a71305]::query::plumbing::try_execute_query::<rustc_query_impl[89227dfa721c8c03]::DynamicConfig<rustc_query_system[c0a52eceb1a71305]::query::caches::DefaultCache<rustc_middle[2e38e64f479fe5b8]::ty::ParamEnvAnd<rustc_middle[2e38e64f479fe5b8]::ty::Ty>, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>, false, true, false>, rustc_query_impl[89227dfa721c8c03]::plumbing::QueryCtxt, false>
  32:     0x7fd32fcd6bf3 - rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::get_query_non_incr::__rust_end_short_backtrace
  33:     0x7fd32fce7713 - rustc_middle[2e38e64f479fe5b8]::query::plumbing::query_get_at::<rustc_query_system[c0a52eceb1a71305]::query::caches::DefaultCache<rustc_middle[2e38e64f479fe5b8]::ty::ParamEnvAnd<rustc_middle[2e38e64f479fe5b8]::ty::Ty>, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>>
  34:     0x7fd32fce8d10 - <core[d7f3879bb305828b]::iter::adapters::copied::Copied<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::Ty>> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_fold::<(), core[d7f3879bb305828b]::iter::adapters::map::map_try_fold<rustc_middle[2e38e64f479fe5b8]::ty::Ty, core[d7f3879bb305828b]::result::Result<rustc_abi[b96530f2078f8d11]::Layout, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>, (), core[d7f3879bb305828b]::ops::control_flow::ControlFlow<core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#6}, <core[d7f3879bb305828b]::iter::adapters::GenericShunt<core[d7f3879bb305828b]::iter::adapters::by_ref_sized::ByRefSized<core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::iter::adapters::copied::Copied<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::Ty>>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#6}>>, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::convert::Infallible, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_fold<(), core[d7f3879bb305828b]::iter::traits::iterator::Iterator::try_for_each::call<rustc_abi[b96530f2078f8d11]::Layout, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>::Break>::{closure#0}, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>::{closure#0}>::{closure#0}, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>>
  35:     0x7fd32fce8b92 - core[d7f3879bb305828b]::iter::adapters::try_process::<core[d7f3879bb305828b]::iter::adapters::by_ref_sized::ByRefSized<core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::iter::adapters::copied::Copied<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::Ty>>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#6}>>, rustc_abi[b96530f2078f8d11]::Layout, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::convert::Infallible, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>, <core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::iter::adapters::copied::Copied<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::Ty>>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#6}> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_collect<rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>>::{closure#0}, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>>
  36:     0x7fd32fce1d57 - rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of
  37:     0x7fd32f3f58ce - rustc_query_impl[89227dfa721c8c03]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>
  38:     0x7fd32fcd6ff1 - rustc_query_system[c0a52eceb1a71305]::query::plumbing::try_execute_query::<rustc_query_impl[89227dfa721c8c03]::DynamicConfig<rustc_query_system[c0a52eceb1a71305]::query::caches::DefaultCache<rustc_middle[2e38e64f479fe5b8]::ty::ParamEnvAnd<rustc_middle[2e38e64f479fe5b8]::ty::Ty>, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>, false, true, false>, rustc_query_impl[89227dfa721c8c03]::plumbing::QueryCtxt, false>
  39:     0x7fd32fcd6bf3 - rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::get_query_non_incr::__rust_end_short_backtrace
  40:     0x7fd32f5f8547 - <core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::FieldDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}::{closure#0}> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_fold::<(), <core[d7f3879bb305828b]::iter::adapters::GenericShunt<core[d7f3879bb305828b]::iter::adapters::by_ref_sized::ByRefSized<core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::FieldDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}::{closure#0}>>, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::convert::Infallible, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_fold<(), core[d7f3879bb305828b]::iter::traits::iterator::Iterator::try_for_each::call<rustc_abi[b96530f2078f8d11]::Layout, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>::Break>::{closure#0}, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>::{closure#0}, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>>
  41:     0x7fd32fce7a92 - core[d7f3879bb305828b]::iter::adapters::try_process::<core[d7f3879bb305828b]::iter::adapters::by_ref_sized::ByRefSized<core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::VariantDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}>>, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::convert::Infallible, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>, <core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::VariantDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_collect<rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::VariantIdx, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>>>::{closure#0}, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::VariantIdx, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>>>
  42:     0x7fd32fce0d1b - rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of
  43:     0x7fd32f3f58ce - rustc_query_impl[89227dfa721c8c03]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>
  44:     0x7fd32fcd6ff1 - rustc_query_system[c0a52eceb1a71305]::query::plumbing::try_execute_query::<rustc_query_impl[89227dfa721c8c03]::DynamicConfig<rustc_query_system[c0a52eceb1a71305]::query::caches::DefaultCache<rustc_middle[2e38e64f479fe5b8]::ty::ParamEnvAnd<rustc_middle[2e38e64f479fe5b8]::ty::Ty>, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>, false, true, false>, rustc_query_impl[89227dfa721c8c03]::plumbing::QueryCtxt, false>
  45:     0x7fd32fcd6bf3 - rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::get_query_non_incr::__rust_end_short_backtrace
  46:     0x7fd32f5f8547 - <core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::FieldDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}::{closure#0}> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_fold::<(), <core[d7f3879bb305828b]::iter::adapters::GenericShunt<core[d7f3879bb305828b]::iter::adapters::by_ref_sized::ByRefSized<core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::FieldDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}::{closure#0}>>, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::convert::Infallible, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_fold<(), core[d7f3879bb305828b]::iter::traits::iterator::Iterator::try_for_each::call<rustc_abi[b96530f2078f8d11]::Layout, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>::Break>::{closure#0}, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>::{closure#0}, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>>
  47:     0x7fd32fce7965 - core[d7f3879bb305828b]::iter::adapters::try_process::<core[d7f3879bb305828b]::iter::adapters::by_ref_sized::ByRefSized<core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::VariantDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}>>, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::convert::Infallible, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>, <core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::VariantDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_collect<rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::VariantIdx, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>>>::{closure#0}, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::VariantIdx, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>>>
  48:     0x7fd32fce0d1b - rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of
  49:     0x7fd32f3f58ce - rustc_query_impl[89227dfa721c8c03]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>
  50:     0x7fd32fcd6ff1 - rustc_query_system[c0a52eceb1a71305]::query::plumbing::try_execute_query::<rustc_query_impl[89227dfa721c8c03]::DynamicConfig<rustc_query_system[c0a52eceb1a71305]::query::caches::DefaultCache<rustc_middle[2e38e64f479fe5b8]::ty::ParamEnvAnd<rustc_middle[2e38e64f479fe5b8]::ty::Ty>, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>, false, true, false>, rustc_query_impl[89227dfa721c8c03]::plumbing::QueryCtxt, false>
  51:     0x7fd32fcd6bf3 - rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::get_query_non_incr::__rust_end_short_backtrace
  52:     0x7fd32f5f8547 - <core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::FieldDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}::{closure#0}> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_fold::<(), <core[d7f3879bb305828b]::iter::adapters::GenericShunt<core[d7f3879bb305828b]::iter::adapters::by_ref_sized::ByRefSized<core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::FieldDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}::{closure#0}>>, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::convert::Infallible, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_fold<(), core[d7f3879bb305828b]::iter::traits::iterator::Iterator::try_for_each::call<rustc_abi[b96530f2078f8d11]::Layout, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>::Break>::{closure#0}, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>::{closure#0}, core[d7f3879bb305828b]::ops::control_flow::ControlFlow<core[d7f3879bb305828b]::ops::control_flow::ControlFlow<rustc_abi[b96530f2078f8d11]::Layout>>>
  53:     0x7fd32fce78ed - core[d7f3879bb305828b]::iter::adapters::try_process::<core[d7f3879bb305828b]::iter::adapters::by_ref_sized::ByRefSized<core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::VariantDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}>>, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::convert::Infallible, &rustc_middle[2e38e64f479fe5b8]::ty::layout::LayoutError>, <core[d7f3879bb305828b]::iter::adapters::map::Map<core[d7f3879bb305828b]::slice::iter::Iter<rustc_middle[2e38e64f479fe5b8]::ty::VariantDef>, rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of_uncached::{closure#8}> as core[d7f3879bb305828b]::iter::traits::iterator::Iterator>::try_collect<rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::VariantIdx, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>>>::{closure#0}, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::VariantIdx, rustc_index[9109743736ae5451]::vec::IndexVec<rustc_abi[b96530f2078f8d11]::FieldIdx, rustc_abi[b96530f2078f8d11]::Layout>>>
  54:     0x7fd32fce0d1b - rustc_ty_utils[55ee87bc8b98e550]::layout::layout_of
  55:     0x7fd32f3f58ce - rustc_query_impl[89227dfa721c8c03]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>
  56:     0x7fd32fcd6ff1 - rustc_query_system[c0a52eceb1a71305]::query::plumbing::try_execute_query::<rustc_query_impl[89227dfa721c8c03]::DynamicConfig<rustc_query_system[c0a52eceb1a71305]::query::caches::DefaultCache<rustc_middle[2e38e64f479fe5b8]::ty::ParamEnvAnd<rustc_middle[2e38e64f479fe5b8]::ty::Ty>, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 16usize]>>, false, true, false>, rustc_query_impl[89227dfa721c8c03]::plumbing::QueryCtxt, false>
  57:     0x7fd32fcd6bf3 - rustc_query_impl[89227dfa721c8c03]::query_impl::layout_of::get_query_non_incr::__rust_end_short_backtrace
  58:     0x7fd3303b13e0 - <rustc_mir_transform[bc3e936f99131297]::const_prop::CanConstProp>::check
  59:     0x7fd3303acdd0 - <rustc_mir_transform[bc3e936f99131297]::const_prop_lint::ConstProp as rustc_mir_transform[bc3e936f99131297]::pass_manager::MirLint>::run_lint
  60:     0x7fd32fb71a60 - rustc_mir_transform[bc3e936f99131297]::mir_drops_elaborated_and_const_checked
  61:     0x7fd32f46138e - rustc_query_impl[89227dfa721c8c03]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[89227dfa721c8c03]::query_impl::mir_drops_elaborated_and_const_checked::dynamic_query::{closure#2}::{closure#0}, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 8usize]>>
  62:     0x7fd32f46135e - <rustc_query_impl[89227dfa721c8c03]::query_impl::mir_drops_elaborated_and_const_checked::dynamic_query::{closure#2} as core[d7f3879bb305828b]::ops::function::FnOnce<(rustc_middle[2e38e64f479fe5b8]::ty::context::TyCtxt, rustc_span[a321f1cb1523dd0b]::def_id::LocalDefId)>>::call_once
  63:     0x7fd32f55bc9d - rustc_query_system[c0a52eceb1a71305]::query::plumbing::try_execute_query::<rustc_query_impl[89227dfa721c8c03]::DynamicConfig<rustc_query_system[c0a52eceb1a71305]::query::caches::VecCache<rustc_span[a321f1cb1523dd0b]::def_id::LocalDefId, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[89227dfa721c8c03]::plumbing::QueryCtxt, false>
  64:     0x7fd330cde60f - rustc_query_impl[89227dfa721c8c03]::query_impl::mir_drops_elaborated_and_const_checked::get_query_non_incr::__rust_end_short_backtrace
  65:     0x7fd330817ed3 - <rustc_session[15d76b916424491d]::session::Session>::time::<(), rustc_interface[c9554cd0b74ea93d]::passes::analysis::{closure#2}>
  66:     0x7fd3308164f5 - rustc_interface[c9554cd0b74ea93d]::passes::analysis
  67:     0x7fd33086782a - rustc_query_impl[89227dfa721c8c03]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[89227dfa721c8c03]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 1usize]>>
  68:     0x7fd330867819 - <rustc_query_impl[89227dfa721c8c03]::query_impl::analysis::dynamic_query::{closure#2} as core[d7f3879bb305828b]::ops::function::FnOnce<(rustc_middle[2e38e64f479fe5b8]::ty::context::TyCtxt, ())>>::call_once
  69:     0x7fd330a1d088 - rustc_query_system[c0a52eceb1a71305]::query::plumbing::try_execute_query::<rustc_query_impl[89227dfa721c8c03]::DynamicConfig<rustc_query_system[c0a52eceb1a71305]::query::caches::SingleCache<rustc_middle[2e38e64f479fe5b8]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[89227dfa721c8c03]::plumbing::QueryCtxt, false>
  70:     0x7fd330a1ce17 - rustc_query_impl[89227dfa721c8c03]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  71:     0x7fd3305be745 - <rustc_middle[2e38e64f479fe5b8]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[fead4037fc65a3e4]::run_compiler::{closure#1}::{closure#2}::{closure#4}, core[d7f3879bb305828b]::result::Result<(), rustc_span[a321f1cb1523dd0b]::ErrorGuaranteed>>
  72:     0x7fd3305bdd72 - <rustc_interface[c9554cd0b74ea93d]::interface::Compiler>::enter::<rustc_driver_impl[fead4037fc65a3e4]::run_compiler::{closure#1}::{closure#2}, core[d7f3879bb305828b]::result::Result<core[d7f3879bb305828b]::option::Option<rustc_interface[c9554cd0b74ea93d]::queries::Linker>, rustc_span[a321f1cb1523dd0b]::ErrorGuaranteed>>
  73:     0x7fd3305baf64 - std[bbbc53192af03470]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[c9554cd0b74ea93d]::util::run_in_thread_pool_with_globals<rustc_interface[c9554cd0b74ea93d]::interface::run_compiler<core[d7f3879bb305828b]::result::Result<(), rustc_span[a321f1cb1523dd0b]::ErrorGuaranteed>, rustc_driver_impl[fead4037fc65a3e4]::run_compiler::{closure#1}>::{closure#0}, core[d7f3879bb305828b]::result::Result<(), rustc_span[a321f1cb1523dd0b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[d7f3879bb305828b]::result::Result<(), rustc_span[a321f1cb1523dd0b]::ErrorGuaranteed>>
  74:     0x7fd3305ba68e - <<std[bbbc53192af03470]::thread::Builder>::spawn_unchecked_<rustc_interface[c9554cd0b74ea93d]::util::run_in_thread_pool_with_globals<rustc_interface[c9554cd0b74ea93d]::interface::run_compiler<core[d7f3879bb305828b]::result::Result<(), rustc_span[a321f1cb1523dd0b]::ErrorGuaranteed>, rustc_driver_impl[fead4037fc65a3e4]::run_compiler::{closure#1}>::{closure#0}, core[d7f3879bb305828b]::result::Result<(), rustc_span[a321f1cb1523dd0b]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[d7f3879bb305828b]::result::Result<(), rustc_span[a321f1cb1523dd0b]::ErrorGuaranteed>>::{closure#1} as core[d7f3879bb305828b]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  75:     0x7fd32e15bdc5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5a713c95dff49eb9
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/alloc/src/boxed.rs:2007:9
  76:     0x7fd32e15bdc5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h6c2630f276b49e94
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/alloc/src/boxed.rs:2007:9
  77:     0x7fd32e15bdc5 - std::sys::unix::thread::Thread::new::thread_start::he7c79aaf88d71e7c
                               at /rustc/0308df23e621e783e31a27ca5beaa01b9df60d4a/library/std/src/sys/unix/thread.rs:108:17
  78:     0x7fd32de9fb43 - <unknown>
  79:     0x7fd32df31a00 - <unknown>
  80:                0x0 - <unknown>

@NobodyXu NobodyXu added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 22, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 22, 2023
@taiki-e
Copy link
Member

taiki-e commented Jul 22, 2023

Duplicate of #113941

@NobodyXu
Copy link
Contributor Author

Thanks, closing as duplicate

@NobodyXu NobodyXu closed this as not planned Won't fix, can't repro, duplicate, stale Jul 22, 2023
@Noratrieb Noratrieb removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants