From 1eb54b57884f4f63561ba0b3255ea3dd4e95bc3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Fri, 19 Jan 2024 19:45:35 +0300 Subject: [PATCH] Use `doc_auto_cfg` instead of `doc_cfg` --- src/custom.rs | 1 - src/error_impls.rs | 1 - src/lib.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/custom.rs b/src/custom.rs index 8dc9cb79..79be7fc2 100644 --- a/src/custom.rs +++ b/src/custom.rs @@ -65,7 +65,6 @@ use core::{mem::MaybeUninit, num::NonZeroU32}; /// [top-level documentation](index.html#custom-implementations) this /// registration only has an effect on unsupported targets. #[macro_export] -#[cfg_attr(docsrs, doc(cfg(feature = "custom")))] macro_rules! register_custom_getrandom { ($path:path) => { // TODO(MSRV 1.37): change to unnamed block diff --git a/src/error_impls.rs b/src/error_impls.rs index a7bffb89..7f176cc6 100644 --- a/src/error_impls.rs +++ b/src/error_impls.rs @@ -1,4 +1,3 @@ -#![cfg_attr(docsrs, doc(cfg(feature = "std")))] extern crate std; use crate::Error; diff --git a/src/lib.rs b/src/lib.rs index e80ec6f5..c2454d5c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -190,7 +190,7 @@ )] #![no_std] #![warn(rust_2018_idioms, unused_lifetimes, missing_docs)] -#![cfg_attr(docsrs, feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #[macro_use] extern crate cfg_if;