diag(naga): add def. article and noun qual. to DirectiveNotYetImplemented

This commit is contained in:
Erich Gubler 2024-10-22 17:01:23 -04:00
parent fc0a488246
commit 77a757ba9e
2 changed files with 2 additions and 2 deletions

View File

@ -916,7 +916,7 @@ impl<'a> Error<'a> {
},
Error::DirectiveNotYetImplemented { kind, span } => ParseError {
message: format!(
"`{}` is not yet implemented",
"the `{}` directive is not yet implemented",
DirectiveKind::Unimplemented(kind).to_ident()
),
labels: vec![(

View File

@ -81,7 +81,7 @@ mod test {
UnimplementedDirectiveKind::Diagnostic => {
shader = "diagnostic(off,derivative_uniformity);";
expected_msg = "\
error: `diagnostic` is not yet implemented
error: the `diagnostic` directive is not yet implemented
wgsl:1:1
1 diagnostic(off,derivative_uniformity);