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 { Error::DirectiveNotYetImplemented { kind, span } => ParseError {
message: format!( message: format!(
"`{}` is not yet implemented", "the `{}` directive is not yet implemented",
DirectiveKind::Unimplemented(kind).to_ident() DirectiveKind::Unimplemented(kind).to_ident()
), ),
labels: vec![( labels: vec![(

View File

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