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 ef1831a commit eaaa290Copy full SHA for eaaa290
compiler/rustc_mir_transform/src/coroutine.rs
@@ -1510,13 +1510,6 @@ fn create_cases<'tcx>(
1510
1511
// Create StorageLive instructions for locals with live storage
1512
for i in 0..(body.local_decls.len()) {
1513
- if i == 2 {
1514
- // The resume argument is live on function entry. Don't insert a
1515
- // `StorageLive`, or the following `Assign` will read from uninitialized
1516
- // memory.
1517
- continue;
1518
- }
1519
-
1520
let l = Local::new(i);
1521
let needs_storage_live = point.storage_liveness.contains(l)
1522
&& !transform.remap.contains_key(&l)
0 commit comments