aboutsummaryrefslogtreecommitdiff
path: root/src/comp/util
diff options
context:
space:
mode:
authorTim Chevalier <[email protected]>2011-04-13 15:34:10 -0700
committerGraydon Hoare <[email protected]>2011-04-13 15:50:34 -0700
commit7c6e6fc5d49127e868a8323e0619c9c7597b5b18 (patch)
tree7f6e32ed9887e057d768027c4f1f03b4eec631cd /src/comp/util
parentRemove gc() call from end of lib-map.rs, works on stage0 otherwise (stage0 pr... (diff)
downloadrust-7c6e6fc5d49127e868a8323e0619c9c7597b5b18.tar.xz
rust-7c6e6fc5d49127e868a8323e0619c9c7597b5b18.zip
Make expr_while work in typestate_check
Also did some refactoring in typestate_check. All test cases in compile-fail that involve uninitialized vars now fail correctly! (All eight of them, that is.)
Diffstat (limited to 'src/comp/util')
-rw-r--r--src/comp/util/common.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs
index 58109126..006bccb0 100644
--- a/src/comp/util/common.rs
+++ b/src/comp/util/common.rs
@@ -115,14 +115,14 @@ fn plain_ann() -> ast.ann {
none[vec[@middle.ty.t]], none[@ts_ann]);
}
-fn log_expr(@ast.expr e) -> () {
+fn log_expr(&ast.expr e) -> () {
let str_writer s = string_writer();
auto out_ = mkstate(s.get_writer(), 80u);
auto out = @rec(s=out_,
comments=none[vec[front.lexer.cmnt]],
mutable cur_cmnt=0u);
- print_expr(out, e);
+ print_expr(out, @e);
log(s.get_str());
}