rustc: remove ownership of tcx from trans' context.

This commit is contained in:
Eduard Burtescu 2015-06-14 01:49:28 +03:00
parent ff8fee180b
commit 2e997ef2d4
10 changed files with 161 additions and 196 deletions

View file

@ -101,11 +101,10 @@ pub const INITIAL_DISCRIMINANT_VALUE: Disr = 0;
/// The complete set of all analyses described in this module. This is
/// produced by the driver and fed to trans and later passes.
pub struct CrateAnalysis<'tcx> {
pub struct CrateAnalysis {
pub export_map: ExportMap,
pub exported_items: middle::privacy::ExportedItems,
pub public_items: middle::privacy::PublicItems,
pub ty_cx: ty::ctxt<'tcx>,
pub reachable: NodeSet,
pub name: String,
pub glob_map: Option<GlobMap>,