diff --git a/src/arrayvec_copy.patch b/src/arrayvec_copy.patch index 00744a9..00c9258 100644 --- a/src/arrayvec_copy.patch +++ b/src/arrayvec_copy.patch @@ -1,5 +1,5 @@ diff --git a/src/arrayvec_copy_generated.rs b/src/arrayvec_copy.rs -index b12aa9e..5597af9 100644 +index b12aa9e..8e4c3a9 100644 --- a/src/arrayvec_copy_generated.rs +++ b/src/arrayvec_copy.rs @@ -27,6 +27,9 @@ use crate::utils::MakeMaybeUninit; @@ -27,7 +27,28 @@ index b12aa9e..5597af9 100644 macro_rules! panic_oob { ($method_name:expr, $index:expr, $len:expr) => { panic!(concat!("ArrayVecCopy::", $method_name, ": index {} is out of bounds in vector of length {}"), -@@ -964,21 +959,6 @@ impl DoubleEndedIterator for IntoIter { +@@ -87,20 +82,6 @@ impl ArrayVecCopy { + } + } + +- /// Create a new empty `ArrayVecCopy` (const fn). +- /// +- /// The maximum capacity is given by the generic parameter `CAP`. +- /// +- /// ``` +- /// use arrayvec::ArrayVecCopy; +- /// +- /// static ARRAY: ArrayVecCopy = ArrayVecCopy::new_const(); +- /// ``` +- pub const fn new_const() -> ArrayVecCopy { +- assert_capacity_limit_const!(CAP); +- ArrayVecCopy { xs: MakeMaybeUninit::ARRAY, len: 0 } +- } +- + /// Return the number of elements in the `ArrayVecCopy`. + /// + /// ``` +@@ -964,21 +945,6 @@ impl DoubleEndedIterator for IntoIter { impl ExactSizeIterator for IntoIter { } diff --git a/src/arrayvec_copy.rs b/src/arrayvec_copy.rs index 5597af9..8e4c3a9 100644 --- a/src/arrayvec_copy.rs +++ b/src/arrayvec_copy.rs @@ -82,20 +82,6 @@ impl ArrayVecCopy { } } - /// Create a new empty `ArrayVecCopy` (const fn). - /// - /// The maximum capacity is given by the generic parameter `CAP`. - /// - /// ``` - /// use arrayvec::ArrayVecCopy; - /// - /// static ARRAY: ArrayVecCopy = ArrayVecCopy::new_const(); - /// ``` - pub const fn new_const() -> ArrayVecCopy { - assert_capacity_limit_const!(CAP); - ArrayVecCopy { xs: MakeMaybeUninit::ARRAY, len: 0 } - } - /// Return the number of elements in the `ArrayVecCopy`. /// /// ```