@@ -51,7 +51,7 @@ use rustc_macros::HashStable;
51
51
use rustc_query_system:: dep_graph:: DepNodeIndex ;
52
52
use rustc_query_system:: ich:: StableHashingContext ;
53
53
use rustc_serialize:: opaque:: { FileEncodeResult , FileEncoder } ;
54
- use rustc_session:: config:: { CrateType , OutputFilenames } ;
54
+ use rustc_session:: config:: CrateType ;
55
55
use rustc_session:: cstore:: { CrateStoreDyn , Untracked } ;
56
56
use rustc_session:: lint:: Lint ;
57
57
use rustc_session:: Limit ;
@@ -74,7 +74,6 @@ use std::hash::{Hash, Hasher};
74
74
use std:: iter;
75
75
use std:: mem;
76
76
use std:: ops:: { Bound , Deref } ;
77
- use std:: sync:: Arc ;
78
77
79
78
pub trait OnDiskCache < ' tcx > : rustc_data_structures:: sync:: Sync {
80
79
/// Creates a new `OnDiskCache` instance from the serialized data in `data`.
@@ -460,8 +459,6 @@ pub struct GlobalCtxt<'tcx> {
460
459
461
460
/// Stores memory for globals (statics/consts).
462
461
pub ( crate ) alloc_map : Lock < interpret:: AllocMap < ' tcx > > ,
463
-
464
- output_filenames : Arc < OutputFilenames > ,
465
462
}
466
463
467
464
impl < ' tcx > TyCtxt < ' tcx > {
@@ -591,7 +588,6 @@ impl<'tcx> TyCtxt<'tcx> {
591
588
on_disk_cache : Option < & ' tcx dyn OnDiskCache < ' tcx > > ,
592
589
queries : & ' tcx dyn query:: QueryEngine < ' tcx > ,
593
590
query_kinds : & ' tcx [ DepKindStruct < ' tcx > ] ,
594
- output_filenames : OutputFilenames ,
595
591
) -> GlobalCtxt < ' tcx > {
596
592
let data_layout = s. target . parse_data_layout ( ) . unwrap_or_else ( |err| {
597
593
s. emit_fatal ( err) ;
@@ -623,7 +619,6 @@ impl<'tcx> TyCtxt<'tcx> {
623
619
evaluation_cache : Default :: default ( ) ,
624
620
data_layout,
625
621
alloc_map : Lock :: new ( interpret:: AllocMap :: new ( ) ) ,
626
- output_filenames : Arc :: new ( output_filenames) ,
627
622
}
628
623
}
629
624
@@ -2407,7 +2402,6 @@ pub fn provide(providers: &mut ty::query::Providers) {
2407
2402
2408
2403
providers. extern_mod_stmt_cnum =
2409
2404
|tcx, id| tcx. resolutions ( ( ) ) . extern_crate_map . get ( & id) . cloned ( ) ;
2410
- providers. output_filenames = |tcx, ( ) | & tcx. output_filenames ;
2411
2405
providers. features_query = |tcx, ( ) | tcx. sess . features_untracked ( ) ;
2412
2406
providers. is_panic_runtime = |tcx, cnum| {
2413
2407
assert_eq ! ( cnum, LOCAL_CRATE ) ;
0 commit comments