8
8
//! These wrappers do not depend on the standard library and never panic.
9
9
10
10
#![ 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)]
14
16
15
17
use access:: { ReadOnly , ReadWrite , Readable , Writable , WriteOnly } ;
16
- #[ cfg( feature = "nightly " ) ]
18
+ #[ cfg( feature = "unstable " ) ]
17
19
use core:: intrinsics;
18
20
use core:: {
19
21
marker:: PhantomData ,
@@ -223,7 +225,7 @@ where
223
225
/// assert_eq!(src, [1, 2]);
224
226
/// assert_eq!(dst, [5, 1, 2]);
225
227
/// ```
226
- #[ cfg( feature = "nightly " ) ]
228
+ #[ cfg( feature = "unstable " ) ]
227
229
pub fn copy_into_slice ( & self , dst : & mut [ T ] )
228
230
where
229
231
T : Copy ,
@@ -274,7 +276,7 @@ where
274
276
/// assert_eq!(src, [1, 2, 3, 4]);
275
277
/// assert_eq!(dst, [3, 4]);
276
278
/// ```
277
- #[ cfg( feature = "nightly " ) ]
279
+ #[ cfg( feature = "unstable " ) ]
278
280
pub fn copy_from_slice ( & mut self , src : & [ T ] )
279
281
where
280
282
T : Copy ,
@@ -299,7 +301,7 @@ where
299
301
///
300
302
/// These methods are only available with the `nightly` feature enabled (requires a nightly
301
303
/// Rust compiler).
302
- #[ cfg( feature = "nightly " ) ]
304
+ #[ cfg( feature = "unstable " ) ]
303
305
impl < R , A , T , const N : usize > Volatile < R , A >
304
306
where
305
307
R : Deref < Target = [ T ; N ] > ,
0 commit comments