[wgsl-in] Improve error message for UnknownIdent.

This commit is contained in:
Jim Blandy 2021-05-18 11:20:25 -07:00 committed by Dzmitry Malyshau
parent 4e3dc41f3f
commit 5753f6e107
2 changed files with 2 additions and 2 deletions

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![],
},

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;