serde icon indicating copy to clipboard operation
serde copied to clipboard

Show variant aliases in error message

Open Mingun opened this issue 10 months ago • 2 comments

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 avatar Aug 10 '23 20:08 Mingun

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

Mingun avatar Mar 03 '24 18:03 Mingun

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

oli-obk avatar Mar 04 '24 07:03 oli-obk