Skip to content

Commit 80edf90

Browse files
test(naga): use links in doc'd #[test]s
1 parent ec03a1d commit 80edf90

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

naga/tests/naga/validation.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ fn expect_validation_error_with_span(
6262
)
6363
}
6464

65-
/// Validation should fail if `AtomicResult` expressions are not
66-
/// populated by `Atomic` statements.
65+
/// Validation should fail if [`AtomicResult` expressions] are not
66+
/// populated by [`Atomic` statements].
67+
///
68+
/// [`AtomicResult` expressions]: Expression::AtomicResult
69+
/// [`Atomic` statements]: naga::Statement::Atomic
6770
#[test]
6871
fn populate_atomic_result() {
6972
use naga::{Module, Type, TypeInner};
@@ -1814,7 +1817,7 @@ fn entry_points_distinguished_by_stage() {
18141817
.expect("module should be valid");
18151818
}
18161819

1817-
/// It is not permitted for a `Module` to have multiple entry points with the
1820+
/// It is not permitted for a [`Module`] to have multiple entry points with the
18181821
/// same name and the same stage.
18191822
#[test]
18201823
fn entry_points_share_name() {
@@ -1860,7 +1863,7 @@ fn entry_points_share_name() {
18601863
));
18611864
}
18621865

1863-
/// Unlike WGSL, Naga IR permits a `Module` to have multiple non-entry-point
1866+
/// Unlike WGSL, Naga IR permits a [`Module`] to have multiple non-entry-point
18641867
/// functions with the same name. (Calls identify callees by handle, so the
18651868
/// names shouldn't affect validation.)
18661869
#[test]

0 commit comments

Comments
 (0)