Open
Description
error: internal compiler error: compiler/rustc_mir_transform/src/elaborate_drop.rs:1254:18: open drop from non-ADT `T/#0`
--> /rustc/25cdf1f67463c9365d8d83778c933ec7480e940b/library/core/src/future/async_drop.rs:48:70
|
48 | pub async unsafe fn async_drop_in_place<T: ?Sized>(_to_drop: *mut T) {
| ______________________________________________________________________^
... |
51 | | }
| |_^
thread 'rustc' panicked at compiler/rustc_mir_transform/src/elaborate_drop.rs:1254:18:
Box<dyn Any>
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
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 make sure that you have updated to the latest nightly
note: rustc 1.88.0-nightly (25cdf1f67 2025-04-28) running on aarch64-apple-darwin
note: compiler flags: --crate-type rlib -C opt-level=3 -C panic=abort -C linker-plugin-lto -C codegen-units=1 -Z unstable-options -Z remap-path-scope=all -Z force-unstable-if-unmarked -Z cross-crate-inline-threshold=yes -C rpath -C strip=debuginfo -Z force-unstable-if-unmarked -C target-feature=-crt-static -C symbol-mangling-version=hashed -C overflow-checks=no -C force-frame-pointers=no -C force-unwind-tables=no -C opt-level=s -C no-redzone -C debuginfo=0 -C strip=symbols -C collapse-macro-debuginfo=y -C panic=abort -Z unstable-options -Z export-executable-symbols -Z no-profiler-runtime -Z location-detail=none -Z plt -Z thinlto -Z dylib-lto -Z no-generate-arange-section -Z dep-info-omit-d-target -Z polonius=next -Z trim-diagnostic-paths -Z oom=abort -Z share-generics -Z merge-functions=aliases -Z inline-mir -Z inline-mir-preserve-debug=n -Z mir-opt-level=4 -Z packed-bundled-libs -Z maximal-hir-to-mir-coverage -Z terminal-urls -Z threads=0 -Z staticlib-allow-rdylib-deps -Z staticlib-prefer-dynamic -Z next-solver=coherence -Z panic-in-drop=abort -Z use-sync-unwind -Z graphviz-dark-mode -Z shell-argfiles -Z checksum-hash-algorithm=blake3 -Z trap-unreachable=no -Z mir-strip-debuginfo=all-locals -Z typing-mode-borrowck=y -Z experimental-default-bounds=y -C target-cpu=apple-m1 -Z tune-cpu=apple-m1 -C link-self-contained=+linker -Z linker-features=+lld -C link-arg=-Wl,--icf=all -C link-arg=-Wl,-no_uuid -C link-arg=-Wl,-S -C link-arg=-Wl,-dead_strip -C link-arg=-Wl,-dead_strip_dylibs -C link-arg=-Wl,-undefined,dynamic_lookup -Z binary-dep-depinfo -Z checksum-hash-algorithm=blake3
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_shims] generating MIR shim for `future::async_drop::async_drop_in_place::{closure#0}`, instance=AsyncDropGlue(DefId(0:15202 ~ core[46f5]::future::async_drop::async_drop_in_place::{closure#0}), Coroutine(DefId(0:15202 ~ core[46f5]::future::async_drop::async_drop_in_place::{closure#0}), [T/#0, (), future::ResumeTy, (), (), CoroutineWitness(DefId(0:15202 ~ core[46f5]::future::async_drop::async_drop_in_place::{closure#0}), [T/#0]), (*mut T/#0,)]))
#1 [layout_of] computing layout of `{async fn body of future::async_drop::async_drop_in_place<T>()}`
... and 1 other queries... use `env RUST_BACKTRACE=1` to see the full query stack
error: could not compile `core` (lib)