@@ -148,14 +148,6 @@ pub struct Body<'tcx> {
148148 /// Debug information pertaining to user variables, including captures.
149149 pub var_debug_info : Vec < VarDebugInfo < ' tcx > > ,
150150
151- /// Mark this MIR of a const context other than const functions as having converted a `&&` or
152- /// `||` expression into `&` or `|` respectively. This is problematic because if we ever stop
153- /// this conversion from happening and use short circuiting, we will cause the following code
154- /// to change the value of `x`: `let mut x = 42; false && { x = 55; true };`
155- ///
156- /// List of places where control flow was destroyed. Used for error reporting.
157- pub control_flow_destroyed : Vec < ( Span , String ) > ,
158-
159151 /// A span representing this MIR, for error reporting.
160152 pub span : Span ,
161153
@@ -185,7 +177,6 @@ impl<'tcx> Body<'tcx> {
185177 arg_count : usize ,
186178 var_debug_info : Vec < VarDebugInfo < ' tcx > > ,
187179 span : Span ,
188- control_flow_destroyed : Vec < ( Span , String ) > ,
189180 generator_kind : Option < GeneratorKind > ,
190181 ) -> Self {
191182 // We need `arg_count` locals, and one for the return place.
@@ -212,7 +203,6 @@ impl<'tcx> Body<'tcx> {
212203 span,
213204 required_consts : Vec :: new ( ) ,
214205 ignore_interior_mut_in_const_validation : false ,
215- control_flow_destroyed,
216206 predecessor_cache : PredecessorCache :: new ( ) ,
217207 }
218208 }
@@ -236,7 +226,6 @@ impl<'tcx> Body<'tcx> {
236226 spread_arg : None ,
237227 span : DUMMY_SP ,
238228 required_consts : Vec :: new ( ) ,
239- control_flow_destroyed : Vec :: new ( ) ,
240229 generator_kind : None ,
241230 var_debug_info : Vec :: new ( ) ,
242231 ignore_interior_mut_in_const_validation : false ,
0 commit comments