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