librustc: Change labels to use the lifetime notation '.

This commit is contained in:
Patrick Walton
2013-04-26 16:19:26 -07:00
parent 876483dcf4
commit 670ab8ac36
6 changed files with 79 additions and 40 deletions

View File

@@ -52,7 +52,10 @@ pub fn expand_asm(cx: @ext_ctxt, sp: span, tts: &[ast::token_tree])
let mut dialect = ast::asm_att;
let mut state = Asm;
loop outer: {
// Not using labeled break to get us through one round of bootstrapping.
let mut continue = true;
while continue {
match state {
Asm => {
asm = expr_to_str(cx, p.parse_expr(),
@@ -139,20 +142,30 @@ pub fn expand_asm(cx: @ext_ctxt, sp: span, tts: &[ast::token_tree])
p.bump();
match next_state(state) {
Some(x) => x,
None => break outer
None => {
continue = false;
break
}
}
} else if *p.token == token::MOD_SEP {
p.bump();
let s = match next_state(state) {
Some(x) => x,
None => break outer
None => {
continue = false;
break
}
};
match next_state(s) {
Some(x) => x,
None => break outer
None => {
continue = false;
break
}
}
} else if *p.token == token::EOF {
break outer;
continue = false;
break;
} else {
state
};