@@ -51,7 +51,7 @@ use rustc_macros::HashStable;
5151use rustc_query_system:: dep_graph:: DepNodeIndex ;
5252use rustc_query_system:: ich:: StableHashingContext ;
5353use rustc_serialize:: opaque:: { FileEncodeResult , FileEncoder } ;
54- use rustc_session:: config:: { CrateType , OutputFilenames } ;
54+ use rustc_session:: config:: CrateType ;
5555use rustc_session:: cstore:: { CrateStoreDyn , Untracked } ;
5656use rustc_session:: lint:: Lint ;
5757use rustc_session:: Limit ;
@@ -74,7 +74,6 @@ use std::hash::{Hash, Hasher};
7474use std:: iter;
7575use std:: mem;
7676use std:: ops:: { Bound , Deref } ;
77- use std:: sync:: Arc ;
7877
7978pub trait OnDiskCache < ' tcx > : rustc_data_structures:: sync:: Sync {
8079 /// Creates a new `OnDiskCache` instance from the serialized data in `data`.
@@ -460,8 +459,6 @@ pub struct GlobalCtxt<'tcx> {
460459
461460 /// Stores memory for globals (statics/consts).
462461 pub ( crate ) alloc_map : Lock < interpret:: AllocMap < ' tcx > > ,
463-
464- output_filenames : Arc < OutputFilenames > ,
465462}
466463
467464impl < ' tcx > TyCtxt < ' tcx > {
@@ -591,7 +588,6 @@ impl<'tcx> TyCtxt<'tcx> {
591588 on_disk_cache : Option < & ' tcx dyn OnDiskCache < ' tcx > > ,
592589 queries : & ' tcx dyn query:: QueryEngine < ' tcx > ,
593590 query_kinds : & ' tcx [ DepKindStruct < ' tcx > ] ,
594- output_filenames : OutputFilenames ,
595591 ) -> GlobalCtxt < ' tcx > {
596592 let data_layout = s. target . parse_data_layout ( ) . unwrap_or_else ( |err| {
597593 s. emit_fatal ( err) ;
@@ -623,7 +619,6 @@ impl<'tcx> TyCtxt<'tcx> {
623619 evaluation_cache : Default :: default ( ) ,
624620 data_layout,
625621 alloc_map : Lock :: new ( interpret:: AllocMap :: new ( ) ) ,
626- output_filenames : Arc :: new ( output_filenames) ,
627622 }
628623 }
629624
@@ -2407,7 +2402,6 @@ pub fn provide(providers: &mut ty::query::Providers) {
24072402
24082403 providers. extern_mod_stmt_cnum =
24092404 |tcx, id| tcx. resolutions ( ( ) ) . extern_crate_map . get ( & id) . cloned ( ) ;
2410- providers. output_filenames = |tcx, ( ) | & tcx. output_filenames ;
24112405 providers. features_query = |tcx, ( ) | tcx. sess . features_untracked ( ) ;
24122406 providers. is_panic_runtime = |tcx, cnum| {
24132407 assert_eq ! ( cnum, LOCAL_CRATE ) ;
0 commit comments