1
Fork 0

Clarify that raw retags are not permitted in Mir

This commit is contained in:
Jakob Degen 2022-12-21 10:30:38 -08:00
parent d6da428f34
commit cb2c7bb833
7 changed files with 17 additions and 19 deletions

View file

@ -320,8 +320,11 @@ pub enum StatementKind<'tcx> {
/// <https://internals.rust-lang.org/t/stacked-borrows-an-aliasing-model-for-rust/8153/> for
/// more details.
///
/// For code that is not specific to stacked borrows, you should consider retags to read
/// and modify the place in an opaque way.
/// For code that is not specific to stacked borrows, you should consider retags to read and
/// modify the place in an opaque way.
///
/// Explicit `RetagKind::Raw` is not permitted - it is implicit as a part of
/// `Rvalue::AddressOf`.
Retag(RetagKind, Box<Place<'tcx>>),
/// Encodes a user's type ascription. These need to be preserved