@@ -235,7 +235,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx>
235
235
) -> InterpResult < ' tcx , InterpOperand < Self :: PointerTag > > {
236
236
let l = & frame. locals [ local] ;
237
237
238
- if l. value == LocalValue :: Uninitialized {
238
+ if l. value == LocalValue :: Unallocated {
239
239
throw_machine_stop_str ! ( "tried to access an uninitialized local" )
240
240
}
241
241
@@ -433,7 +433,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
433
433
/// but not reading from them anymore.
434
434
fn remove_const ( ecx : & mut InterpCx < ' mir , ' tcx , ConstPropMachine < ' mir , ' tcx > > , local : Local ) {
435
435
ecx. frame_mut ( ) . locals [ local] =
436
- LocalState { value : LocalValue :: Uninitialized , layout : Cell :: new ( None ) } ;
436
+ LocalState { value : LocalValue :: Unallocated , layout : Cell :: new ( None ) } ;
437
437
}
438
438
439
439
fn lint_root ( & self , source_info : SourceInfo ) -> Option < HirId > {
@@ -906,7 +906,7 @@ impl<'tcx> Visitor<'tcx> for ConstPropagator<'_, 'tcx> {
906
906
let frame = self . ecx . frame_mut ( ) ;
907
907
frame. locals [ local] . value =
908
908
if let StatementKind :: StorageLive ( _) = statement. kind {
909
- LocalValue :: Uninitialized
909
+ LocalValue :: Unallocated
910
910
} else {
911
911
LocalValue :: Dead
912
912
} ;
0 commit comments