diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-11 12:59:34 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-11 12:59:34 +0200 |
| commit | 7f222423b7795cd8788b59a34542f19745bd4863 (patch) | |
| tree | 861b030c8b36ab56ab0512652ba5ebca89dee1c5 /src/comp/front | |
| parent | Cache external crate lookups in resolve.rs (diff) | |
| download | rust-7f222423b7795cd8788b59a34542f19745bd4863.tar.xz rust-7f222423b7795cd8788b59a34542f19745bd4863.zip | |
Use a const for crate-num-zero (ast.local_crate)
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/ast.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index 71d187ff..e7328d7a 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -15,6 +15,7 @@ type path_ = rec(vec[ident] idents, vec[@ty] types); type path = spanned[path_]; type crate_num = int; +const crate_num local_crate = 0; type def_num = int; type def_id = tup(crate_num, def_num); |