Improve linking-related error messages (#3353)

Include more contextual information about why the link failed related to
why the types didn't match.

Closes #3172
This commit is contained in:
Alex Crichton
2021-09-15 11:42:45 -05:00
committed by GitHub
parent d20194fa4c
commit 9db418cfd9
5 changed files with 214 additions and 37 deletions

View File

@@ -0,0 +1,7 @@
(module $m
(memory (export "mem") 0)
)
(assert_unlinkable
(module (import "m" "mem" (memory i64 0)))
"expected 64-bit memory, found 32-bit memory")