Skip to content

Commit 687cc30

Browse files
committed
docs: Fix internal intra-doc links
1 parent 6774c9f commit 687cc30

File tree

4 files changed

+35
-29
lines changed

4 files changed

+35
-29
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,37 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ubuntu-latest, windows-latest, macos-latest]
17+
os: [ ubuntu-latest, windows-latest, macos-latest ]
1818
runs-on: ${{ matrix.os }}
1919
steps:
20-
- name: Checkout sources
21-
uses: actions/checkout@v3
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
2222

2323
- name: Install stable toolchain
24-
uses: actions-rs/toolchain@v1
24+
uses: dtolnay/rust-toolchain@stable
2525
with:
26-
profile: minimal
27-
toolchain: stable
28-
override: true
2926
components: rustfmt, clippy
3027

31-
- name: Run cargo fmt
32-
uses: actions-rs/cargo@v1
33-
with:
34-
command: fmt
35-
args: --all -- --check
28+
- name: Install nextest
29+
uses: taiki-e/install-action@nextest
3630

37-
- name: Run cargo clippy
38-
uses: actions-rs/cargo@v1
39-
with:
40-
command: clippy
41-
args: --all-targets -- -D warnings
31+
- name: Run fmt
32+
run: cargo fmt --all -- --check
4233

43-
- name: Run cargo test without benches
44-
uses: actions-rs/cargo@v1
45-
with:
46-
command: test
47-
args: -- --skip benches
34+
- name: Build documentation
35+
run: cargo doc --no-deps --workspace --document-private-items
36+
env:
37+
RUSTDOCFLAGS: -D warnings
38+
39+
- name: Run clippy
40+
run: cargo clippy --all-targets -- -D warnings
41+
42+
- name: Run tests
43+
run: cargo nextest run --no-fail-fast -- --skip benches
44+
45+
# doctests are special [^1] but this step does not incur a performance penalty [^2]
46+
#
47+
# [^1]: https://nexte.st/book/usage.html#limitations
48+
# [^2]: https://github.com/nextest-rs/nextest/issues/16
49+
- name: Run documentation tests
50+
run: cargo test --doc

tasm-lib/src/arithmetic/u128/overflowing_add.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ pub struct OverflowingAdd;
88
impl OverflowingAdd {
99
/// Generate code to perform an addition on `u128`s.
1010
///
11-
/// This function is called by both this snippet and [`SafeAdd`].
11+
/// This function is called by both this snippet and
12+
/// [`SafeAdd`](super::safe_add::SafeAdd).
1213
///
1314
/// BEFORE: _ rhs_3 rhs_2 rhs_1 rhs_0 lhs_3 lhs_2 lhs_1 lhs_0
1415
/// AFTER: _ sum_3 sum_2 sum_1 sum_0 is_overflow

tasm-lib/src/verifier/vm_proof_iter/dequeue_next_as.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,13 @@ impl DequeueNextAs {
244244
triton_asm! { push {bookkeeping_offset} hint bookkeeping_offset = stack[0] add }
245245
}
246246

247-
/// A `BFielcCodec`` encoding of a `Polynomial<T>` may not contain trailing zeros. This is
248-
/// because it must be easy to read the degree of the polynomial. In order to be consistent with
249-
/// that rule, we perform this check here, before returning a pointer to the polynomial to the
250-
/// caller.
247+
/// A [`BFieldCodec`] encoding of a [`Polynomial`] may not contain trailing
248+
/// zeros. This is because it must be easy to read the degree of the polynomial.
249+
/// In order to be consistent with that rule, we perform this check here, before
250+
/// returning a pointer to the polynomial to the caller.
251+
///
251252
/// ```text
252-
/// BEFORE: _ *proof_item_payload
253+
/// BEFORE: _ *proof_item_payload
253254
/// AFTER: _ *proof_item_payload
254255
/// ```
255256
fn verify_last_xfe_is_non_zero_if_payload_is_polynomial(&self) -> Vec<LabelledInstruction> {

tasm-object-derive/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ struct ParsedStruct {
8484

8585
/// The types of all relevant fields. Notably, ignored fields are _not_ included.
8686
///
87-
/// The order of the entries mimics the order of field [`field_names`].
87+
/// The order of the entries mimics the order of field
88+
/// [`field_names`](Self::field_names).
8889
field_types: Vec<syn::Type>,
8990

9091
ignored_fields: Vec<syn::Field>,

0 commit comments

Comments
 (0)