Skip to content

Commit 77a757b

Browse files
diag(naga): add def. article and noun qual. to DirectiveNotYetImplemented
1 parent fc0a488 commit 77a757b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

naga/src/front/wgsl/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ impl<'a> Error<'a> {
916916
},
917917
Error::DirectiveNotYetImplemented { kind, span } => ParseError {
918918
message: format!(
919-
"`{}` is not yet implemented",
919+
"the `{}` directive is not yet implemented",
920920
DirectiveKind::Unimplemented(kind).to_ident()
921921
),
922922
labels: vec![(

naga/src/front/wgsl/parse/directive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ mod test {
8181
UnimplementedDirectiveKind::Diagnostic => {
8282
shader = "diagnostic(off,derivative_uniformity);";
8383
expected_msg = "\
84-
error: `diagnostic` is not yet implemented
84+
error: the `diagnostic` directive is not yet implemented
8585
┌─ wgsl:1:1
8686
8787
1 │ diagnostic(off,derivative_uniformity);

0 commit comments

Comments
 (0)