Skip to content

Commit f4fe78a

Browse files
authored
Use doc_cfg instead of doc_auto_cfg (#411)
#### Problem The docs builds are currently failing due to the changes in <rust-lang/rust#138907>. #### Summary of changes As recommended there, use `doc_cfg` instead of `doc_auto_cfg`.
1 parent 857c2b1 commit f4fe78a

File tree

104 files changed

+106
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+106
-106
lines changed

account-info/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Account information.
2-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2+
#![cfg_attr(docsrs, feature(doc_cfg))]
33
use {
44
solana_address::Address,
55
solana_program_error::ProgramError,

account-view/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Data structures to represent account information.
22
33
#![no_std]
4-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
4+
#![cfg_attr(docsrs, feature(doc_cfg))]
55
#![allow(clippy::arithmetic_side_effects)]
66

77
use {

account/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
2-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2+
#![cfg_attr(docsrs, feature(doc_cfg))]
33
//! The Solana [`Account`] type.
44
55
#[cfg(feature = "dev-context-only-utils")]

address-lookup-table-interface/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
2-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2+
#![cfg_attr(docsrs, feature(doc_cfg))]
33
//! The [address lookup table program][np].
44
//!
55
//! [np]: https://docs.solanalabs.com/runtime/programs#address-lookup-table-program

address/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! (e.g. 14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5).
55
66
#![no_std]
7-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7+
#![cfg_attr(docsrs, feature(doc_cfg))]
88
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
99
#![allow(clippy::arithmetic_side_effects)]
1010

atomic-u64/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_std]
2-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2+
#![cfg_attr(docsrs, feature(doc_cfg))]
33
pub use implementation::AtomicU64;
44

55
#[cfg(target_pointer_width = "64")]

big-mod-exp/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1+
#![cfg_attr(docsrs, feature(doc_cfg))]
22
#[repr(C)]
33
pub struct BigModExpParams {
44
pub base: *const u8,

bincode/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Contains a single utility function for deserializing from [bincode].
22
//!
33
//! [bincode]: https://docs.rs/bincode
4-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
4+
#![cfg_attr(docsrs, feature(doc_cfg))]
55

66
use {bincode::config::Options, solana_instruction_error::InstructionError};
77

blake3-hasher/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! [blake3]: https://github.com/BLAKE3-team/BLAKE3
44
#![no_std]
5-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
5+
#![cfg_attr(docsrs, feature(doc_cfg))]
66

77
pub use solana_hash::{Hash, ParseHashError, HASH_BYTES, MAX_BASE58_LEN};
88

bls-signatures/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_std]
2-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2+
#![cfg_attr(docsrs, feature(doc_cfg))]
33
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
44

55
extern crate alloc;

0 commit comments

Comments
 (0)