Preparation for kind system overhaul

This goes before a snapshot, so that subsequenct patches can make the
transition without breaking the build. Disables kind checking pass, makes
parser accept both new and old-style kind annotation.

Issue #1177
This commit is contained in:
Marijn Haverbeke 2011-11-15 16:45:14 +01:00
parent eff7fae7b9
commit 9cf48d3753
26 changed files with 78 additions and 58 deletions

View file

@ -23,6 +23,8 @@ type def_id = {crate: crate_num, node: node_id};
const local_crate: crate_num = 0;
tag plicit<T> { explicit(T); implicit(T); }
type ty_param = {ident: ident, kind: plicit<kind>};
tag def {
@ -99,8 +101,7 @@ tag pat_ {
tag mutability { mut; imm; maybe_mut; }
tag plicit<T> { explicit(T); implicit(T); }
tag kind { kind_pinned; kind_shared; kind_unique; kind_auto; }
tag kind { kind_sendable; kind_copyable; kind_noncopyable; }
tag _auth { auth_unsafe; }