We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c43b61 commit 38612f5Copy full SHA for 38612f5
compiler/rustc_mir_dataflow/src/impls/storage_liveness.rs
@@ -97,6 +97,7 @@ impl<'tcx> crate::AnalysisDomain<'tcx> for MaybeStorageDead {
97
98
fn initialize_start_block(&self, body: &mir::Body<'tcx>, on_entry: &mut Self::Domain) {
99
assert_eq!(body.local_decls.len(), self.always_live_locals.domain_size());
100
+ // Do not iterate on return place and args, as they are trivially always live.
101
for local in body.vars_and_temps_iter() {
102
if !self.always_live_locals.contains(local) {
103
on_entry.insert(local);
0 commit comments