adamrk opened PR #3456 from improve-import-error-with-linking
to main
:
Took a stab at https://github.com/bytecodealliance/wasmtime/issues/3388. The error message is now:
unknown import: instance `foo` exporting `bar` has not been defined
when module-linking is enabled. Hopefully that's clear for both de-sugared two-level imports and actual instance imports.
adamrk updated PR #3456 from improve-import-error-with-linking
to main
.
adamrk updated PR #3456 from improve-import-error-with-linking
to main
.
adamrk updated PR #3456 from improve-import-error-with-linking
to main
.
alexcrichton submitted PR review.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Instead of using a
String
error can this use ananyhow::Result<Definition>
like the rest of the crate?
adamrk updated PR #3456 from improve-import-error-with-linking
to main
.
adamrk submitted PR review.
adamrk created PR review comment:
:+1: done
alexcrichton created PR review comment:
I think that this
map_err
would probably be good to fold into_get_by_import
because it'd be relevant to other callers (if ever) and it's a bit odd to build up the error string across two functions.
alexcrichton submitted PR review.
alexcrichton submitted PR review.
adamrk updated PR #3456 from improve-import-error-with-linking
to main
.
adamrk created PR review comment:
done
adamrk submitted PR review.
alexcrichton merged PR #3456.
Last updated: Nov 22 2024 at 16:03 UTC