Repository navigation
Open
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-bug-has-testStatus: This bug is tracked inside the repo by a `known-bug` test.Status: This bug is tracked inside the repo by a `known-bug` test.S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some wayThis issue requires a build of rustc or tooling with debug-assertions in some way
Description
Code
!! requires debug assertions !!
rustc a.rs --edition=2021
#![warn(tail_expr_drop_order)]
use core::future::Future;
use core::pin::Pin;
fn wrapped_fn<'a>() -> Pin<Box<(dyn Future<Output = Result<Box<()>, String>> + Send + 'static)>> {
Box::pin(async { Err("nope".into()) })
}
pub fn main() {}Meta
rustc --version --verbose:
c57119b9a1c86968188bb9703a7859c17f8bc71c
Error output
<output>
Metadata
Metadata
Assignees
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️S-bug-has-testStatus: This bug is tracked inside the repo by a `known-bug` test.Status: This bug is tracked inside the repo by a `known-bug` test.S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-debug-assertionsThis issue requires a build of rustc or tooling with debug-assertions in some wayThis issue requires a build of rustc or tooling with debug-assertions in some way
Activity
matthiaskrgr commentedon Jun 7, 2025
Backtrace
cyrgani commentedon Aug 18, 2026
smaller.
Rollup merge of rust-lang#164987 - Web4everyone32:async-drop-nested-s…
Rollup merge of rust-lang#164987 - Web4everyone32:async-drop-nested-s…
Rollup merge of rust-lang#164987 - Web4everyone32:async-drop-nested-s…
Rollup merge of rust-lang#164987 - Web4everyone32:async-drop-nested-s…
Rollup merge of rust-lang#164987 - Web4everyone32:async-drop-nested-s…
Rollup merge of rust-lang#164987 - Web4everyone32:async-drop-nested-s…
Unrolled build for #164987 in rollup 165234
Rollup merge of rust-lang#165266 - maxdexh:issue-165263, r=oli-obk
theemathas commentedon Nov 1, 2026
The fix is getting reverted in #165266
Rollup merge of rust-lang#165266 - maxdexh:issue-165263, r=oli-obk
Unrolled build for #165266 in rollup 165270
Rollup merge of #164987 - Web4everyone32:async-drop-nested-sync-drop,…