Skip to content

Commit ddf8d10

Browse files
committed
Include published_docs cfg while building the docs as well.
1 parent 373ac08 commit ddf8d10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

documentation/put.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ up=".."
9292

9393
# unused_doc_comments,unused_attribute: caused by false positives from doc(cfg(...)) attributes.
9494
export RUSTFLAGS="--cfg published_docs -A unused_imports -A dead_code -A unexpected_cfgs -A unused_doc_comments -A unused_attributes"
95-
# export RUSTDOCFLAGS=...
95+
# All doc(cfg(...)) attributes are gated behind `published_docs` cfg – therefore it must be supplied as well.
96+
export RUSTDOCFLAGS="--cfg published_docs"
9697

9798
# shellcheck disable=SC2086
9899
cargo +nightly doc -p $mainCrate $features --no-deps --target-dir $up/target

0 commit comments

Comments
 (0)