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/front/creader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/front/creader.rs') 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))); -- cgit v1.2.3