]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_borrowck/borrowck/mir/gather_moves.rs
Auto merge of #35162 - canndrew:bang_type_coerced, r=nikomatsakis
[rust.git] / src / librustc_borrowck / borrowck / mir / gather_moves.rs
index b3feac2bdc5e0c2b71d83caa9207ee8303b57e4f..8ae40e71bee58a6eac20fc76e55c66938aceab60 100644 (file)
@@ -614,6 +614,8 @@ fn gather_moves<'a, 'tcx>(mir: &Mir<'tcx>, tcx: TyCtxt<'a, 'tcx, 'tcx>) -> MoveD
                         Rvalue::InlineAsm { .. } => {}
                     }
                 }
+                StatementKind::StorageLive(_) |
+                StatementKind::StorageDead(_) => {}
                 StatementKind::SetDiscriminant{ .. } => {
                     span_bug!(stmt.source_info.span,
                               "SetDiscriminant should not exist during borrowck");