Skip to content

Commit 14a177b

Browse files
authored
Merge pull request #569 from rust-osdev/fix/docs-rs-build
fix docs.rs build
2 parents 9021f94 + ea296a8 commit 14a177b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ instructions = []
3232
memory_encryption = []
3333
nightly = ["const_fn", "step_trait", "abi_x86_interrupt", "asm_const"]
3434
abi_x86_interrupt = []
35-
# deprecated, no longer needed
36-
const_fn = []
3735
asm_const = []
3836
step_trait = []
37+
doc_cfg = []
38+
39+
# These are deprecated and no longer needed:
40+
const_fn = []
3941
doc_auto_cfg = []
4042

4143
[package.metadata.docs.rs]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![cfg_attr(not(test), no_std)]
55
#![cfg_attr(feature = "abi_x86_interrupt", feature(abi_x86_interrupt))]
66
#![cfg_attr(feature = "step_trait", feature(step_trait))]
7-
#![cfg_attr(feature = "doc_auto_cfg", feature(doc_auto_cfg))]
7+
#![cfg_attr(feature = "doc_cfg", feature(doc_cfg))]
88
#![warn(missing_docs)]
99
#![deny(missing_debug_implementations)]
1010
#![deny(unsafe_op_in_unsafe_fn)]

0 commit comments

Comments
 (0)