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

Deserializing internally tagged enum: error line information inaccurate #565

Closed
karlri opened this issue Sep 10, 2019 · 1 comment
Closed

Comments

@karlri
Copy link

karlri commented Sep 10, 2019

When failing to parse inner values of an internally tagged enum, the error line information points to the wrong place. The issue does not occur with externally tagged enums.

Issue submitted against serde, as I expect that it is mostly related to serde_derive, but I am submitting it here too as I don't really know where this line information is assigned or where a possible solution could be implemented.

serde-rs/serde#1621

@dtolnay
Copy link
Member

dtolnay commented Jul 5, 2020

Thanks for the issues. I will close this in favor of serde-rs/serde#1621.

@dtolnay dtolnay closed this as completed Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants