What changed, and why it matters
This commit only updates generated API text files to reflect that two error types now implement a standard Rust conversion from the Infallible type. Infallible is a type that can never actually exist, so this change adds no real behavior and cannot cause security problems. It is a documentation-like update for the public API listing.
No action needed. This is a benign API-snapshot update with no security relevance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates three API snapshot files (all-features.txt, alloc-only.txt, no-features.txt) to include newly derived From<Infallible> implementations for bitcoin_hashes::hkdf::error::MaxLengthError and bitcoin_hashes::sha256::error::MidstateError. These snapshots are generated by cargo public-api or a similar tool and record the crate’s public API surface. Adding From<Infallible> is idiomatic and safe because Infallible has no values, so the from method is unreachable and cannot introduce runtime behavior or vulnerabilities.
Changed components
hashes/api/all-features.txthashes/api/alloc-only.txthashes/api/no-features.txtInspect captured patch +12 / −0
diff --git a/hashes/api/all-features.txt b/hashes/api/all-features.txt
index a8044595..6cb2ea95 100644
--- a/hashes/api/all-features.txt
+++ b/hashes/api/all-features.txt
@@ -146,6 +146,8 @@ pub fn bitcoin_hashes::hkdf::error::MaxLengthError::clone(&self) -> bitcoin_hash
impl core::cmp::Eq for bitcoin_hashes::hkdf::error::MaxLengthError
impl core::cmp::PartialEq for bitcoin_hashes::hkdf::error::MaxLengthError
pub fn bitcoin_hashes::hkdf::error::MaxLengthError::eq(&self, other: &bitcoin_hashes::hkdf::error::MaxLengthError) -> bool
+impl core::convert::From<core::convert::Infallible> for bitcoin_hashes::hkdf::error::MaxLengthError
+pub fn bitcoin_hashes::hkdf::error::MaxLengthError::from(never: core::convert::Infallible) -> Self
impl core::error::Error for bitcoin_hashes::hkdf::error::MaxLengthError
pub fn bitcoin_hashes::hkdf::error::MaxLengthError::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
impl core::fmt::Debug for bitcoin_hashes::hkdf::error::MaxLengthError
@@ -699,6 +701,8 @@ pub fn bitcoin_hashes::sha256::error::MidstateError::clone(&self) -> bitcoin_has
impl core::cmp::Eq for bitcoin_hashes::sha256::error::MidstateError
impl core::cmp::PartialEq for bitcoin_hashes::sha256::error::MidstateError
pub fn bitcoin_hashes::sha256::error::MidstateError::eq(&self, other: &bitcoin_hashes::sha256::error::MidstateError) -> bool
+impl core::convert::From<core::convert::Infallible> for bitcoin_hashes::sha256::error::MidstateError
+pub fn bitcoin_hashes::sha256::error::MidstateError::from(never: core::convert::Infallible) -> Self
impl core::error::Error for bitcoin_hashes::sha256::error::MidstateError
pub fn bitcoin_hashes::sha256::error::MidstateError::source(&self) -> core::option::Option<&(dyn core::error::Error + 'static)>
impl core::fmt::Debug for bitcoin_hashes::sha256::error::MidstateError
diff --git a/hashes/api/alloc-only.txt b/hashes/api/alloc-only.txt
index 53320511..29fdb345 100644
--- a/hashes/api/alloc-only.txt
+++ b/hashes/api/alloc-only.txt
@@ -126,6 +126,8 @@ pub fn bitcoin_hashes::hkdf::error::MaxLengthError::clone(&self) -> bitcoin_hash
impl core::cmp::Eq for bitcoin_hashes::hkdf::error::MaxLengthError
impl core::cmp::PartialEq for bitcoin_hashes::hkdf::error::MaxLengthError
pub fn bitcoin_hashes::hkdf::error::MaxLengthError::eq(&self, other: &bitcoin_hashes::hkdf::error::MaxLengthError) -> bool
+impl core::convert::From<core::convert::Infallible> for bitcoin_hashes::hkdf::error::MaxLengthError
+pub fn bitcoin_hashes::hkdf::error::MaxLengthError::from(never: core::convert::Infallible) -> Self
impl core::fmt::Debug for bitcoin_hashes::hkdf::error::MaxLengthError
pub fn bitcoin_hashes::hkdf::error::MaxLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for bitcoin_hashes::hkdf::error::MaxLengthError
@@ -618,6 +620,8 @@ pub fn bitcoin_hashes::sha256::error::MidstateError::clone(&self) -> bitcoin_has
impl core::cmp::Eq for bitcoin_hashes::sha256::error::MidstateError
impl core::cmp::PartialEq for bitcoin_hashes::sha256::error::MidstateError
pub fn bitcoin_hashes::sha256::error::MidstateError::eq(&self, other: &bitcoin_hashes::sha256::error::MidstateError) -> bool
+impl core::convert::From<core::convert::Infallible> for bitcoin_hashes::sha256::error::MidstateError
+pub fn bitcoin_hashes::sha256::error::MidstateError::from(never: core::convert::Infallible) -> Self
impl core::fmt::Debug for bitcoin_hashes::sha256::error::MidstateError
pub fn bitcoin_hashes::sha256::error::MidstateError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for bitcoin_hashes::sha256::error::MidstateError
diff --git a/hashes/api/no-features.txt b/hashes/api/no-features.txt
index 21e12b91..31ea8329 100644
--- a/hashes/api/no-features.txt
+++ b/hashes/api/no-features.txt
@@ -118,6 +118,8 @@ pub fn bitcoin_hashes::hkdf::error::MaxLengthError::clone(&self) -> bitcoin_hash
impl core::cmp::Eq for bitcoin_hashes::hkdf::error::MaxLengthError
impl core::cmp::PartialEq for bitcoin_hashes::hkdf::error::MaxLengthError
pub fn bitcoin_hashes::hkdf::error::MaxLengthError::eq(&self, other: &bitcoin_hashes::hkdf::error::MaxLengthError) -> bool
+impl core::convert::From<core::convert::Infallible> for bitcoin_hashes::hkdf::error::MaxLengthError
+pub fn bitcoin_hashes::hkdf::error::MaxLengthError::from(never: core::convert::Infallible) -> Self
impl core::fmt::Debug for bitcoin_hashes::hkdf::error::MaxLengthError
pub fn bitcoin_hashes::hkdf::error::MaxLengthError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for bitcoin_hashes::hkdf::error::MaxLengthError
@@ -569,6 +571,8 @@ pub fn bitcoin_hashes::sha256::error::MidstateError::clone(&self) -> bitcoin_has
impl core::cmp::Eq for bitcoin_hashes::sha256::error::MidstateError
impl core::cmp::PartialEq for bitcoin_hashes::sha256::error::MidstateError
pub fn bitcoin_hashes::sha256::error::MidstateError::eq(&self, other: &bitcoin_hashes::sha256::error::MidstateError) -> bool
+impl core::convert::From<core::convert::Infallible> for bitcoin_hashes::sha256::error::MidstateError
+pub fn bitcoin_hashes::sha256::error::MidstateError::from(never: core::convert::Infallible) -> Self
impl core::fmt::Debug for bitcoin_hashes::sha256::error::MidstateError
pub fn bitcoin_hashes::sha256::error::MidstateError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result
impl core::fmt::Display for bitcoin_hashes::sha256::error::MidstateError
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.