rustc: Break some of metadata's dependencies on session

This commit is contained in:
Brian Anderson 2012-05-14 20:41:33 -07:00
parent 0f49928c2d
commit 452fc46ffc
7 changed files with 30 additions and 17 deletions

View file

@ -681,7 +681,8 @@ impl helpers for ebml::ebml_deserializer {
impl helpers for @e::encode_ctxt {
fn ty_str_ctxt() -> @tyencode::ctxt {
@{ds: e::def_to_str,
@{diag: self.tcx.sess.diagnostic(),
ds: e::def_to_str,
tcx: self.tcx,
reachable: encoder::reachable(self, _),
abbrevs: tyencode::ac_use_abbrevs(self.type_abbrevs)}