diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/array.rs | 6 | ||||
-rw-r--r-- | src/lib.rs | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/array.rs b/src/array.rs index 75f33c6..cc84aaf 100644 --- a/src/array.rs +++ b/src/array.rs @@ -8,7 +8,7 @@ ///
/// You are generally **not** expected to need to implement this yourself. It is
/// already implemented for all the major array lengths (`0..=32` and the powers
-/// of 2 up to 4,096).
+/// of 2 up to 4,096), or for all array lengths with the feature `rustc_1_55`.
///
/// **Additional lengths can easily be added upon request.**
///
@@ -41,8 +41,8 @@ pub trait Array { fn default() -> Self;
}
-#[cfg(feature = "nightly_const_generics")]
+#[cfg(feature = "rustc_1_55")]
mod const_generic_impl;
-#[cfg(not(feature = "nightly_const_generics"))]
+#[cfg(not(feature = "rustc_1_55"))]
mod generated_impl;
@@ -4,10 +4,6 @@ feature = "nightly_slice_partition_dedup",
feature(slice_partition_dedup)
)]
-#![cfg_attr(
- feature = "nightly_const_generics",
- feature(min_const_generics, array_map)
-)]
#![cfg_attr(docs_rs, feature(doc_cfg))]
#![warn(clippy::missing_inline_in_public_items)]
#![warn(clippy::must_use_candidate)]
|