Commit 688ff51
committed
Improve subtype check.
This commit improves the subtype checking logic and the error messages it
produces.
It fixes a bug where the `targets` check was not properly performing checks
against imports, which should be contravariant.
Also fixes a warning relating to a deprecated function call; the fix is to not
remove from the collection as we no longer have to since the bytes of a package
are behind an `Arc`.1 parent b294ae0 commit 688ff51
17 files changed
Lines changed: 414 additions & 154 deletions
File tree
- crates/wac-parser
- src
- ast
- resolution
- tests
- parser
- resolution/fail
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1534 | 1534 | | |
1535 | 1535 | | |
1536 | 1536 | | |
1537 | | - | |
1538 | | - | |
| 1537 | + | |
| 1538 | + | |
1539 | 1539 | | |
1540 | 1540 | | |
1541 | 1541 | | |
| |||
1788 | 1788 | | |
1789 | 1789 | | |
1790 | 1790 | | |
1791 | | - | |
| 1791 | + | |
1792 | 1792 | | |
1793 | 1793 | | |
1794 | 1794 | | |
| |||
1965 | 1965 | | |
1966 | 1966 | | |
1967 | 1967 | | |
1968 | | - | |
| 1968 | + | |
1969 | 1969 | | |
1970 | 1970 | | |
1971 | | - | |
| 1971 | + | |
1972 | 1972 | | |
1973 | 1973 | | |
1974 | 1974 | | |
| |||
2273 | 2273 | | |
2274 | 2274 | | |
2275 | 2275 | | |
| 2276 | + | |
2276 | 2277 | | |
2277 | 2278 | | |
2278 | 2279 | | |
| |||
2297 | 2298 | | |
2298 | 2299 | | |
2299 | 2300 | | |
| 2301 | + | |
| 2302 | + | |
2300 | 2303 | | |
2301 | 2304 | | |
2302 | 2305 | | |
| |||
2311 | 2314 | | |
2312 | 2315 | | |
2313 | 2316 | | |
2314 | | - | |
2315 | 2317 | | |
| 2318 | + | |
2316 | 2319 | | |
2317 | 2320 | | |
2318 | 2321 | | |
| |||
0 commit comments