Skip to content

Commit 1689c56

Browse files
committed
refactor(naga): use explicit \x20 in error output instead of trailing spaces
1 parent e939bf2 commit 1689c56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

naga/tests/naga/wgsl_errors.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,7 +2112,7 @@ error: type mismatch for reject and accept values in `select` call
21122112
21132113
5 │ _ = select(true, 1, false);
21142114
│ ^^^^ ^ accept value of type `{AbstractInt}`
2115-
│ │
2115+
│ │\x20\x20\x20\x20\x20\x20
21162116
│ reject value of type `bool`
21172117
21182118
",
@@ -3488,19 +3488,19 @@ fn inconsistent_type() {
34883488
"fn foo() -> f32 {
34893489
return dot(vec4<f32>(), vec3<f32>());
34903490
}",
3491-
r#"error: inconsistent type passed as argument #2 to `dot`
3491+
"error: inconsistent type passed as argument #2 to `dot`
34923492
┌─ wgsl:2:20
34933493
34943494
2 │ return dot(vec4<f32>(), vec3<f32>());
34953495
│ ^^^ ^^^^^^^^^^ ^^^^^^^^^^ argument #2 has type vec3<f32>
3496-
│ │
3496+
│ │\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
34973497
│ this argument has type vec4<f32>, which constrains subsequent arguments
34983498
34993499
= note: Because argument #1 has type vec4<f32>, only the following types
35003500
= note: (or types that automatically convert to them) are accepted for argument #2:
35013501
= note: allowed type: vec4<f32>
35023502
3503-
"#,
3503+
",
35043504
);
35053505
}
35063506

0 commit comments

Comments
 (0)