mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-19 18:33:30 +00:00
[wgsl-in] Improve error message for UnknownIdent.
This commit is contained in:
parent
4e3dc41f3f
commit
5753f6e107
@ -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![],
|
||||
},
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user