Skip to content

Commit 373ac08

Browse files
committed
Disable warnings for unused_doc_comments
1 parent 1e11c63 commit 373ac08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

documentation/put.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ fi
9090
echo "$PRE build Rust docs of crate '$mainCrate' ($features)..."
9191
up=".."
9292

93-
export RUSTFLAGS="--cfg published_docs -A unused_imports -A dead_code -A unexpected_cfgs"
93+
# unused_doc_comments,unused_attribute: caused by false positives from doc(cfg(...)) attributes.
94+
export RUSTFLAGS="--cfg published_docs -A unused_imports -A dead_code -A unexpected_cfgs -A unused_doc_comments -A unused_attributes"
95+
# export RUSTDOCFLAGS=...
96+
9497
# shellcheck disable=SC2086
9598
cargo +nightly doc -p $mainCrate $features --no-deps --target-dir $up/target
9699
#mkdir -p "$up/target/doc"

0 commit comments

Comments
 (0)