Skip to content

Commit 901402a

Browse files
authored
Merge pull request #4371 from tgross35/fix-docs
Increase the recursion limit to fix docs.rs `ctest`
2 parents 22e7314 + 1b08efd commit 901402a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,17 @@ jobs:
230230
- uses: Swatinem/rust-cache@v2
231231
- run: cargo build -p ctest
232232

233+
docs:
234+
name: Ensure docs build
235+
runs-on: ubuntu-24.04
236+
timeout-minutes: 10
237+
steps:
238+
- uses: actions/checkout@master
239+
- name: Install Rust
240+
run: rustup update nightly --no-self-update && rustup default nightly
241+
- uses: Swatinem/rust-cache@v2
242+
- run: cargo doc --workspace --no-deps
243+
233244
# One job that "summarizes" the success state of this pipeline. This can then be added to branch
234245
# protection, rather than having to add each job separately.
235246
success:
@@ -242,6 +253,7 @@ jobs:
242253
- test_tier2_vm
243254
- verify_build
244255
- ctest_msrv
256+
- docs
245257
# Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
246258
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
247259
# dependencies fails.

ctest/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//!
1010
//! [project]: https://github.com/rust-lang/libc/blob/main/ctest/README.md
1111
12+
// FIXME(ctest): documenting `garando_syntax` overflows otherwise
13+
#![recursion_limit = "256"]
1214
#![deny(missing_docs)]
1315

1416
use std::collections::{HashMap, HashSet};

0 commit comments

Comments
 (0)