Skip to content

Commit eacb629

Browse files
committed
Work around unwinding bug
See issue #1374
1 parent 0490c36 commit eacb629

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comp/syntax/fold.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ fn noop_fold_item_underscore(i: item_, fld: ast_fold) -> item_ {
229229
ret alt i {
230230
item_const(t, e) { item_const(fld.fold_ty(t), fld.fold_expr(e)) }
231231
item_fn(decl, typms, body) {
232-
item_fn(fold_fn_decl(decl, fld), typms, fld.fold_block(body))
232+
let body = fld.fold_block(body);
233+
item_fn(fold_fn_decl(decl, fld), typms, body)
233234
}
234235
item_mod(m) { item_mod(fld.fold_mod(m)) }
235236
item_native_mod(nm) { item_native_mod(fld.fold_native_mod(nm)) }

0 commit comments

Comments
 (0)