Skip to content

Commit 5058cc8

Browse files
committed
not *all* retags might be explicit in Runtime MIR
1 parent 13b7aa4 commit 5058cc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_middle/src/mir/syntax.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ pub enum MirPhase {
7878
/// MIR, this is UB.
7979
/// - Retags: If `-Zmir-emit-retag` is enabled, analysis MIR has "implicit" retags in the same way
8080
/// that Rust itself has them. Where exactly these are is generally subject to change, and so we
81-
/// don't document this here. Runtime MIR has all retags explicit.
81+
/// don't document this here. Runtime MIR has most retags explicit (though implicit retags
82+
/// can still occur at `Rvalue::{Ref,AddrOf}`).
8283
/// - Generator bodies: In analysis MIR, locals may actually be behind a pointer that user code has
8384
/// access to. This occurs in generator bodies. Such locals do not behave like other locals,
8485
/// because they eg may be aliased in surprising ways. Runtime MIR has no such special locals -

0 commit comments

Comments
 (0)