@@ -11,7 +11,7 @@ use rustc_hir::def_id::{CrateNum, DefId, DefIndex, LOCAL_CRATE, LocalDefId, Stab
1111use rustc_hir:: definitions:: DefPathHash ;
1212use rustc_index:: { Idx , IndexVec } ;
1313use rustc_macros:: { Decodable , Encodable } ;
14- use rustc_query_system:: query:: QuerySideEffects ;
14+ use rustc_query_system:: query:: QuerySideEffect ;
1515use rustc_serialize:: opaque:: { FileEncodeResult , FileEncoder , IntEncodedWithFixedSize , MemDecoder } ;
1616use rustc_serialize:: { Decodable , Decoder , Encodable , Encoder } ;
1717use rustc_session:: Session ;
@@ -55,9 +55,9 @@ pub struct OnDiskCache {
5555 // The complete cache data in serialized form.
5656 serialized_data : RwLock < Option < Mmap > > ,
5757
58- // Collects all `QuerySideEffects ` created during the current compilation
58+ // Collects all `QuerySideEffect ` created during the current compilation
5959 // session.
60- current_side_effects : Lock < FxHashMap < DepNodeIndex , QuerySideEffects > > ,
60+ current_side_effects : Lock < FxHashMap < DepNodeIndex , QuerySideEffect > > ,
6161
6262 file_index_to_stable_id : FxHashMap < SourceFileIndex , EncodedSourceFileId > ,
6363
@@ -68,7 +68,7 @@ pub struct OnDiskCache {
6868 // `serialized_data`.
6969 query_result_index : FxHashMap < SerializedDepNodeIndex , AbsoluteBytePos > ,
7070
71- // A map from dep-node to the position of any associated `QuerySideEffects ` in
71+ // A map from dep-node to the position of any associated `QuerySideEffect ` in
7272 // `serialized_data`.
7373 prev_side_effects_index : FxHashMap < SerializedDepNodeIndex , AbsoluteBytePos > ,
7474
@@ -270,10 +270,10 @@ impl OnDiskCache {
270270 . current_side_effects
271271 . borrow ( )
272272 . iter ( )
273- . map ( |( dep_node_index, side_effects ) | {
273+ . map ( |( dep_node_index, side_effect ) | {
274274 let pos = AbsoluteBytePos :: new ( encoder. position ( ) ) ;
275275 let dep_node_index = SerializedDepNodeIndex :: new ( dep_node_index. index ( ) ) ;
276- encoder. encode_tagged ( dep_node_index, side_effects ) ;
276+ encoder. encode_tagged ( dep_node_index, side_effect ) ;
277277
278278 ( dep_node_index, pos)
279279 } )
@@ -352,23 +352,23 @@ impl OnDiskCache {
352352 } )
353353 }
354354
355- /// Loads a `QuerySideEffects ` created during the previous compilation session.
356- pub fn load_side_effects (
355+ /// Loads a `QuerySideEffect ` created during the previous compilation session.
356+ pub fn load_side_effect (
357357 & self ,
358358 tcx : TyCtxt < ' _ > ,
359359 dep_node_index : SerializedDepNodeIndex ,
360- ) -> Option < QuerySideEffects > {
361- let side_effects : Option < QuerySideEffects > =
360+ ) -> Option < QuerySideEffect > {
361+ let side_effect : Option < QuerySideEffect > =
362362 self . load_indexed ( tcx, dep_node_index, & self . prev_side_effects_index ) ;
363- side_effects
363+ side_effect
364364 }
365365
366- /// Stores a `QuerySideEffects ` emitted during the current compilation session.
367- /// Anything stored like this will be available via `load_side_effects ` in
366+ /// Stores a `QuerySideEffect ` emitted during the current compilation session.
367+ /// Anything stored like this will be available via `load_side_effect ` in
368368 /// the next compilation session.
369- pub fn store_side_effects ( & self , dep_node_index : DepNodeIndex , side_effects : QuerySideEffects ) {
369+ pub fn store_side_effect ( & self , dep_node_index : DepNodeIndex , side_effect : QuerySideEffect ) {
370370 let mut current_side_effects = self . current_side_effects . borrow_mut ( ) ;
371- let prev = current_side_effects. insert ( dep_node_index, side_effects ) ;
371+ let prev = current_side_effects. insert ( dep_node_index, side_effect ) ;
372372 debug_assert ! ( prev. is_none( ) ) ;
373373 }
374374
0 commit comments