Skip to content

Commit 84a16f0

Browse files
committed
rustc_public mir Rvalue::Reborrow comment
1 parent 0522b3b commit 84a16f0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • compiler/rustc_public/src/mir

compiler/rustc_public/src/mir/body.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,11 @@ pub enum Rvalue {
590590
/// Yields the operand unchanged
591591
Use(Operand),
592592

593+
/// Creates a bitwise copy of the source type, producing either a value of the same type (when
594+
/// Mutability::Mut) or a different type with a guaranteed equal memory layout defined by the
595+
/// CoerceShared trait. See [`Rvalue::Reborrow`] for a more detailed explanation.
596+
///
597+
/// [`Rvalue::Reborrow`]: rustc_middle::mir::Rvalue::Reborrow
593598
Reborrow(Mutability, Place),
594599
}
595600

0 commit comments

Comments
 (0)