aboutsummaryrefslogtreecommitdiff
path: root/src/comp/pretty
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-09 12:27:03 -0700
committerPatrick Walton <[email protected]>2011-05-09 12:27:03 -0700
commit662e949540e19a5a906a5e4f13e62b625a13ba69 (patch)
tree42bf133c560e0dd3351344c8adcc32fddeae8f5a /src/comp/pretty
parentrustc: Replace our homebrew list of passes with the standard function and mod... (diff)
downloadrust-662e949540e19a5a906a5e4f13e62b625a13ba69.tar.xz
rust-662e949540e19a5a906a5e4f13e62b625a13ba69.zip
rustc: Alias fix part 1 -- Separate out AST modes from typechecker modes, and introduce an "either value or alias" mode
Diffstat (limited to 'src/comp/pretty')
-rw-r--r--src/comp/pretty/pprust.rs2
1 files changed, 1 insertions, 1 deletions
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;