Skip to content

Commit 6623f68

Browse files
committed
---
yaml --- r: 3075 b: refs/heads/master c: 1513539 h: refs/heads/master i: 3073: fffc6d9 3071: fa4a634 v: v3
1 parent 6c84d95 commit 6623f68

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-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: bf5840d530ab0b96e0f760728d13cf16cd7c334e
2+
refs/heads/master: 1513539b67e81bb4ad5226ba923c388c9240fd54

trunk/src/comp/middle/trans.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6157,11 +6157,11 @@ fn trans_expr_out(&@block_ctxt cx, &@ast::expr e, out_method output)
61576157
}
61586158

61596159
case (ast::expr_assert(?a, _)) {
6160-
ret trans_check_expr(cx, a);
6160+
ret trans_check_expr(cx, a, "Assertion");
61616161
}
61626162

61636163
case (ast::expr_check(?a, _)) {
6164-
ret trans_check_expr(cx, a);
6164+
ret trans_check_expr(cx, a, "Predicate");
61656165
}
61666166

61676167
case (ast::expr_break(?a)) {
@@ -6367,10 +6367,10 @@ fn trans_log(int lvl, &@block_ctxt cx, &@ast::expr e) -> result {
63676367
ret res(after_cx, C_nil());
63686368
}
63696369

6370-
fn trans_check_expr(&@block_ctxt cx, &@ast::expr e) -> result {
6370+
fn trans_check_expr(&@block_ctxt cx, &@ast::expr e, &str s) -> result {
63716371
auto cond_res = trans_expr(cx, e);
63726372

6373-
auto expr_str = expr_to_str(e);
6373+
auto expr_str = s + " " + expr_to_str(e) + " failed";
63746374
auto fail_cx = new_sub_block_ctxt(cx, "fail");
63756375
auto fail_res = trans_fail(fail_cx, some[common::span](e.span), expr_str);
63766376

0 commit comments

Comments
 (0)