Clarify that raw retags are not permitted in Mir
This commit is contained in:
parent
d6da428f34
commit
cb2c7bb833
7 changed files with 17 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue