@@ -22,7 +22,7 @@ use util::ppaux;
2222use middle:: trans:: type_:: Type ;
2323
2424use syntax:: ast;
25- use syntax:: ast:: Ident ;
25+ use syntax:: ast:: Name ;
2626use syntax:: ast_util;
2727use syntax:: codemap:: Span ;
2828
@@ -188,7 +188,7 @@ pub fn trans_while(bcx: @mut Block, cond: @ast::Expr, body: &ast::Block) -> @mut
188188
189189pub fn trans_loop ( bcx : @mut Block ,
190190 body : & ast:: Block ,
191- opt_label : Option < Ident > )
191+ opt_label : Option < Name > )
192192 -> @mut Block {
193193 let _icx = push_ctxt ( "trans_loop" ) ;
194194 let next_bcx = sub_block ( bcx, "next" ) ;
@@ -201,7 +201,7 @@ pub fn trans_loop(bcx:@mut Block,
201201}
202202
203203pub fn trans_break_cont ( bcx : @mut Block ,
204- opt_label : Option < Ident > ,
204+ opt_label : Option < Name > ,
205205 to_end : bool )
206206 -> @mut Block {
207207 let _icx = push_ctxt ( "trans_break_cont" ) ;
@@ -254,11 +254,11 @@ pub fn trans_break_cont(bcx: @mut Block,
254254 return bcx;
255255}
256256
257- pub fn trans_break ( bcx : @mut Block , label_opt : Option < Ident > ) -> @mut Block {
257+ pub fn trans_break ( bcx : @mut Block , label_opt : Option < Name > ) -> @mut Block {
258258 return trans_break_cont ( bcx, label_opt, true ) ;
259259}
260260
261- pub fn trans_cont ( bcx : @mut Block , label_opt : Option < Ident > ) -> @mut Block {
261+ pub fn trans_cont ( bcx : @mut Block , label_opt : Option < Name > ) -> @mut Block {
262262 return trans_break_cont ( bcx, label_opt, false ) ;
263263}
264264
0 commit comments