File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
branches/try/src/libsyntax Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cbd1eefbd350797b783df119fed7956d7e1c74ad
5
- refs/heads/try: 0af2bd829e6aaab4faf2cc135bd8b01db728417b
5
+ refs/heads/try: 4ac10f8f6e8e07c70fadb676170c5402442e2243
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -690,11 +690,19 @@ pub fn noop_fold_expr(e: &Expr_, fld: @ast_fold) -> Expr_ {
690
690
ExprBreak ( ref opt_ident) => {
691
691
// FIXME #6993: add fold_name to fold.... then cut out the
692
692
// bogus Name->Ident->Name conversion.
693
- ExprBreak ( opt_ident. map_move ( |x| fld. fold_ident ( Ident :: new ( x) ) . name ) )
693
+ ExprBreak ( opt_ident. map_move ( |x| {
694
+ // FIXME #9129: Assigning the new ident to a temporary to work around codegen bug
695
+ let newx = Ident :: new ( x) ;
696
+ fld. fold_ident ( newx) . name
697
+ } ) )
694
698
}
695
699
ExprAgain ( ref opt_ident) => {
696
700
// FIXME #6993: add fold_name to fold....
697
- ExprAgain ( opt_ident. map_move ( |x| fld. fold_ident ( Ident :: new ( x) ) . name ) )
701
+ ExprAgain ( opt_ident. map_move ( |x| {
702
+ // FIXME #9129: Assigning the new ident to a temporary to work around codegen bug
703
+ let newx = Ident :: new ( x) ;
704
+ fld. fold_ident ( newx) . name
705
+ } ) )
698
706
}
699
707
ExprRet ( ref e) => {
700
708
ExprRet ( e. map_move ( |x| fld. fold_expr ( x) ) )
You can’t perform that action at this time.
0 commit comments