You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing warning for an unused const in async fn #108296
commit[0] 2022-06-30UTC: Auto merge of 98377 - davidv1992:add-lifetimes-to-argument-temporaries, r=oli-obk
commit[1] 2022-07-01UTC: Auto merge of 98706 - flip1995:clippyup, r=Dylan-DPC
commit[2] 2022-07-01UTC: Auto merge of 98752 - matthiaskrgr:rollup-uwimznc, r=matthiaskrgr
commit[3] 2022-07-01UTC: Auto merge of 98730 - matthiaskrgr:rollup-2c4d4x5, r=matthiaskrgr
commit[4] 2022-07-01UTC: Auto merge of 98402 - cjgillot:undead, r=michaelwoerister
commit[5] 2022-07-01UTC: Auto merge of 98767 - Dylan-DPC:rollup-j1gq5sr, r=Dylan-DPC
commit[6] 2022-07-01UTC: Auto merge of 93967 - cjgillot:short-struct-span, r=petrochenkov
CI has expired so I couldn't automatically bisect further, but #98402 looks like a likely candidate
Activity
clubby789 commentedon Feb 21, 2023
Bisected to
CI has expired so I couldn't automatically bisect further, but #98402 looks like a likely candidate
clubby789 commentedon Feb 21, 2023
It looks like the issue is that dead code detection doesn't work inside closures and generators (which async functions use in their desugaring)
This is denied by 1.63 but allowed on 1.64+.
@rustbot label +regression-from-stable-to-stable
rust/compiler/rustc_passes/src/dead.rs
Lines 833 to 836 in 3200982
Here, the parent of the closure is
foo::{closure#0}so checking dead code is skipped.apiraino commentedon Feb 21, 2023
WG-prioritization assigning priority (Zulip discussion).
@rustbot label -I-prioritize +P-medium
Rollup merge of rust-lang#108315 - clubby789:dead-code-in-closure, r=…