From ed387e5f1d4b3bd4a4a442f8a048a608e69d73c1 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Sun, 29 Dec 2024 08:23:39 +1100 Subject: [PATCH] hashes: Hide both macros We have two macro definitions feature gated on `serde`. At some stage we added the `doc(hidden)` attribute to one of them but forgot to add it to the other. This technically makes our features non-additive. This macro is "internal" so its unlikely that this is being used in the wild. Add `doc(hidden)` to the `serde_impl` macro that is missing it. Found by `cargo semver-checks` after recent upgrade to 0.38 --- hashes/src/macros.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/hashes/src/macros.rs b/hashes/src/macros.rs index 3d5382aec..dc134577a 100644 --- a/hashes/src/macros.rs +++ b/hashes/src/macros.rs @@ -533,6 +533,7 @@ macro_rules! serde_impl( )); /// Does an "empty" serde implementation for the configuration without serde feature. +#[doc(hidden)] #[macro_export] #[cfg(not(feature = "serde"))] macro_rules! serde_impl(