Skip to content

Commit 6548e5e

Browse files
committed
---
yaml --- r: 16091 b: refs/heads/try c: 5d1c299 h: refs/heads/master i: 16089: 026f3dc 16087: 74fa67c v: v3
1 parent 462d258 commit 6548e5e

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
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 98766e388e3f1ec861331224ecafd80d39554d38
5+
refs/heads/try: 5d1c29912d7205e81726fb19571e8b706847317d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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
_ {}

branches/try/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)