internals: regenerate api snapshots for ArrayVec
What changed, and why it matters
This commit only refreshes automatically-generated API snapshot text files. It adds lines documenting two already-existing ArrayVec methods (set_len and spare_capacity_mut) and reorders one existing method. No source code, logic, or behavior changed, so there is no security impact.
No action required. This is a non-functional, documentation/CI snapshot update.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates three public-API snapshot files (all-features.txt, alloc-only.txt, no-features.txt) under internals/api/. These snapshots are produced by cargo-public-api or a similar tool and record the crate’s exposed API surface. The commit adds entries for ArrayVec::set_len (unsafe) and ArrayVec::spare_capacity_mut, and moves extend_from_slice after them. The actual implementation of these methods was introduced in a prior commit; this change merely reconciles the snapshot files so that the API-check CI job passes.
Changed components
internals/api/all-features.txtinternals/api/alloc-only.txtinternals/api/no-features.txtInspect captured patch +9 / −3
diff --git a/internals/api/all-features.txt b/internals/api/all-features.txt
index 7c0b99e7..94f41fef 100644
--- a/internals/api/all-features.txt
+++ b/internals/api/all-features.txt
@@ -65,9 +65,11 @@ pub struct bitcoin_internals::array_vec::ArrayVec<T: core::marker::Copy, const C
impl<T: core::marker::Copy, const CAP: usize> bitcoin_internals::array_vec::ArrayVec<T, CAP>
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::as_mut_slice(&mut self) -> &mut [T]
pub const fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::as_slice(&self) -> &[T]
-pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::extend_from_slice(&mut self, slice: &[T])
pub const fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::from_slice(slice: &[T]) -> Self
pub const fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::new() -> Self
+pub unsafe fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::set_len(&mut self, new_len: usize)
+pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::spare_capacity_mut(&mut self) -> &mut [core::mem::maybe_uninit::MaybeUninit<T>]
+pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::extend_from_slice(&mut self, slice: &[T])
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::pop(&mut self) -> core::option::Option<T>
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::push(&mut self, element: T)
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::try_push(&mut self, element: T) -> core::result::Result<(), bitcoin_internals::array_vec::error::Error>
diff --git a/internals/api/alloc-only.txt b/internals/api/alloc-only.txt
index fe520acd..6f133d21 100644
--- a/internals/api/alloc-only.txt
+++ b/internals/api/alloc-only.txt
@@ -61,9 +61,11 @@ pub struct bitcoin_internals::array_vec::ArrayVec<T: core::marker::Copy, const C
impl<T: core::marker::Copy, const CAP: usize> bitcoin_internals::array_vec::ArrayVec<T, CAP>
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::as_mut_slice(&mut self) -> &mut [T]
pub const fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::as_slice(&self) -> &[T]
-pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::extend_from_slice(&mut self, slice: &[T])
pub const fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::from_slice(slice: &[T]) -> Self
pub const fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::new() -> Self
+pub unsafe fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::set_len(&mut self, new_len: usize)
+pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::spare_capacity_mut(&mut self) -> &mut [core::mem::maybe_uninit::MaybeUninit<T>]
+pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::extend_from_slice(&mut self, slice: &[T])
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::pop(&mut self) -> core::option::Option<T>
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::push(&mut self, element: T)
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::try_push(&mut self, element: T) -> core::result::Result<(), bitcoin_internals::array_vec::error::Error>
diff --git a/internals/api/no-features.txt b/internals/api/no-features.txt
index 6ed6475f..14bf9d6a 100644
--- a/internals/api/no-features.txt
+++ b/internals/api/no-features.txt
@@ -55,9 +55,11 @@ pub struct bitcoin_internals::array_vec::ArrayVec<T: core::marker::Copy, const C
impl<T: core::marker::Copy, const CAP: usize> bitcoin_internals::array_vec::ArrayVec<T, CAP>
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::as_mut_slice(&mut self) -> &mut [T]
pub const fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::as_slice(&self) -> &[T]
-pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::extend_from_slice(&mut self, slice: &[T])
pub const fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::from_slice(slice: &[T]) -> Self
pub const fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::new() -> Self
+pub unsafe fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::set_len(&mut self, new_len: usize)
+pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::spare_capacity_mut(&mut self) -> &mut [core::mem::maybe_uninit::MaybeUninit<T>]
+pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::extend_from_slice(&mut self, slice: &[T])
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::pop(&mut self) -> core::option::Option<T>
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::push(&mut self, element: T)
pub fn bitcoin_internals::array_vec::ArrayVec<T, CAP>::try_push(&mut self, element: T) -> core::result::Result<(), bitcoin_internals::array_vec::error::Error>
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.