Skip to content

Commit 03ee8bf

Browse files
committed
---
yaml --- r: 233988 b: refs/heads/beta c: c493084 h: refs/heads/master v: v3
1 parent f90d88e commit 03ee8bf

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 1a6934840edcef6bb37171f7d6d035ab59f5d725
26+
refs/heads/beta: c493084ec1b35b7ab59aa0878354bca10a610360
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/librustc_front/fold.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,8 +1124,14 @@ pub fn noop_fold_expr<T: Folder>(Expr {id, node, span}: Expr, folder: &mut T) ->
11241124
});
11251125
ExprPath(qself, folder.fold_path(path))
11261126
}
1127-
ExprBreak(opt_ident) => ExprBreak(opt_ident.map(|x| folder.fold_ident(x))),
1128-
ExprAgain(opt_ident) => ExprAgain(opt_ident.map(|x| folder.fold_ident(x))),
1127+
ExprBreak(opt_ident) => ExprBreak(opt_ident.map(|label|
1128+
respan(folder.new_span(label.span),
1129+
folder.fold_ident(label.node)))
1130+
),
1131+
ExprAgain(opt_ident) => ExprAgain(opt_ident.map(|label|
1132+
respan(folder.new_span(label.span),
1133+
folder.fold_ident(label.node)))
1134+
),
11291135
ExprRet(e) => ExprRet(e.map(|x| folder.fold_expr(x))),
11301136
ExprInlineAsm(InlineAsm {
11311137
inputs,

branches/beta/src/librustc_front/hir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,9 +730,9 @@ pub enum Expr_ {
730730
/// A referencing operation (`&a` or `&mut a`)
731731
ExprAddrOf(Mutability, P<Expr>),
732732
/// A `break`, with an optional label to break
733-
ExprBreak(Option<Ident>),
733+
ExprBreak(Option<SpannedIdent>),
734734
/// A `continue`, with an optional label
735-
ExprAgain(Option<Ident>),
735+
ExprAgain(Option<SpannedIdent>),
736736
/// A `return`, with an optional value to be returned
737737
ExprRet(Option<P<Expr>>),
738738

branches/beta/src/librustc_front/print/pprust.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,15 +1587,15 @@ impl<'a> State<'a> {
15871587
try!(word(&mut self.s, "break"));
15881588
try!(space(&mut self.s));
15891589
if let Some(ident) = opt_ident {
1590-
try!(self.print_ident(ident));
1590+
try!(self.print_ident(ident.node));
15911591
try!(space(&mut self.s));
15921592
}
15931593
}
15941594
hir::ExprAgain(opt_ident) => {
15951595
try!(word(&mut self.s, "continue"));
15961596
try!(space(&mut self.s));
15971597
if let Some(ident) = opt_ident {
1598-
try!(self.print_ident(ident));
1598+
try!(self.print_ident(ident.node));
15991599
try!(space(&mut self.s))
16001600
}
16011601
}

0 commit comments

Comments
 (0)