Skip to content

Commit ed64140

Browse files
authored
chore(ci): enforce rustdoc lints (#7738)
1 parent f4660bf commit ed64140

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/formatting.yml

+27
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,32 @@ jobs:
6565
- name: Run `cargo fmt`
6666
run: cargo fmt --all --check
6767

68+
rustdoc:
69+
name: cargo doc
70+
runs-on: ubuntu-22.04
71+
timeout-minutes: 30
72+
env:
73+
RUSTDOCFLAGS: -Dwarnings
74+
75+
steps:
76+
- name: Checkout
77+
uses: actions/checkout@v4
78+
79+
- name: Setup toolchain
80+
uses: dtolnay/rust-toolchain@1.85.0
81+
with:
82+
targets: x86_64-unknown-linux-gnu
83+
components: clippy, rustfmt
84+
85+
- uses: Swatinem/rust-cache@v2
86+
with:
87+
key: x86_64-unknown-linux-gnu
88+
cache-on-failure: true
89+
save-if: ${{ github.event_name != 'merge_group' }}
90+
91+
- name: Run `cargo doc`
92+
run: cargo doc --no-deps --document-private-items --workspace
93+
6894
eslint:
6995
name: eslint
7096
runs-on: ubuntu-22.04
@@ -143,6 +169,7 @@ jobs:
143169
needs:
144170
- clippy
145171
- rustfmt
172+
- rustdoc
146173
- eslint
147174
- nargo_fmt
148175

tooling/nargo/src/errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl<F: AcirField> NargoError<F> {
8585

8686
#[derive(Debug, Copy, Clone)]
8787
/// The opcode location for a call to a separate ACIR circuit
88-
/// This includes the function index of the caller within a [program][Program]
88+
/// This includes the function index of the caller within a [program][acvm::acir::circuit::Program]
8989
/// and the index in the callers ACIR to the specific call opcode.
9090
/// This is only resolved and set during circuit execution.
9191
pub struct ResolvedOpcodeLocation {

0 commit comments

Comments
 (0)