Skip to content

Commit ce531ef

Browse files
committed
---
yaml --- r: 2687 b: refs/heads/master c: 964898e h: refs/heads/master i: 2685: b0a0564 2683: ecff9a3 2679: d881ef0 2671: 1265200 2655: c13f008 2623: 766a3c9 2559: 5deb7d9 v: v3
1 parent 004fd8c commit ce531ef

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
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: fed0486c336c14e18eb341db8aa9de023320a603
2+
refs/heads/master: 964898eaf19d25e6786f373cf1c6f423e3f767fc

trunk/src/comp/middle/tstate/ck.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,9 @@ fn check_states_against_conditions(&fn_ctxt fcx, &_fn f, &ann a) -> () {
129129
&& ! promises(*post, fcx.id, enclosing)
130130
&& ! type_is_nil(fcx.ccx.tcx,
131131
ret_ty_of_fn(fcx.ccx.tcx, a)) ) {
132-
/* FIXME: call span_err, not span_warn, once I finish implementing
133-
! annotations */
134-
fcx.ccx.tcx.sess.span_warn(f.body.span, "In function " + fcx.name +
132+
fcx.ccx.tcx.sess.span_note(f.body.span, "In function " + fcx.name +
135133
", not all control paths return a value");
136-
fcx.ccx.tcx.sess.span_note(f.decl.output.span,
134+
fcx.ccx.tcx.sess.span_err(f.decl.output.span,
137135
"see declared return type of '" + ty_to_str(*f.decl.output) +
138136
"'");
139137
}

0 commit comments

Comments
 (0)