Skip to content

Commit fdcc8a6

Browse files
committed
Yield dest also doesn't require that the local is inited
1 parent 6fd0e35 commit fdcc8a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_mir_transform/src/copy_prop.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ impl<'a, 'tcx> Visitor<'tcx> for StorageChecker<'a, 'tcx> {
206206
PlaceContext::MutatingUse(
207207
MutatingUseContext::Store
208208
| MutatingUseContext::Call
209+
| MutatingUseContext::Yield
209210
| MutatingUseContext::AsmOutput,
210211
)
211212
| PlaceContext::NonUse(_) => {

0 commit comments

Comments
 (0)