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

Show variant aliases in error message #2566

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Mingun
Copy link
Contributor

@Mingun Mingun commented Aug 10, 2023

Before that PR an error message of such enum did not include aliases of possible variants:

#[derive(Deserialize)]
enum Enum {
  #[serde(alias = "C")]
  A,
  B
}

Now the error message will mention C

@Mingun
Copy link
Contributor Author

Mingun commented Mar 3, 2024

@dtolnay, @oli-obk, can you give some feedback?

@oli-obk
Copy link
Member

oli-obk commented Mar 4, 2024

Not in the near future. The only PR I'm giving attention to right now is the serde_core one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants