Skip to content

Commit c35883f

Browse files
committed
Remove redundant nightly feature for fetch_min, fetch_max and fetch_update
See also rust-lang/rust#48655 (comment)
1 parent ce5148e commit c35883f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ Traits over atomic primitive integer types.
88

99
## Notes
1010

11-
* Enable feature `nightly` to get `min`, `max`, `fetch_update` and
12-
`as_mut_ptr` when you have a nightly compiler available.
11+
* Enable feature `nightly` to get `as_mut_ptr` when you have a nightly compiler available.
1312

1413
## Copyright and License
1514

src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(feature = "nightly", feature(atomic_min_max, atomic_mut_ptr, no_more_cas))]
1+
#![cfg_attr(feature = "nightly", feature(atomic_mut_ptr))]
22
use std::sync::atomic::{self, Ordering};
33
use std::hash::Hash;
44
use std::fmt::{Debug, Display};
@@ -64,13 +64,10 @@ pub trait AtomicInt : Default + Send + Sync + RefUnwindSafe + UnwindSafe {
6464
ordering: Ordering
6565
) -> <Self as AtomicInt>::Prim;
6666

67-
#[cfg(feature="nightly")]
6867
fn fetch_min(&self, val: <Self as AtomicInt>::Prim, order: Ordering) -> <Self as AtomicInt>::Prim;
6968

70-
#[cfg(feature="nightly")]
7169
fn fetch_max(&self, val: <Self as AtomicInt>::Prim, order: Ordering) -> <Self as AtomicInt>::Prim;
7270

73-
#[cfg(feature="nightly")]
7471
fn fetch_update<F>(
7572
&self,
7673
f: F,
@@ -173,7 +170,6 @@ macro_rules! impl_atomic_int {
173170
self.fetch_xor(new, ordering)
174171
}
175172

176-
#[cfg(feature = "nightly")]
177173
fn fetch_min(
178174
&self,
179175
val: $prim,
@@ -182,7 +178,6 @@ macro_rules! impl_atomic_int {
182178
self.fetch_min(val, ordering)
183179
}
184180

185-
#[cfg(feature = "nightly")]
186181
fn fetch_max(
187182
&self,
188183
val: $prim,
@@ -191,7 +186,6 @@ macro_rules! impl_atomic_int {
191186
self.fetch_max(val, ordering)
192187
}
193188

194-
#[cfg(feature = "nightly")]
195189
fn fetch_update<F>(
196190
&self,
197191
f: F,

0 commit comments

Comments
 (0)