mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-26 01:11:22 +01:00
[wgsl-in] Improve error message for UnknownIdent.
This commit is contained in:
1 parent
4e3dc41f3f
commit
5753f6e107
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user