Skip to content

Compiler bug on Box::pin #136548

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
LXIF opened this issue Feb 4, 2025 · 2 comments
Closed

Compiler bug on Box::pin #136548

LXIF opened this issue Feb 4, 2025 · 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

@LXIF
Copy link

LXIF commented Feb 4, 2025

Note: this only appears using dfx build, not using cargo build (dfx is a dfinity tool for internetcomputer development)

Code

async fn retry<F, Fut, T>(mut f: F, max_retries: u32) -> Result<T, String>
where
    F: FnMut() -> Fut,
    Fut: Future<Output = Result<T, String>>,
{
    let mut attempt = 0;

    loop {
        match f().await {
            Ok(result) => return Ok(result),
            Err(e) => {
                attempt += 1;
                if attempt >= max_retries {
                    return Err(e);
                }
            }
        }
    }
}


pub async fn get_caller_owned_tokens() -> Result<Vec<Uint<256, 4>>, String> {
    let CallObjects {
        owner,
        token_contract,
    } = setup_call_objects().await?;

    // First get the balance with retry
    let balance = retry(
        || async {
            token_contract
                .balanceOf(owner)
                .call()
                .await
                .map_err(|e| format!("Failed to call balanceOf: {}", e))
        },
        3, // max retries
    )
    .await?;

    let mut calls: Vec<BoxFuture<Result<Uint<256, 4>, String>>> = Vec::new();

    let balance_i32 = balance
        ._0
        .try_into()
        .map_err(|_| format!("Failed to parse token number"))?;

    for i in 0..balance_i32 {
        let token_contract = token_contract.clone();
        calls.push(Box::pin(async move {
            retry(
                || async {
                    token_contract
                        .tokenOfOwnerByIndex(owner, Uint::from(i))
                        .call()
                        .await
                        .map(|res| res._0)
                        .map_err(|e| format!("Failed to get token at index {}: {}", i, e))
                },
                3, // max retries
            )
            .await
        }));
    }

    let results = future::join_all(calls).await;
    let mut tokens = Vec::new();
    for result in results {
        tokens.push(result?);
    }

    Ok(tokens)
}

Meta

rustc --version --verbose:

rustc 1.84.1 (e71f9a9a9 2025-01-27)
binary: rustc
commit-hash: e71f9a9a98b0faf423844bf0ba7438f29dc27d58
commit-date: 2025-01-27
host: aarch64-apple-darwin
release: 1.84.1
LLVM version: 19.1.5

Error output

error: the compiler unexpectedly panicked. this is a bug.

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

note: rustc 1.84.1 (e71f9a9a9 2025-01-27) running on aarch64-apple-darwin

note: compiler flags: --crate-type cdylib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C strip=debuginfo

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

query stack during panic:
#0 [optimized_mir] optimizing MIR for `evm::get_caller_owned_tokens::{closure#0}`
#1 [layout_of] computing layout of `{async fn body of evm::get_caller_owned_tokens()}`
end of query stack
note: no errors encountered even though delayed bugs were created

note: those delayed bugs will now be shown as internal compiler errors

error: internal compiler error: error performing operation: fully_perform
   --> src/voice_among_voices_backend/src/evm.rs:89:20
    |
