Skip to content

Regression in quality of TOML type mismatch error messages #3790

Closed
@crumblingstatue

Description

@crumblingstatue
$ cargo +stable build
...
  expected a value of type `string`, but found a value of type `integer` for the key `dependencies.regex`

$ cargo build
...
  data did not match any variant of untagged enum TomlDependency for key `dependencies.regex`

Fixing this might require changes in toml, or maybe even serde, but I don't think we should sacrifice user experience for the developer productivity that serde provides.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions