From 941e19468ab6239a220ec3214c584e281636a26d Mon Sep 17 00:00:00 2001 From: Jakob Degen Date: Mon, 25 Apr 2022 14:24:14 -0400 Subject: [PATCH] Correct documentation for `ShallowInitBox` --- compiler/rustc_middle/src/mir/mod.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/rustc_middle/src/mir/mod.rs b/compiler/rustc_middle/src/mir/mod.rs index 881f59ae464c9..883fc72cd56c1 100644 --- a/compiler/rustc_middle/src/mir/mod.rs +++ b/compiler/rustc_middle/src/mir/mod.rs @@ -2581,8 +2581,6 @@ pub enum Rvalue<'tcx> { /// This is different from a normal transmute because dataflow analysis will treat the box as /// initialized but its content as uninitialized. Like other pointer casts, this in general /// affects alias analysis. - /// - /// Disallowed after drop elaboration. ShallowInitBox(Operand<'tcx>, Ty<'tcx>), }