-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: broken MIR in DropGlue
Transmute is not supported in non-runtime phase Analysis(PostCleanup)
#137243
Comments
Oh, yeah, that sounds like me. Weird that nothing in-tree caught this. Is this super-specific to async or something? |
a bit simpler: //@compile-flags: --edition=2024 -Zvalidate-mir
struct HasDrop;
impl Drop for HasDrop {
fn drop(&mut self) {}
}
fn main() {
async {
vec![async { HasDrop }.await];
};
} @rustbot label -E-needs-mcve S-has-mcve |
Just ran into this today. Interestingly, the ICE doesn't occur under In debug, we have a similar ICE.
|
Copying c-e's comment from #137264 (comment) for someone else who might be interested in picking this up:
|
auto-reduced (treereduce-rust):
original code
original:
Version information
Possibly related line of code:
rust/compiler/rustc_mir_transform/src/validate.rs
Lines 74 to 86 in 3b022d8
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc --edition=2024 -Zvalidate-mir
Program output
The text was updated successfully, but these errors were encountered: