Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve diagnostics with missing trait implementations #1550

Merged
merged 2 commits into from
May 20, 2019

Conversation

alexcrichton
Copy link
Contributor

Rejigger a few spans, work around an odd rustc issue, and hopefully
produce higher quality error messages!

Closes #1528

This commit tweaks the codegen for imported functions and such (anything
that relies on some imported intrinsic or function filled in by the CLI)
to share as much code as possible on non-wasm32 platforms. This should
help us catch more errors before compiling to wasm and also just make it
easier to write UI tests!

For example a UI test previously couldn't be written for rustwasm#1528 but now
it can be, and one is include (although the error message is quite bad).
Rejigger a few spans, work around an odd rustc issue, and hopefully
produce higher quality error messages!

Closes rustwasm#1528
@alexcrichton alexcrichton merged commit bc5f73e into rustwasm:master May 20, 2019
@alexcrichton alexcrichton deleted the more-better-errors branch May 20, 2019 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement FromWasmAbi for Result<i32|u32, JsValue>
1 participant