Skip to content

Commit

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

fix comment on PlaceMention semantics

It seems this was simply missed in rust-lang#114330.
  • Loading branch information
rust-timer committed Aug 21, 2024
2 parents 982c6f8 + 9010708 commit 4bf40d0
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 4bf40d0

Please sign in to comment.