frontend: validate unknown effect names before body lowering
This commit is contained in:
1 parent
4c9c5626c9
commit
762c5abe7b
40 files changed
+335
-9
No files matched your search
@@ -309,7 +309,7 @@ scope s { // every task spawned in s must
|
||||
| Code | Meaning | Usual repair |
|
||||
|---|---|---|
|
||||
| E7001 | syntax | check `;`, braces, `=>` in `match` |
|
||||
| E7002 | unknown name | spelling; declare the variable or function |
|
||||
| E7002 | unknown name | spelling; declare missing bindings; for `effect`, use a registered atom |
|
||||
| E7003 | linear value consumed without `move` | write `move x` (or borrow it with `ref`/`mut` if it must stay) |
|
||||
| E7004 | `match` not exhaustive | add the arms listed in `missing` (integers: add `_`) |
|
||||
| E7005, E1001 | type mismatch | convert with `as`, `as!`, `as%`; check borrow vs value |
|
||||
|
||||
Reference in new issue
Block a user