Skip to content

Commit b3d767e

Browse files
committed
Rename variables
1 parent 67c099f commit b3d767e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

libcc2rs-macros/src/state_machine.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ impl StateMachine for GotoStateMachine {
8787
let cont_flag = format_ident!("__user_continue");
8888

8989
let n = self.arms.len();
90-
let mut any_break = false;
91-
let mut any_continue = false;
90+
let mut arms_have_break = false;
91+
let mut arms_have_continue = false;
9292
let body_arms: Vec<_> = self
9393
.arms
9494
.iter()
@@ -97,14 +97,14 @@ impl StateMachine for GotoStateMachine {
9797
let mut body = arm.body.clone();
9898
let (had_br, had_cn) =
9999
Self::propagate_rewrite(&mut body, &lbl, &break_flag, &cont_flag);
100-
any_break |= had_br;
101-
any_continue |= had_cn;
100+
arms_have_break |= had_br;
101+
arms_have_continue |= had_cn;
102102
Self::emit_body_arm(i as u32, &body, i + 1 == n, &lbl, &s)
103103
})
104104
.collect();
105105

106-
let (brk_decl, brk_bailout) = Self::bailout(any_break, &break_flag, quote! { break; });
107-
let (cnt_decl, cnt_bailout) = Self::bailout(any_continue, &cont_flag, quote! { continue; });
106+
let (brk_decl, brk_bailout) = Self::bailout(arms_have_break, &break_flag, quote! { break; });
107+
let (cnt_decl, cnt_bailout) = Self::bailout(arms_have_continue, &cont_flag, quote! { continue; });
108108

109109
quote! {{
110110
#brk_decl

0 commit comments

Comments
 (0)