TedDriggs / darling

A Rust proc-macro attribute parser
MIT License
1.02k stars 66 forks source link

Fix misleading error message on UnexpectedType #264

Closed Ten0 closed 9 months ago

Ten0 commented 9 months ago

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 https://github.com/TedDriggs/darling/pull/263 more difficult.