From 662e949540e19a5a906a5e4f13e62b625a13ba69 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 9 May 2011 12:27:03 -0700 Subject: rustc: Alias fix part 1 -- Separate out AST modes from typechecker modes, and introduce an "either value or alias" mode --- src/comp/pretty/pprust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/comp/pretty') diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index 17547bb6..d767672f 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -939,7 +939,7 @@ fn print_ty_fn(ps s, ast.proto proto, Option.t[str] id, } popen_h(s); fn print_arg(ps s, &ast.ty_arg input) { - if (middle.ty.mode_is_alias(input.mode)) {wrd(s.s, "&");} + if (input.mode == ast.alias) {wrd(s.s, "&");} print_type(s, input.ty); } auto f = print_arg; -- cgit v1.2.3