From 71f058499a0e551d2b8deb5d098bdb04387dc021 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 24 Mar 2011 21:04:29 -0400 Subject: Refactor ast.local to make room for initialization via recv --- src/comp/pretty/pprust.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/pretty') 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 (_) {} } -- cgit v1.2.3