#163195·Rust

嵌套的异步 fn 转发使每层的未来大小增加一倍(深度为 10 时为 16 MiB);深度为 7 时 2 MiB 堆栈溢出

作者: jferments创建于 2026年9月23日更新于 2026年9月28日
标签C-bugneeds-triage

Still-reproducible case of #62958 on current nightly: nested `async fn` forwarding wrappers double the future size per layer, and construction codegen reserves stack proportional to it (hard overflow at depth 7 on a 2 MiB thread stack). Related layout work: #135527.