89  |           calls.push(Box::pin(async move {
    |  ____________________^
90  | |             retry(
91  | |                 || async {
92  | |                     token_contract
...   |
101 | |             .await
102 | |         }));
    | |__________^
    |
note: delayed at /rustc/e71f9a9a98b0faf423844bf0ba7438f29dc27d58/compiler/rustc_trait_selection/src/traits/query/type_op/custom.rs:87:25 - disabled backtrace
   --> src/voice_among_voices_backend/src/evm.rs:89:20
    |
89  |           calls.push(Box::pin(async move {
    |  ____________________^
90  | |             retry(
91  | |                 || async {
92  | |                     token_contract
...   |
101 | |             .await
102 | |         }));
    | |__________^

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

note: rustc 1.84.1 (e71f9a9a9 2025-01-27) running on aarch64-apple-darwin

note: compiler flags: --crate-type cdylib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C strip=debuginfo

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

query stack during panic:
end of query stack
thread 'rustc' panicked at core/src/panicking.rs:231:5:
panic in a destructor during cleanup

error: the compiler unexpectedly panicked. this is a bug.

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

note: rustc 1.84.1 (e71f9a9a9 2025-01-27) running on aarch64-apple-darwin

note: compiler flags: --crate-type cdylib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C strip=debuginfo

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

query stack during panic:
end of query stack
thread caused non-unwinding panic. aborting.
error: could not compile `voice_among_voices_backend` (lib)

Caused by:
  process didn't exit successfully: `/Users/andri.schatz/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name voice_among_voices_backend --edition=2021 src/voice_among_voices_backend/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=197 --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=58cd006ff5a08bd2 --out-dir /Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps --target wasm32-unknown-unknown -C strip=debuginfo -L dependency=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps -L dependency=/Users/andri.schatz/dev/personal/voice_among_voices/target/release/deps --extern alloy=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/liballoy-f6866bd35b55bdc6.rlib --extern candid=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libcandid-d51590142a38de8f.rlib --extern futures=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libfutures-6388c3eb60239e04.rlib --extern getrandom=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libgetrandom-663eae61a1718d83.rlib --extern hound=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libhound-06a30bfeea6a4e01.rlib --extern ic_cdk=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libic_cdk-93adbb1e55c2ee92.rlib --extern ic_cdk_timers=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libic_cdk_timers-ee24cc5489c6d620.rlib --extern ic_http_certification=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libic_http_certification-270b7608eb7d51dc.rlib --extern ic_stable_structures=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libic_stable_structures-7d2c8f3239b8b9d2.rlib --extern once_cell=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libonce_cell-b124ee50a3055a11.rlib --extern rapier2d=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/librapier2d-e8422125ba1acb81.rlib --extern serde=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libserde-4612a6f80b8aecac.rlib --extern serde_bytes=/Users/andri.schatz/dev/personal/voice_among_voices/target/wasm32-unknown-unknown/release/deps/libserde_bytes-11a0e5a8a1c96f68.rlib` (signal: 6, SIGABRT: process abort signal)
Error: Failed while trying to build all canisters.
Caused by: The build step failed for canister 'br5f7-7uaaa-aaaaa-qaaca-cai' (voice_among_voices_backend)
Caused by: Failed to build Rust canister 'voice_among_voices_backend'.
Caused by: Failed to compile the rust package: voice_among_voices_backend
Backtrace
thread 'rustc' panicked at compiler/rustc_mir_transform/src/validate.rs:90:25:
broken MIR in Item(DefId(0:71 ~ voice_among_voices_backend[619a]::evm::get_caller_owned_tokens::{closure#0})) (after phase change to runtime-optimized) at bb40[0]:
Unsize coercion, but `Pin<Box<{async block@src/voice_among_voices_backend/src/evm.rs:89:29: 89:39}>>` isn't coercible to `Pin<Box<dyn futures::Future<Output = Result<alloy::alloy_primitives::Uint<256, 4>, std::string::String>> + std::marker::Send>>`
stack backtrace:
   0:        0x11252e598 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h39ba3129e355bb22
   1:        0x10f7651a4 - core::fmt::write::h8b50d3a0f616451a
   2:        0x112522734 - std::io::Write::write_fmt::h4b3bbae7048e35f8
   3:        0x11252e458 - std::sys::backtrace::BacktraceLock::print::h7934b1e389160086
   4:        0x112530934 - std::panicking::default_hook::{{closure}}::hbcd636b20f603d1e
   5:        0x11253077c - std::panicking::default_hook::ha9081970ba26bc6c
   6:        0x110377574 - <alloc[ac3a40a93536e1d0]::boxed::Box<rustc_driver_impl[2efa7699d230cd08]::install_ice_hook::{closure#0}> as core[e750fbdca16b7814]::ops::function::Fn<(&dyn for<'a, 'b> core[e750fbdca16b7814]::ops::function::Fn<(&'a std[5e488047b44b26af]::panic::PanicHookInfo<'b>,), Output = ()> + core[e750fbdca16b7814]::marker::Sync + core[e750fbdca16b7814]::marker::Send, &std[5e488047b44b26af]::panic::PanicHookInfo)>>::call
   7:        0x112531200 - std::panicking::rust_panic_with_hook::h9a5dc30b684e2ff4
   8:        0x112530e3c - std::panicking::begin_panic_handler::{{closure}}::hbcb5de8b840ae91c
   9:        0x11252ea40 - std::sys::backtrace::__rust_end_short_backtrace::ha657d4b4d65dc993
  10:        0x112530b00 - _rust_begin_unwind
  11:        0x114c13b2c - core::panicking::panic_fmt::hda207213c7ca0065
  12:        0x1115608a0 - <rustc_mir_transform[6fbb44b90e67014d]::validate::CfgChecker>::fail::<alloc[ac3a40a93536e1d0]::string::String>
  13:        0x1115600fc - <rustc_mir_transform[6fbb44b90e67014d]::validate::Validator as rustc_mir_transform[6fbb44b90e67014d]::pass_manager::MirPass>::run_pass
  14:        0x11154a25c - rustc_mir_transform[6fbb44b90e67014d]::pass_manager::run_passes_inner
  15:        0x111445e4c - rustc_mir_transform[6fbb44b90e67014d]::optimized_mir
  16:        0x111a69844 - rustc_query_impl[2a0d338f8a3be2df]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2a0d338f8a3be2df]::query_impl::optimized_mir::dynamic_query::{closure#2}::{closure#0}, rustc_middle[b8dd1e411f5154df]::query::erase::Erased<[u8; 8usize]>>
  17:        0x111ab462c - <rustc_query_impl[2a0d338f8a3be2df]::query_impl::optimized_mir::dynamic_query::{closure#2} as core[e750fbdca16b7814]::ops::function::FnOnce<(rustc_middle[b8dd1e411f5154df]::ty::context::TyCtxt, rustc_span[a17b1635b7abad55]::def_id::DefId)>>::call_once
  18:        0x11197336c - rustc_query_system[38f10faf24a7a280]::query::plumbing::try_execute_query::<rustc_query_impl[2a0d338f8a3be2df]::DynamicConfig<rustc_query_system[38f10faf24a7a280]::query::caches::DefIdCache<rustc_middle[b8dd1e411f5154df]::query::erase::Erased<[u8; 8usize]>>, false, false, false>, rustc_query_impl[2a0d338f8a3be2df]::plumbing::QueryCtxt, false>
  19:        0x111b98130 - rustc_query_impl[2a0d338f8a3be2df]::query_impl::optimized_mir::get_query_non_incr::__rust_end_short_backtrace
  20:        0x1110854d8 - rustc_middle[b8dd1e411f5154df]::query::plumbing::query_get_at::<rustc_query_system[38f10faf24a7a280]::query::caches::DefIdCache<rustc_middle[b8dd1e411f5154df]::query::erase::Erased<[u8; 8usize]>>>
  21:        0x111082b0c - <rustc_middle[b8dd1e411f5154df]::ty::context::TyCtxt>::coroutine_layout
  22:        0x11247a750 - rustc_ty_utils[7c07dbb7ac500e29]::layout::layout_of_uncached
  23:        0x11247d7b8 - rustc_ty_utils[7c07dbb7ac500e29]::layout::layout_of
  24:        0x111a6f8e4 - rustc_query_impl[2a0d338f8a3be2df]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2a0d338f8a3be2df]::query_impl::layout_of::dynamic_query::{closure#2}::{closure#0}, rustc_middle[b8dd1e411f5154df]::query::erase::Erased<[u8; 16usize]>>
  25:        0x111acee34 - <rustc_query_impl[2a0d338f8a3be2df]::query_impl::layout_of::dynamic_query::{closure#2} as core[e750fbdca16b7814]::ops::function::FnOnce<(rustc_middle[b8dd1e411f5154df]::ty::context::TyCtxt, rustc_middle[b8dd1e411f5154df]::ty::PseudoCanonicalInput<rustc_middle[b8dd1e411f5154df]::ty::Ty>)>>::call_once
  26:        0x1119a8a94 - rustc_query_system[38f10faf24a7a280]::query::plumbing::try_execute_query::<rustc_query_impl[2a0d338f8a3be2df]::DynamicConfig<rustc_query_system[38f10faf24a7a280]::query::caches::DefaultCache<rustc_middle[b8dd1e411f5154df]::ty::PseudoCanonicalInput<rustc_middle[b8dd1e411f5154df]::ty::Ty>, rustc_middle[b8dd1e411f5154df]::query::erase::Erased<[u8; 16usize]>>, false, true, false>, rustc_query_impl[2a0d338f8a3be2df]::plumbing::QueryCtxt, false>
  27:        0x111bb1fc0 - rustc_query_impl[2a0d338f8a3be2df]::query_impl::layout_of::get_query_non_incr::__rust_end_short_backtrace
  28:        0x1113fb5d4 - rustc_middle[b8dd1e411f5154df]::query::plumbing::query_get_at::<rustc_query_system[38f10faf24a7a280]::query::caches::DefaultCache<rustc_middle[b8dd1e411f5154df]::ty::PseudoCanonicalInput<rustc_middle[b8dd1e411f5154df]::ty::Ty>, rustc_middle[b8dd1e411f5154df]::query::erase::Erased<[u8; 16usize]>>>
  29:        0x11140e5f4 - <rustc_mir_transform[6fbb44b90e67014d]::known_panics_lint::KnownPanicsLint as rustc_mir_transform[6fbb44b90e67014d]::pass_manager::MirLint>::run_lint
  30:        0x111549d8c - rustc_mir_transform[6fbb44b90e67014d]::pass_manager::run_passes_inner
  31:        0x111445844 - rustc_mir_transform[6fbb44b90e67014d]::run_analysis_to_runtime_passes
  32:        0x11144556c - rustc_mir_transform[6fbb44b90e67014d]::mir_drops_elaborated_and_const_checked
  33:        0x111a6ef28 - rustc_query_impl[2a0d338f8a3be2df]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2a0d338f8a3be2df]::query_impl::mir_drops_elaborated_and_const_checked::dynamic_query::{closure#2}::{closure#0}, rustc_middle[b8dd1e411f5154df]::query::erase::Erased<[u8; 8usize]>>
  34:        0x111acc2bc - <rustc_query_impl[2a0d338f8a3be2df]::query_impl::mir_drops_elaborated_and_const_checked::dynamic_query::{closure#2} as core[e750fbdca16b7814]::ops::function::FnOnce<(rustc_middle[b8dd1e411f5154df]::ty::context::TyCtxt, rustc_span[a17b1635b7abad55]::def_id::LocalDefId)>>::call_once
  35:        0x111a0f80c - rustc_query_system[38f10faf24a7a280]::query::plumbing::try_execute_query::<rustc_query_impl[2a0d338f8a3be2df]::DynamicConfig<rustc_data_structures[31414becc4bf50ac]::vec_cache::VecCache<rustc_span[a17b1635b7abad55]::def_id::LocalDefId, rustc_middle[b8dd1e411f5154df]::query::erase::Erased<[u8; 8usize]>, rustc_query_system[38f10faf24a7a280]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[2a0d338f8a3be2df]::plumbing::QueryCtxt, false>
  36:        0x111b96a0c - rustc_query_impl[2a0d338f8a3be2df]::query_impl::mir_drops_elaborated_and_const_checked::get_query_non_incr::__rust_end_short_backtrace
  37:        0x110c1ea34 - <rustc_session[57d16b23e567c0ef]::session::Session>::time::<(), rustc_interface[1134f998fa4a6249]::passes::run_required_analyses::{closure#3}>
  38:        0x110ce0130 - rustc_interface[1134f998fa4a6249]::passes::analysis
  39:        0x111a6f4f4 - rustc_query_impl[2a0d338f8a3be2df]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[2a0d338f8a3be2df]::query_impl::analysis::dynamic_query::{closure#2}::{closure#0}, rustc_middle[b8dd1e411f5154df]::query::erase::Erased<[u8; 1usize]>>
  40:        0x111acdf08 - <rustc_query_impl[2a0d338f8a3be2df]::query_impl::analysis::dynamic_query::{closure#2} as core[e750fbdca16b7814]::ops::function::FnOnce<(rustc_middle[b8dd1e411f5154df]::ty::context::TyCtxt, ())>>::call_once
  41:        0x11197cf2c - rustc_query_system[38f10faf24a7a280]::query::plumbing::try_execute_query::<rustc_query_impl[2a0d338f8a3be2df]::DynamicConfig<rustc_query_system[38f10faf24a7a280]::query::caches::SingleCache<rustc_middle[b8dd1e411f5154df]::query::erase::Erased<[u8; 1usize]>>, false, false, false>, rustc_query_impl[2a0d338f8a3be2df]::plumbing::QueryCtxt, false>
  42:        0x111b919d8 - rustc_query_impl[2a0d338f8a3be2df]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
  43:        0x11039973c - <rustc_middle[b8dd1e411f5154df]::ty::context::GlobalCtxt>::enter::<rustc_driver_impl[2efa7699d230cd08]::run_compiler::{closure#0}::{closure#1}::{closure#6}, core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>>
  44:        0x1103353c4 - <rustc_interface[1134f998fa4a6249]::interface::Compiler>::enter::<rustc_driver_impl[2efa7699d230cd08]::run_compiler::{closure#0}::{closure#1}, core[e750fbdca16b7814]::result::Result<core[e750fbdca16b7814]::option::Option<rustc_interface[1134f998fa4a6249]::queries::Linker>, rustc_span[a17b1635b7abad55]::ErrorGuaranteed>>
  45:        0x11036a5f4 - rustc_span[a17b1635b7abad55]::create_session_globals_then::<core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>, rustc_interface[1134f998fa4a6249]::util::run_in_thread_with_globals<rustc_interface[1134f998fa4a6249]::util::run_in_thread_pool_with_globals<rustc_interface[1134f998fa4a6249]::interface::run_compiler<core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>, rustc_driver_impl[2efa7699d230cd08]::run_compiler::{closure#0}>::{closure#1}, core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>>::{closure#0}, core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>>::{closure#0}::{closure#0}::{closure#0}>
  46:        0x11035f820 - std[5e488047b44b26af]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[1134f998fa4a6249]::util::run_in_thread_with_globals<rustc_interface[1134f998fa4a6249]::util::run_in_thread_pool_with_globals<rustc_interface[1134f998fa4a6249]::interface::run_compiler<core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>, rustc_driver_impl[2efa7699d230cd08]::run_compiler::{closure#0}>::{closure#1}, core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>>::{closure#0}, core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>>
  47:        0x110362c20 - <<std[5e488047b44b26af]::thread::Builder>::spawn_unchecked_<rustc_interface[1134f998fa4a6249]::util::run_in_thread_with_globals<rustc_interface[1134f998fa4a6249]::util::run_in_thread_pool_with_globals<rustc_interface[1134f998fa4a6249]::interface::run_compiler<core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>, rustc_driver_impl[2efa7699d230cd08]::run_compiler::{closure#0}>::{closure#1}, core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>>::{closure#0}, core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e750fbdca16b7814]::result::Result<(), rustc_span[a17b1635b7abad55]::ErrorGuaranteed>>::{closure#1} as core[e750fbdca16b7814]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  48:        0x11253b2c0 - std::sys::pal::unix::thread::Thread::new::thread_start::h4c442fe9db4e4c3f
  49:        0x19f44c2e4 - __pthread_deallocate
@LXIF LXIF 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 Feb 4, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Feb 4, 2025
@jieyouxu
Copy link
Member

jieyouxu commented Feb 4, 2025

I believe based on the ICE this is a duplicate of #134383.

@compiler-errors
Copy link
Member

This doesn't have to do with #134383. Unless you can find a way to reproduce this using the standard compiler, I'm tempted to say that whatever dfx is may be misusing compiler-internal APIs, so I'm gonna close this for now. Please let me know if you end up turning this into a rustc ice.

@compiler-errors compiler-errors closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2025
@jieyouxu jieyouxu removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Feb 9, 2025
# for free to join this conversation on GitHub. Already have an account? # 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