[wgsl-in] Improve error message for UnknownIdent.

This commit is contained in:
Jim Blandy authored and Dzmitry Malyshau committed 2021-05-19 00:07:39 -04:00
1 parent 4e3dc41f3f
commit 5753f6e107
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -177,7 +177,7 @@ impl<'a> Error<'a> {
notes: vec![],
},
Error::UnknownIdent(ref ident_span, ident) => ParseError {
message: format!("unknown identifier: '{}'", ident),
message: format!("no definition in scope for identifier: '{}'", ident),
labels: vec![(ident_span.clone(), "unknown identifier".into())],
notes: vec![],
},
+1 -1
View File
@@ -83,7 +83,7 @@ fn unknown_identifier() {
return x * schmoo;
}
"###,
r###"error: unknown identifier: 'schmoo'
r###"error: no definition in scope for identifier: 'schmoo'
┌─ wgsl:3:30
│
3 │ return x * schmoo;