Rollup merge of #129355 - RalfJung:PlaceMention, r=compiler-errors
fix comment on PlaceMention semantics It seems this was simply missed in https://github.com/rust-lang/rust/pull/114330.
This commit is contained in:
commit
9fd2832a7e
@ -395,7 +395,7 @@ pub enum StatementKind<'tcx> {
|
||||
/// `PlaceMention(PLACE)`.
|
||||
///
|
||||
/// 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.
|
||||
/// it without doing a load. `let _ = *ptr;` is fine even if the pointer is dangling.
|
||||
PlaceMention(Box<Place<'tcx>>),
|
||||
|
||||
/// Encodes a user's type ascription. These need to be preserved
|
||||
|
Loading…
Reference in New Issue
Block a user