1
Fork 0

librustc: De-record the type context. rs=derecordification

This commit is contained in:
Patrick Walton 2013-01-30 13:14:58 -08:00
parent 684aa2b7fd
commit cc9999c609

View file

@ -233,8 +233,10 @@ pub struct InstantiatedTraitRef {
tpt: ty_param_substs_and_ty
}
pub type ctxt =
@{diag: syntax::diagnostic::span_handler,
pub type ctxt = @ctxt_;
struct ctxt_ {
diag: syntax::diagnostic::span_handler,
interner: HashMap<intern_key, t_box>,
mut next_id: uint,
vecs_implicitly_copyable: bool,
@ -298,7 +300,7 @@ pub type ctxt =
// Maps a trait onto a mapping from self-ty to impl
trait_impls: HashMap<ast::def_id, HashMap<t, @Impl>>
};
}
enum tbox_flag {
has_params = 1,
@ -833,7 +835,8 @@ pub fn mk_ctxt(s: session::Session,
let vecs_implicitly_copyable =
get_lint_level(s.lint_settings.default_settings,
lint::vecs_implicitly_copyable) == allow;
@{diag: s.diagnostic(),
@ctxt_ {
diag: s.diagnostic(),
interner: interner,
mut next_id: 0u,
vecs_implicitly_copyable: vecs_implicitly_copyable,