Skip to content

Commit 0040a31

Browse files
committed
Fix fold bug on expr_bind.
1 parent 019095c commit 0040a31

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/comp/middle/fold.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ fn fold_expr[ENV](&ENV env, ast_fold[ENV] fld, &@expr e) -> @expr {
444444
let vec[option.t[@ast.expr]] aargs_opt = vec();
445445
for (option.t[@ast.expr] t_opt in args_opt) {
446446
alt (t_opt) {
447+
case (none[@ast.expr]) {
448+
aargs_opt += none[@ast.expr];
449+
}
447450
case (some[@ast.expr](?e)) {
448451
aargs_opt += vec(some(fold_expr(env_, fld, e)));
449452
}

0 commit comments

Comments
 (0)