-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: open drop from non-ADT
#140930
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
Labels
-Zvalidate-mir
Unstable option: MIR validation
C-bug
Category: This is a bug.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
F-async_drop
`#![feature(async_drop)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
S-has-bisection
Status: A bisection has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Unknown labels: F-async-drop, -Z-validate-mir |
Minimized: //@compile-flags: -Zvalidate-mir -Zinline-mir=yes --crate-type=lib
#![feature(async_drop)]
use std::{
future::{Future, async_drop_in_place},
pin::pin,
task::Context,
};
fn wrong() -> impl Sized {
*"abc" // Doesn't implement Sized
}
fn weird(context: &mut Context<'_>) {
let mut e = wrong();
let h = unsafe { async_drop_in_place(&raw mut e) };
let i = pin!(h);
i.poll(context);
} Error output
|
azhogin
added a commit
to azhogin/rust
that referenced
this issue
May 13, 2025
Fix: #140967 |
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
May 23, 2025
…im-for-error-dropee-fix, r=oli-obk Async drop poll shim for error dropee generates noop body Fixes rust-lang#140930. When dropee type for async drop poll shim is `ty::Error(_)`, the generated poll function will be noop body. To avoid ICE in `elaborate_drop`.
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
May 23, 2025
…im-for-error-dropee-fix, r=oli-obk Async drop poll shim for error dropee generates noop body Fixes rust-lang#140930. When dropee type for async drop poll shim is `ty::Error(_)`, the generated poll function will be noop body. To avoid ICE in `elaborate_drop`.
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
May 25, 2025
…ror-dropee-fix, r=oli-obk Async drop poll shim for error dropee generates noop body Fixes rust-lang/rust#140930. When dropee type for async drop poll shim is `ty::Error(_)`, the generated poll function will be noop body. To avoid ICE in `elaborate_drop`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
-Zvalidate-mir
Unstable option: MIR validation
C-bug
Category: This is a bug.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
F-async_drop
`#![feature(async_drop)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
S-has-bisection
Status: A bisection has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
snippet:
Version information
Possibly related line of code:
rust/compiler/rustc_mir_transform/src/elaborate_drop.rs
Lines 1248 to 1260 in 718ddf6
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zvalidate-mir -Zinline-mir=yes
Program output
The text was updated successfully, but these errors were encountered: