From c3450f3913266643dca9db23dd91caef5f1f4b2f Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 24 May 2023 22:02:24 +1000 Subject: [PATCH 1/2] Remove stale usage of doc(cfg) We no longer need to use `doc(cfg())` because we use `doc_cfg_auto`, remove it. --- bitcoin/src/blockdata/script/push_bytes.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/bitcoin/src/blockdata/script/push_bytes.rs b/bitcoin/src/blockdata/script/push_bytes.rs index ac2b9138..76fe46f1 100644 --- a/bitcoin/src/blockdata/script/push_bytes.rs +++ b/bitcoin/src/blockdata/script/push_bytes.rs @@ -106,7 +106,6 @@ mod primitive { RangeToInclusive ); #[cfg(feature = "rust_v_1_53")] - #[cfg_attr(docsrs, doc(cfg(feature = "rust_v_1_53")))] delegate_index!((Bound, Bound)); impl Index for PushBytes { From 0046bb8ad8f22560390662247b56d53bc41d1ac6 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 24 May 2023 22:03:57 +1000 Subject: [PATCH 2/2] Fix usage of cfg(rust_1_53) Our custom conditional configuration options enables for various versions of the compiler are not features. Fix the incorrect usage. --- bitcoin/src/blockdata/script/push_bytes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/blockdata/script/push_bytes.rs b/bitcoin/src/blockdata/script/push_bytes.rs index 76fe46f1..99f5ccbf 100644 --- a/bitcoin/src/blockdata/script/push_bytes.rs +++ b/bitcoin/src/blockdata/script/push_bytes.rs @@ -14,7 +14,7 @@ use crate::prelude::*; /// break invariants. Therefore auditing this module should be sufficient. mod primitive { use core::convert::{TryFrom, TryInto}; - #[cfg(feature = "rust_v_1_53")] + #[cfg(rust_v_1_53)] use core::ops::Bound; use core::ops::{ Index, Range, RangeFrom, RangeFull, RangeInclusive, RangeTo, RangeToInclusive, @@ -105,7 +105,7 @@ mod primitive { RangeInclusive, RangeToInclusive ); - #[cfg(feature = "rust_v_1_53")] + #[cfg(rust_v_1_53)] delegate_index!((Bound, Bound)); impl Index for PushBytes {