about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/profiling.rs
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-07-02 10:04:35 +0200
committerJakub Beránek <berykubik@gmail.com>2025-07-02 10:04:35 +0200
commitb49ca021e1569e219265651eb7bd936d5ac21886 (patch)
tree1a0e4a140e86d0f4461caa91df39baf75a67b061 /compiler/rustc_data_structures/src/profiling.rs
parente8fc30ee05496f2b3e57c1a44e33b6480f5140a2 (diff)
downloadrust-b49ca021e1569e219265651eb7bd936d5ac21886.tar.gz
rust-b49ca021e1569e219265651eb7bd936d5ac21886.zip
Use portable `AtomicU64`
Diffstat (limited to 'compiler/rustc_data_structures/src/profiling.rs')
-rw-r--r--compiler/rustc_data_structures/src/profiling.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/profiling.rs b/compiler/rustc_data_structures/src/profiling.rs
index 2903155421c..0cc14d6b0c9 100644
--- a/compiler/rustc_data_structures/src/profiling.rs
+++ b/compiler/rustc_data_structures/src/profiling.rs
@@ -88,7 +88,7 @@ use std::fmt::Display;
 use std::intrinsics::unlikely;
 use std::path::Path;
 use std::sync::Arc;
-use std::sync::atomic::{AtomicU64, Ordering};
+use std::sync::atomic::Ordering;
 use std::time::{Duration, Instant};
 use std::{fs, process};
 
@@ -100,6 +100,7 @@ use tracing::warn;
 
 use crate::fx::FxHashMap;
 use crate::outline;
+use crate::sync::AtomicU64;
 
 bitflags::bitflags! {
     #[derive(Clone, Copy)]