Skip to content

Commit c91dde5

Browse files
committed
---
yaml --- r: 13085 b: refs/heads/master c: 5d1c299 h: refs/heads/master i: 13083: 423e2f8 v: v3
1 parent a542977 commit c91dde5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 98766e388e3f1ec861331224ecafd80d39554d38
2+
refs/heads/master: 5d1c29912d7205e81726fb19571e8b706847317d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rustc/middle/block_use.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ fn visit_expr(ex: @expr, cx: ctx, v: visit::vt<ctx>) {
1515
if !cx.allow_block {
1616
alt ty::get(ty::expr_ty(cx.tcx, ex)).struct {
1717
ty::ty_fn({proto: p, _}) if is_blockish(p) {
18-
cx.tcx.sess.span_err(ex.span, "expressions with block type \
18+
cx.tcx.sess.span_err(ex.span,
19+
"expressions with stack closure type \
1920
can only appear in callee or (by-ref) argument position");
2021
}
2122
_ {}

trunk/src/test/compile-fail/block-copy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// error-pattern: block type can only appear
1+
// error-pattern: stack closure type can only appear
22

33
fn lol(f: fn()) -> fn() { ret f; }
44
fn main() {

0 commit comments

Comments
 (0)