diff options
| author | Patrick Walton <[email protected]> | 2011-05-09 12:27:03 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-05-09 12:27:03 -0700 |
| commit | 662e949540e19a5a906a5e4f13e62b625a13ba69 (patch) | |
| tree | 42bf133c560e0dd3351344c8adcc32fddeae8f5a /src/comp/front/creader.rs | |
| parent | rustc: Replace our homebrew list of passes with the standard function and mod... (diff) | |
| download | rust-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/creader.rs')
| -rw-r--r-- | src/comp/front/creader.rs | 4 |
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))); |