Skip to content

Fix misleading error message on UnexpectedType#264

Merged
TedDriggs merged 1 commit into
TedDriggs:masterfrom
Ten0:fix_misleading_error_message
Feb 12, 2024
Merged

Fix misleading error message on UnexpectedType#264
TedDriggs merged 1 commit into
TedDriggs:masterfrom
Ten0:fix_misleading_error_message

Conversation

@Ten0
Copy link
Copy Markdown
Contributor

@Ten0 Ten0 commented Feb 8, 2024

It's currently named "Unexpected litteral type", but it can also be instantiated when not parsing a litteral, e.g.

pub fn unexpected_expr_type(expr: &Expr) -> Self {

This specifically made investigation of #263 more difficult.

It's currently named "Unexpected litteral type", but it can also be instantiated when not parsing a litteral, e.g. https://github.com/TedDriggs/darling/blob/224a866727cd9e40c2cd80430852b1ea0deeb40e/core/src/error/mod.rs#L152
This specifically made investigation of TedDriggs#263 more difficult.
@TedDriggs TedDriggs merged commit fbcc1b4 into TedDriggs:master Feb 12, 2024
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.

2 participants