aboutsummaryrefslogtreecommitdiff
path: root/src/comp/pretty
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-03-24 21:04:29 -0400
committerGraydon Hoare <[email protected]>2011-03-25 11:01:52 -0700
commit71f058499a0e551d2b8deb5d098bdb04387dc021 (patch)
tree4e14a52c8c0092f332c3c9477b85b97799310244 /src/comp/pretty
parentAdd test for local declarations with receive. XFAIL in rustc. (diff)
downloadrust-71f058499a0e551d2b8deb5d098bdb04387dc021.tar.xz
rust-71f058499a0e551d2b8deb5d098bdb04387dc021.zip
Refactor ast.local to make room for initialization via recv
Diffstat (limited to 'src/comp/pretty')
-rw-r--r--src/comp/pretty/pprust.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs
index 25eb60ed..10cc5355 100644
--- a/src/comp/pretty/pprust.rs
+++ b/src/comp/pretty/pprust.rs
@@ -561,10 +561,10 @@ impure fn print_decl(ps s, @ast.decl decl) {
}
wrd(s, loc.ident);
alt (loc.init) {
- case (option.some[@ast.expr](?init)) {
+ case (option.some[ast.initializer](?init)) {
space(s);
wrd1(s, "=");
- print_expr(s, init);
+ print_expr(s, init.expr);
}
case (_) {}
}