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 trybuild for testing expected proc macro errors #205

Merged
merged 2 commits into from
Jun 19, 2019

Conversation

sphynx
Copy link
Contributor

@sphynx sphynx commented Jun 19, 2019

Closes #199

I tried to cover most of the "panics" from procedural macros in attrs.rs and to create at least one test for every panic.

By the way, those tests will be quite helpful to check whether the introduction of custom attributes parser (PR #198) preserves error messages well. Therefore, I propose to merge this PR first, then I'll rebase my parser changes from #198 on that and will update the tests or fix the error messages accordingly.

Copy link
Owner

@TeXitoi TeXitoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thanks a lot!

tests/ui/tuple_enum.stderr Outdated Show resolved Hide resolved
@TeXitoi TeXitoi merged commit dd30d08 into TeXitoi:master Jun 19, 2019
@TeXitoi
Copy link
Owner

TeXitoi commented Jun 19, 2019

Thanks again!

sphynx added a commit to sphynx/structopt that referenced this pull request Jun 20, 2019
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.

Testing error messages from procedural macros
2 participants