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

Use better errors in wasmlanche-macros #761

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

richardpringle
Copy link
Collaborator

@richardpringle richardpringle commented Mar 6, 2024

We shouldn't be panicking in macros, it doesn't provide good error messages. Here are the error messages with the changes.

image

The above is just a (flawed) example. The actual errors are in the new .stderr files.

@richardpringle richardpringle marked this pull request as draft March 6, 2024 22:04
@richardpringle richardpringle force-pushed the improve-macro-errors branch 2 times, most recently from 6cb80f0 to a11177f Compare March 7, 2024 20:40
@richardpringle richardpringle marked this pull request as ready for review March 7, 2024 20:41
darioush
darioush previously approved these changes Mar 7, 2024
x/programs/rust/sdk_macros/tests/compile.rs Show resolved Hide resolved
x/programs/rust/sdk_macros/tests/ui/ignore-second-param.rs Outdated Show resolved Hide resolved
x/programs/rust/sdk_macros/src/lib.rs Show resolved Hide resolved
x/programs/rust/sdk_macros/src/lib.rs Show resolved Hide resolved
@richardpringle
Copy link
Collaborator Author

@richardpringle richardpringle self-assigned this Mar 11, 2024
@richardpringle richardpringle merged commit d8ce0a5 into main Mar 11, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants