Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stjepan Glavina committed Dec 11, 2018
1 parent a8e38ed commit 7afa01a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
44 changes: 22 additions & 22 deletions crossbeam-utils/src/atomic/atomic_cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<T> AtomicCell<T> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let a = AtomicCell::new(7);
/// ```
Expand All @@ -48,7 +48,7 @@ impl<T> AtomicCell<T> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let mut a = AtomicCell::new(7);
/// *a.get_mut() += 1;
Expand All @@ -64,7 +64,7 @@ impl<T> AtomicCell<T> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let mut a = AtomicCell::new(7);
/// let v = a.into_inner();
Expand All @@ -83,7 +83,7 @@ impl<T> AtomicCell<T> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// // This type is internally represented as `AtomicUsize` so we can just use atomic
/// // operations provided by it.
Expand Down Expand Up @@ -112,7 +112,7 @@ impl<T> AtomicCell<T> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let a = AtomicCell::new(7);
///
Expand All @@ -135,7 +135,7 @@ impl<T> AtomicCell<T> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let a = AtomicCell::new(7);
///
Expand All @@ -154,7 +154,7 @@ impl<T: Copy> AtomicCell<T> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let a = AtomicCell::new(7);
///
Expand All @@ -174,7 +174,7 @@ impl<T: Copy + Eq> AtomicCell<T> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let a = AtomicCell::new(1);
///
Expand All @@ -199,7 +199,7 @@ impl<T: Copy + Eq> AtomicCell<T> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let a = AtomicCell::new(1);
///
Expand Down Expand Up @@ -239,7 +239,7 @@ macro_rules! impl_arithmetic {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
#[doc = $example]
///
Expand Down Expand Up @@ -267,7 +267,7 @@ macro_rules! impl_arithmetic {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
#[doc = $example]
///
Expand All @@ -293,7 +293,7 @@ macro_rules! impl_arithmetic {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
#[doc = $example]
///
Expand All @@ -319,7 +319,7 @@ macro_rules! impl_arithmetic {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
#[doc = $example]
///
Expand All @@ -345,7 +345,7 @@ macro_rules! impl_arithmetic {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
#[doc = $example]
///
Expand Down Expand Up @@ -376,7 +376,7 @@ macro_rules! impl_arithmetic {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
#[doc = $example]
///
Expand All @@ -396,7 +396,7 @@ macro_rules! impl_arithmetic {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
#[doc = $example]
///
Expand All @@ -414,7 +414,7 @@ macro_rules! impl_arithmetic {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
#[doc = $example]
///
Expand All @@ -432,7 +432,7 @@ macro_rules! impl_arithmetic {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
#[doc = $example]
///
Expand All @@ -450,7 +450,7 @@ macro_rules! impl_arithmetic {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
#[doc = $example]
///
Expand Down Expand Up @@ -505,7 +505,7 @@ impl AtomicCell<bool> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let a = AtomicCell::new(true);
///
Expand All @@ -526,7 +526,7 @@ impl AtomicCell<bool> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let a = AtomicCell::new(false);
///
Expand All @@ -547,7 +547,7 @@ impl AtomicCell<bool> {
/// # Examples
///
/// ```
/// use crossbeam::atomic::AtomicCell;
/// use crossbeam_utils::atomic::AtomicCell;
///
/// let a = AtomicCell::new(true);
///
Expand Down
4 changes: 2 additions & 2 deletions tests/atomic_cell.rs → crossbeam-utils/tests/atomic_cell.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
extern crate crossbeam;
extern crate crossbeam_utils;

use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering::SeqCst;

use crossbeam::atomic::AtomicCell;
use crossbeam_utils::atomic::AtomicCell;

#[test]
fn is_lock_free() {
Expand Down

0 comments on commit 7afa01a

Please sign in to comment.