Skip to content

Commit 7e0ea54

Browse files
lkupergraydon
authored andcommitted
---
yaml --- r: 1996 b: refs/heads/master c: ba537fa h: refs/heads/master v: v3
1 parent 42b9c16 commit 7e0ea54

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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: d64b72f6ec26ddac775046191dca2d3659d6fb87
2+
refs/heads/master: ba537fa5f5d7b816226871d0fffe2a9de4abd0ff

trunk/src/comp/middle/trans.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import middle.ty;
1717
import back.x86;
1818
import back.abi;
1919

20+
import pretty.pprust;
21+
2022
import middle.ty.pat_ty;
2123
import middle.ty.plain_ty;
2224

@@ -4913,8 +4915,7 @@ fn trans_log(@block_ctxt cx, @ast.expr e) -> result {
49134915
fn trans_check_expr(@block_ctxt cx, @ast.expr e) -> result {
49144916
auto cond_res = trans_expr(cx, e);
49154917

4916-
// FIXME: need pretty-printer.
4917-
auto expr_str = "<expr>";
4918+
auto expr_str = pretty.pprust.expr_to_str(e);
49184919
auto fail_cx = new_sub_block_ctxt(cx, "fail");
49194920
auto fail_res = trans_fail(fail_cx, e.span, expr_str);
49204921

0 commit comments

Comments
 (0)