Skip to content

Commit a151dfa

Browse files
catamorphismgraydon
authored andcommitted
---
yaml --- r: 2158 b: refs/heads/master c: b7dd75c h: refs/heads/master v: v3
1 parent b2c3df6 commit a151dfa

File tree

10 files changed

+834
-100
lines changed

10 files changed

+834
-100
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 3d9cf15d0b5c89f3e71d1679b0698f3884e5a5d2
2+
refs/heads/master: b7dd75c904277630675e432b3398a584d882b5ac

trunk/src/comp/middle/fold.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,6 @@ type ast_fold[ENV] =
291291
(fn(&ENV e, ann a) -> ann) fold_ann,
292292

293293
// Additional nodes.
294-
(fn(&ENV e, &span sp,
295-
&ast.block_) -> block) fold_block,
296294

297295
(fn(&ENV e, &fn_decl decl,
298296
ast.proto proto,
@@ -1716,7 +1714,6 @@ fn new_identity_fold[ENV]() -> ast_fold[ENV] {
17161714

17171715
fold_ann = bind identity_fold_ann[ENV](_,_),
17181716

1719-
fold_block = bind identity_fold_block[ENV](_,_,_),
17201717
fold_fn = bind identity_fold_fn[ENV](_,_,_,_),
17211718
fold_fn_decl = bind identity_fold_fn_decl[ENV](_,_,_),
17221719
fold_mod = bind identity_fold_mod[ENV](_,_),

trunk/src/comp/middle/typeck.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,8 @@ mod Pushdown {
14691469
}
14701470
case (none[@ast.expr]) {
14711471
Demand.simple(fcx, bloc.span, expected, plain_ty(ty.ty_nil));
1472-
ret bloc;
1472+
ret fold.respan[ast.block_](bloc.span,
1473+
rec(a = boring_ann() with bloc.node));
14731474
}
14741475
}
14751476
}

0 commit comments

Comments
 (0)