Evaluate place expression in PlaceMention
.
This commit is contained in:
parent
409661936f
commit
ddfa2463e2
13 changed files with 159 additions and 19 deletions
|
@ -331,7 +331,8 @@ pub enum StatementKind<'tcx> {
|
|||
/// This is especially useful for `let _ = PLACE;` bindings that desugar to a single
|
||||
/// `PlaceMention(PLACE)`.
|
||||
///
|
||||
/// When executed at runtime this is a nop.
|
||||
/// When executed at runtime, this computes the given place, but then discards
|
||||
/// it without doing a load. It is UB if the place is not pointing to live memory.
|
||||
///
|
||||
/// Disallowed after drop elaboration.
|
||||
PlaceMention(Box<Place<'tcx>>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue