@@ -4,7 +4,7 @@ use rustc_data_structures::profiling::{EventId, QueryInvocationId, SelfProfilerR
4
4
use rustc_data_structures:: sharded:: { self , Sharded } ;
5
5
use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
6
6
use rustc_data_structures:: steal:: Steal ;
7
- use rustc_data_structures:: sync:: { AtomicU32 , AtomicU64 , Lock , Lrc , Ordering } ;
7
+ use rustc_data_structures:: sync:: { AtomicU32 , AtomicU64 , Lock , Lrc } ;
8
8
use rustc_data_structures:: unord:: UnordMap ;
9
9
use rustc_index:: IndexVec ;
10
10
use rustc_serialize:: opaque:: { FileEncodeResult , FileEncoder } ;
@@ -13,7 +13,7 @@ use std::collections::hash_map::Entry;
13
13
use std:: fmt:: Debug ;
14
14
use std:: hash:: Hash ;
15
15
use std:: marker:: PhantomData ;
16
- use std:: sync:: atomic:: Ordering :: Relaxed ;
16
+ use std:: sync:: atomic:: Ordering ;
17
17
18
18
use super :: query:: DepGraphQuery ;
19
19
use super :: serialized:: { GraphEncoder , SerializedDepGraph , SerializedDepNodeIndex } ;
@@ -476,7 +476,7 @@ impl<D: Deps> DepGraph<D> {
476
476
let task_deps = & mut * task_deps;
477
477
478
478
if cfg ! ( debug_assertions) {
479
- data. current . total_read_count . fetch_add ( 1 , Relaxed ) ;
479
+ data. current . total_read_count . fetch_add ( 1 , Ordering :: Relaxed ) ;
480
480
}
481
481
482
482
// As long as we only have a low number of reads we can avoid doing a hash
@@ -506,7 +506,7 @@ impl<D: Deps> DepGraph<D> {
506
506
}
507
507
}
508
508
} else if cfg ! ( debug_assertions) {
509
- data. current . total_duplicate_read_count . fetch_add ( 1 , Relaxed ) ;
509
+ data. current . total_duplicate_read_count . fetch_add ( 1 , Ordering :: Relaxed ) ;
510
510
}
511
511
} )
512
512
}
@@ -976,8 +976,8 @@ impl<D: Deps> DepGraph<D> {
976
976
pub fn print_incremental_info ( & self ) {
977
977
if let Some ( data) = & self . data {
978
978
data. current . encoder . borrow ( ) . print_incremental_info (
979
- data. current . total_read_count . load ( Relaxed ) ,
980
- data. current . total_duplicate_read_count . load ( Relaxed ) ,
979
+ data. current . total_read_count . load ( Ordering :: Relaxed ) ,
980
+ data. current . total_duplicate_read_count . load ( Ordering :: Relaxed ) ,
981
981
)
982
982
}
983
983
}
@@ -992,7 +992,7 @@ impl<D: Deps> DepGraph<D> {
992
992
993
993
pub ( crate ) fn next_virtual_depnode_index ( & self ) -> DepNodeIndex {
994
994
debug_assert ! ( self . data. is_none( ) ) ;
995
- let index = self . virtual_dep_node_index . fetch_add ( 1 , Relaxed ) ;
995
+ let index = self . virtual_dep_node_index . fetch_add ( 1 , Ordering :: Relaxed ) ;
996
996
DepNodeIndex :: from_u32 ( index)
997
997
}
998
998
}
0 commit comments