@@ -22,7 +22,7 @@ use util::ppaux;
22
22
use middle:: trans:: type_:: Type ;
23
23
24
24
use syntax:: ast;
25
- use syntax:: ast:: Ident ;
25
+ use syntax:: ast:: Name ;
26
26
use syntax:: ast_util;
27
27
use syntax:: codemap:: Span ;
28
28
@@ -188,7 +188,7 @@ pub fn trans_while(bcx: @mut Block, cond: @ast::Expr, body: &ast::Block) -> @mut
188
188
189
189
pub fn trans_loop ( bcx : @mut Block ,
190
190
body : & ast:: Block ,
191
- opt_label : Option < Ident > )
191
+ opt_label : Option < Name > )
192
192
-> @mut Block {
193
193
let _icx = push_ctxt ( "trans_loop" ) ;
194
194
let next_bcx = sub_block ( bcx, "next" ) ;
@@ -201,7 +201,7 @@ pub fn trans_loop(bcx:@mut Block,
201
201
}
202
202
203
203
pub fn trans_break_cont ( bcx : @mut Block ,
204
- opt_label : Option < Ident > ,
204
+ opt_label : Option < Name > ,
205
205
to_end : bool )
206
206
-> @mut Block {
207
207
let _icx = push_ctxt ( "trans_break_cont" ) ;
@@ -254,11 +254,11 @@ pub fn trans_break_cont(bcx: @mut Block,
254
254
return bcx;
255
255
}
256
256
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 {
258
258
return trans_break_cont ( bcx, label_opt, true ) ;
259
259
}
260
260
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 {
262
262
return trans_break_cont ( bcx, label_opt, false ) ;
263
263
}
264
264
0 commit comments