File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
compiler/rustc_middle/src/mir Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1588,8 +1588,15 @@ pub enum StatementKind<'tcx> {
1588
1588
FakeRead ( Box < ( FakeReadCause , Place < ' tcx > ) > ) ,
1589
1589
1590
1590
/// Write the discriminant for a variant to the enum Place.
1591
+ ///
1592
+ /// This is permitted for both generators and ADTs. This does not necessarily write to the
1593
+ /// entire place; instead, it writes to the minimum set of bytes as required by the layout for
1594
+ /// the type.
1591
1595
SetDiscriminant { place : Box < Place < ' tcx > > , variant_index : VariantIdx } ,
1592
1596
1597
+ /// Deinitializes the place.
1598
+ ///
1599
+ /// This writes `uninit` bytes to the entire place.
1593
1600
Deinit ( Box < Place < ' tcx > > ) ,
1594
1601
1595
1602
/// Start a live range for the storage of the local.
You can’t perform that action at this time.
0 commit comments