Skip to content

Commit

Permalink
Update loom to 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Aug 9, 2023
1 parent d7c1ac2 commit 03d68a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crossbeam-epoch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ scopeguard = { version = "1.1", default-features = false }
# NOTE: This feature is outside of the normal semver guarantees and minor or
# patch versions of crossbeam may make breaking changes to them at any time.
[target.'cfg(crossbeam_loom)'.dependencies]
loom-crate = { package = "loom", version = "0.6", optional = true }
loom-crate = { package = "loom", version = "0.7", optional = true }

[dependencies.crossbeam-utils]
version = "0.8.5"
Expand Down
8 changes: 2 additions & 6 deletions crossbeam-epoch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ mod primitive {
}
pub(crate) mod sync {
pub(crate) mod atomic {
use core::sync::atomic::Ordering;
pub(crate) use loom::sync::atomic::{fence, AtomicPtr, AtomicUsize};

// FIXME: loom does not support compiler_fence at the moment.
Expand All @@ -94,7 +93,6 @@ mod primitive {
#[cfg(not(crossbeam_loom))]
#[allow(unused_imports, dead_code)]
mod primitive {
#[cfg(feature = "alloc")]
pub(crate) mod cell {
#[derive(Debug)]
#[repr(transparent)]
Expand Down Expand Up @@ -122,13 +120,11 @@ mod primitive {
}
}
}
#[cfg(feature = "alloc")]
pub(crate) mod sync {
pub(crate) mod atomic {
pub(crate) use core::sync::atomic::compiler_fence;
pub(crate) use core::sync::atomic::fence;
pub(crate) use core::sync::atomic::{AtomicPtr, AtomicUsize};
pub(crate) use core::sync::atomic::{compiler_fence, fence, AtomicPtr, AtomicUsize};
}
#[cfg(feature = "alloc")]
pub(crate) use alloc::sync::Arc;
}

Expand Down
2 changes: 1 addition & 1 deletion crossbeam-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cfg-if = "1"
# NOTE: This feature is outside of the normal semver guarantees and minor or
# patch versions of crossbeam may make breaking changes to them at any time.
[target.'cfg(crossbeam_loom)'.dependencies]
loom = { version = "0.6", optional = true }
loom = { version = "0.7", optional = true }

[dev-dependencies]
rand = "0.8"
Expand Down

0 comments on commit 03d68a2

Please sign in to comment.