compiler/rustc_data_structures/src/sync.rs: remove atomics, but not AtomicU64!

This commit is contained in:
Askar Safin
2025-02-11 08:57:36 +03:00
parent 8f684c9db7
commit 4a2c7f48b5
4 changed files with 4 additions and 11 deletions

View File

@@ -3,9 +3,9 @@ use std::intrinsics::likely;
use std::marker::PhantomData;
use std::ops::{Deref, DerefMut};
use std::ptr::NonNull;
use std::sync::atomic::Ordering;
use std::sync::atomic::{AtomicBool, Ordering};
use crate::sync::{AtomicBool, DynSend, DynSync, ReadGuard, RwLock, WriteGuard};
use crate::sync::{DynSend, DynSync, ReadGuard, RwLock, WriteGuard};
/// A type which allows mutation using a lock until
/// the value is frozen and can be accessed lock-free.