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 error messages for invalid fragments #1445

Merged
merged 4 commits into from
Jul 26, 2020
Merged

Conversation

siku2
Copy link
Member

@siku2 siku2 commented Jul 24, 2020

Description

That took a lot more time than I expected...

Fixes #1444

Checklist:

  • I have run ./ci/run_stable_checks.sh
  • I have reviewed my own code
  • I have added tests

@siku2
Copy link
Member Author

siku2 commented Jul 24, 2020

@alexschrod Would you mind looking at the new error messages to see if they match your expectations?

@ilyvion
Copy link
Contributor

ilyvion commented Jul 26, 2020

Looks good to me, @siku2

Copy link
Member

@jstarry jstarry left a comment

Choose a reason for hiding this comment

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

What difference did using the proc_macro2 token stream make?

@siku2
Copy link
Member Author

siku2 commented Jul 26, 2020

@jstarry The reason I made that change is because syn uses proc_macro2::TokenStream internally anyway. syn::parse effectively calls syn::parse2(proc_macro2::TokenStream::from(input)).

@siku2 siku2 merged commit 4667b33 into yewstack:master Jul 26, 2020
@siku2 siku2 deleted the fix-1444 branch July 26, 2020 10:34
jstarry pushed a commit that referenced this pull request Aug 16, 2020
* remove specific version from "stable" check

* update sterr to new rust stable

* improve html list error messages

* run trybuild tests for 1.45
teymour-aldridge pushed a commit to teymour-aldridge/yew that referenced this pull request Sep 1, 2020
* remove specific version from "stable" check

* update sterr to new rust stable

* improve html list error messages

* run trybuild tests for 1.45
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.

Incorrect error output for mistakes in HTML fragments
3 participants