@@ -179,20 +179,6 @@ jobs:
179
179
# wasm32-wasi once those work.
180
180
if : matrix.toolchain == 'nightly' && matrix.target != 'riscv64gc-unknown-linux-gnu' && matrix.target != 'wasm32-wasi'
181
181
182
- - name : Run doc tests
183
- # We explicitly pass `--doc` here because doc tests are disabled by
184
- # default in zerocopy's `Cargo.toml`. This is because some doc examples
185
- # make use of derives, and so would fail without the `derive` feature
186
- # enabled. We skip this step for `zerocopy` when the `derive` feature is
187
- # omitted for that reason.
188
- run : ./cargo.sh +${{ matrix.toolchain }} test --doc --package ${{ matrix.crate }} --target ${{ matrix.target }} ${{ matrix.features }} --verbose
189
- # Only run tests when targetting x86 (32- or 64-bit) - we're executing on
190
- # x86_64, so we can't run tests for any non-x86 target.
191
- #
192
- # TODO(https://github.com/dtolnay/trybuild/issues/184#issuecomment-1269097742):
193
- # Run compile tests when building for other targets.
194
- if : ${{ (contains(matrix.target, 'x86_64') || contains(matrix.target, 'i686')) && !(matrix.crate == 'zerocopy' && !contains(matrix.features, 'derive')) }}
195
-
196
182
- name : Clippy check
197
183
run : ./cargo.sh +${{ matrix.toolchain }} clippy --package ${{ matrix.crate }} --target ${{ matrix.target }} ${{ matrix.features }} --tests --verbose
198
184
# Clippy improves the accuracy of lints over time, and fixes bugs. Only
@@ -210,12 +196,11 @@ jobs:
210
196
run : |
211
197
export RUSTDOCFLAGS="${{ matrix.toolchain == 'nightly' && '-Z unstable-options --document-hidden-items' || '' }} $RUSTDOCFLAGS"
212
198
./cargo.sh +${{ matrix.toolchain }} doc --document-private-items --package ${{ matrix.crate }} ${{ matrix.features }}
213
- # When the `alloc` feature is disabled, `cargo doc` fails because we link
214
- # to `alloc::vec::Vec` in a doc comment, and the `alloc` crate is not in
215
- # scope without the `alloc` feature. This isn't a big deal because we care
216
- # primarily about `cargo doc` working for `docs.rs`, which enables the
217
- # `alloc` feature.
218
- if : matrix.features != '' && matrix.features != '--no-default-features'
199
+ # When the `byteorder` feature is disabled, `cargo doc` fails because we
200
+ # link to the `byteorder` module in doc comments. This isn't a big deal
201
+ # because we primarily care about `cargo doc` working for `docs.rs`, which
202
+ # enables the `byteorder` feature.
203
+ if : matrix.features != '--no-default-features'
219
204
220
205
# Check semver compatibility with the most recently-published version on
221
206
# crates.io. We do this in the matrix rather than in its own job so that it
0 commit comments