aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front
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/front
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/front')
-rw-r--r--src/comp/front/creader.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/creader.rs b/src/comp/front/creader.rs
index d5067b25..75d83713 100644
--- a/src/comp/front/creader.rs
+++ b/src/comp/front/creader.rs
@@ -249,9 +249,9 @@ fn parse_ty_fn(@pstate st, str_def sd) -> tup(vec[ty.arg], ty.t) {
assert (next(st) as char == '[');
let vec[ty.arg] inputs = vec();
while (peek(st) as char != ']') {
- auto mode = ast.val;
+ auto mode = ty.mo_val;
if (peek(st) as char == '&') {
- mode = ast.alias;
+ mode = ty.mo_alias;
st.pos = st.pos + 1u;
}
inputs += vec(rec(mode=mode, ty=parse_ty(st, sd)));