Skip to content

Commit

Permalink
Rollup merge of rust-lang#129355 - RalfJung:PlaceMention, r=compiler-…
Browse files Browse the repository at this point in the history
…errors

fix comment on PlaceMention semantics

It seems this was simply missed in rust-lang#114330.
  • Loading branch information
matthiaskrgr authored Aug 21, 2024
2 parents 4137f3b + 9010708 commit 9fd2832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/mir/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fd2832

Please sign in to comment.