You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of 0.13.3, darling has added impl FromMeta for Type (TedDriggs/darling#172). This removes the need for the adapter, and will preserve span information in your macro outputs, which in turn will produce better errors if people give your macros bad inputs.
If there are other syn types that impl Parse and do not impl FromMeta, please feel free to file issues in TedDriggs/darling and I'll add those as well.
The text was updated successfully, but these errors were encountered:
425: Provide better error messages for type parse failures r=jonasbb a=jonasbb
This relies on a newer `darling` version.
Closes#423
bors merge
Co-authored-by: Jonas Bushart <jonas@bushart.org>
Thanks for the information. That is quite helpful. While rewriting I also noticed that before I never surfaced any error if the type parsing failed, so not only does that fix a layer of Result, but actually resolves an issue.
I will keep missing FromMeta implementations in mind.
As of 0.13.3,
darling
has addedimpl FromMeta for Type
(TedDriggs/darling#172). This removes the need for the adapter, and will preserve span information in your macro outputs, which in turn will produce better errors if people give your macros bad inputs.If there are other
syn
types thatimpl Parse
and do notimpl FromMeta
, please feel free to file issues in TedDriggs/darling and I'll add those as well.The text was updated successfully, but these errors were encountered: