Skip to content

Commit b204c93

Browse files
committed
Rename the 'nightly' feature to 'unstable'
1 parent d0790ef commit b204c93

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ repository = "https://github.com/phil-opp/volatile"
1111
[dependencies]
1212

1313
[features]
14-
nightly = []
14+
# Enable unstable features; requires Rust nightly; might break on compiler updates
15+
unstable = []
1516

1617
[package.metadata.release]
1718
no-dev-version = true

src/lib.rs

+9-7
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
//! These wrappers do not depend on the standard library and never panic.
99
1010
#![no_std]
11-
#![cfg_attr(feature = "nightly", feature(core_intrinsics))]
12-
#![cfg_attr(feature = "nightly", feature(const_generics))]
13-
#![cfg_attr(feature = "nightly", allow(incomplete_features))]
11+
#![cfg_attr(feature = "unstable", feature(core_intrinsics))]
12+
#![cfg_attr(feature = "unstable", feature(const_generics))]
13+
#![cfg_attr(feature = "unstable", allow(incomplete_features))]
14+
15+
//#![warn(missing_docs)]
1416

1517
use access::{ReadOnly, ReadWrite, Readable, Writable, WriteOnly};
16-
#[cfg(feature = "nightly")]
18+
#[cfg(feature = "unstable")]
1719
use core::intrinsics;
1820
use core::{
1921
marker::PhantomData,
@@ -223,7 +225,7 @@ where
223225
/// assert_eq!(src, [1, 2]);
224226
/// assert_eq!(dst, [5, 1, 2]);
225227
/// ```
226-
#[cfg(feature = "nightly")]
228+
#[cfg(feature = "unstable")]
227229
pub fn copy_into_slice(&self, dst: &mut [T])
228230
where
229231
T: Copy,
@@ -274,7 +276,7 @@ where
274276
/// assert_eq!(src, [1, 2, 3, 4]);
275277
/// assert_eq!(dst, [3, 4]);
276278
/// ```
277-
#[cfg(feature = "nightly")]
279+
#[cfg(feature = "unstable")]
278280
pub fn copy_from_slice(&mut self, src: &[T])
279281
where
280282
T: Copy,
@@ -299,7 +301,7 @@ where
299301
///
300302
/// These methods are only available with the `nightly` feature enabled (requires a nightly
301303
/// Rust compiler).
302-
#[cfg(feature = "nightly")]
304+
#[cfg(feature = "unstable")]
303305
impl<R, A, T, const N: usize> Volatile<R, A>
304306
where
305307
R: Deref<Target = [T; N]>,

0 commit comments

Comments
 (0)