diff options
| author | Patrick Walton <[email protected]> | 2010-11-10 18:19:27 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-11-10 18:20:02 -0800 |
| commit | c3bc88a3251bc966eb128edbf4803e0a88cc06ff (patch) | |
| tree | 174f0f7120b059ddec4de355e2e179a8c4aab152 /src/comp/middle/resolve.rs | |
| parent | Redo the scheme for block context chaining and termination, to simplify and s... (diff) | |
| download | rust-c3bc88a3251bc966eb128edbf4803e0a88cc06ff.tar.xz rust-c3bc88a3251bc966eb128edbf4803e0a88cc06ff.zip | |
rustc: Add an annotation to function and type items so that the typechecker can store types with them
Diffstat (limited to 'src/comp/middle/resolve.rs')
| -rw-r--r-- | src/comp/middle/resolve.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/middle/resolve.rs b/src/comp/middle/resolve.rs index 875996db..9e999bdd 100644 --- a/src/comp/middle/resolve.rs +++ b/src/comp/middle/resolve.rs @@ -28,13 +28,13 @@ fn lookup_name(&env e, ast.ident i) -> option.t[def] { fn found_def_item(@ast.item i) -> option.t[def] { alt (i.node) { - case (ast.item_fn(_, _, ?id)) { + case (ast.item_fn(_, _, ?id, _)) { ret some[def](ast.def_fn(id)); } case (ast.item_mod(_, _, ?id)) { ret some[def](ast.def_mod(id)); } - case (ast.item_ty(_, _, ?id)) { + case (ast.item_ty(_, _, ?id, _)) { ret some[def](ast.def_ty(id)); } } @@ -75,7 +75,7 @@ fn lookup_name(&env e, ast.ident i) -> option.t[def] { case (scope_item(?it)) { alt (it.node) { - case (ast.item_fn(_, ?f, _)) { + case (ast.item_fn(_, ?f, _, _)) { for (ast.arg a in f.inputs) { if (_str.eq(a.ident, i)) { ret some[def](ast.def_arg(a.id)); |