@@ -153,7 +153,7 @@ pub struct Mir<'tcx> {
153153 /// `||` expression into `&` or `|` respectively. This is problematic because if we ever stop
154154 /// this conversion from happening and use short circuiting, we will cause the following code
155155 /// to change the value of `x`: `let mut x = 42; false && { x = 55; true };`
156- pub const_can_have_let_mut_bindings : bool ,
156+ pub control_flow_destroyed : bool ,
157157
158158 /// A span representing this MIR, for error reporting
159159 pub span : Span ,
@@ -173,7 +173,7 @@ impl<'tcx> Mir<'tcx> {
173173 arg_count : usize ,
174174 upvar_decls : Vec < UpvarDecl > ,
175175 span : Span ,
176- const_can_have_let_mut_bindings : bool ,
176+ control_flow_destroyed : bool ,
177177 ) -> Self {
178178 // We need `arg_count` locals, and one for the return place
179179 assert ! (
@@ -198,7 +198,7 @@ impl<'tcx> Mir<'tcx> {
198198 spread_arg : None ,
199199 span,
200200 cache : cache:: Cache :: new ( ) ,
201- const_can_have_let_mut_bindings ,
201+ control_flow_destroyed ,
202202 }
203203 }
204204
@@ -429,7 +429,7 @@ impl_stable_hash_for!(struct Mir<'tcx> {
429429 arg_count,
430430 upvar_decls,
431431 spread_arg,
432- const_can_have_let_mut_bindings ,
432+ control_flow_destroyed ,
433433 span,
434434 cache
435435} ) ;
@@ -2983,7 +2983,7 @@ BraceStructTypeFoldableImpl! {
29832983 arg_count,
29842984 upvar_decls,
29852985 spread_arg,
2986- const_can_have_let_mut_bindings ,
2986+ control_flow_destroyed ,
29872987 span,
29882988 cache,
29892989 }
0 commit comments