Skip to content

Commit 4b73b54

Browse files
committed
[naga test] Add #[track_caller] to wgsl_errors::check.
Add a `#[track_caller]` attribute to the `check` function in `wgsl_errors`, so that test failures point to the actual test case, not to the helper function.
1 parent 431782f commit 4b73b54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

naga/tests/wgsl_errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Tests for the WGSL front end.
55

66
use naga::valid::Capabilities;
77

8+
#[track_caller]
89
fn check(input: &str, snapshot: &str) {
910
let output = naga::front::wgsl::parse_str(input)
1011
.expect_err("expected parser error")

0 commit comments

Comments
 (0)