Skip to content

Commit 8cbd936

Browse files
committed
Check if the document can be generated without warning
1 parent 32114dd commit 8cbd936

7 files changed

+18
-0
lines changed

ci/crossbeam-channel.sh

+2
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ cargo test -- --test-threads=1
1111
if [[ "$RUST_VERSION" == "nightly"* ]]; then
1212
cd benchmarks
1313
cargo check --bins
14+
15+
RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features
1416
fi

ci/crossbeam-deque.sh

+4
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ export RUSTFLAGS="-D warnings"
77

88
cargo check --bins --examples --tests
99
cargo test
10+
11+
if [[ "$RUST_VERSION" == "nightly"* ]]; then
12+
RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features
13+
fi

ci/crossbeam-epoch.sh

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ cargo test
1111
if [[ "$RUST_VERSION" == "nightly"* ]]; then
1212
cargo test --features nightly
1313

14+
RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features
15+
1416
if [[ "$OSTYPE" == "linux"* ]]; then
1517
ASAN_OPTIONS="detect_odr_violation=0 detect_leaks=0" \
1618
RUSTFLAGS="-Z sanitizer=address" \

ci/crossbeam-queue.sh

+4
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ export RUSTFLAGS="-D warnings"
77

88
cargo check --bins --examples --tests
99
cargo test
10+
11+
if [[ "$RUST_VERSION" == "nightly"* ]]; then
12+
RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features
13+
fi

ci/crossbeam-skiplist.sh

+2
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ cargo test
1010

1111
if [[ "$RUST_VERSION" == "nightly"* ]]; then
1212
cargo test --features nightly
13+
14+
RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features
1315
fi

ci/crossbeam-utils.sh

+2
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ cargo test
1010

1111
if [[ "$RUST_VERSION" == "nightly"* ]]; then
1212
cargo test --features nightly
13+
14+
RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features
1315
fi

ci/crossbeam.sh

+2
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ cargo test
1010

1111
if [[ "$RUST_VERSION" == "nightly"* ]]; then
1212
cargo test --features nightly
13+
14+
RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps --all-features
1315
fi

0 commit comments

Comments
 (0)