@@ -4,7 +4,7 @@ use rustc_data_structures::profiling::{EventId, QueryInvocationId, SelfProfilerR
44use rustc_data_structures:: sharded:: { self , Sharded } ;
55use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
66use 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 } ;
88use rustc_data_structures:: unord:: UnordMap ;
99use rustc_index:: IndexVec ;
1010use rustc_serialize:: opaque:: { FileEncodeResult , FileEncoder } ;
@@ -13,7 +13,7 @@ use std::collections::hash_map::Entry;
1313use std:: fmt:: Debug ;
1414use std:: hash:: Hash ;
1515use std:: marker:: PhantomData ;
16- use std:: sync:: atomic:: Ordering :: Relaxed ;
16+ use std:: sync:: atomic:: Ordering ;
1717
1818use super :: query:: DepGraphQuery ;
1919use super :: serialized:: { GraphEncoder , SerializedDepGraph , SerializedDepNodeIndex } ;
@@ -476,7 +476,7 @@ impl<D: Deps> DepGraph<D> {
476476 let task_deps = & mut * task_deps;
477477
478478 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 ) ;
480480 }
481481
482482 // 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> {
506506 }
507507 }
508508 } 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 ) ;
510510 }
511511 } )
512512 }
@@ -976,8 +976,8 @@ impl<D: Deps> DepGraph<D> {
976976 pub fn print_incremental_info ( & self ) {
977977 if let Some ( data) = & self . data {
978978 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 ) ,
981981 )
982982 }
983983 }
@@ -992,7 +992,7 @@ impl<D: Deps> DepGraph<D> {
992992
993993 pub ( crate ) fn next_virtual_depnode_index ( & self ) -> DepNodeIndex {
994994 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 ) ;
996996 DepNodeIndex :: from_u32 ( index)
997997 }
998998}
0 commit comments