biome icon indicating copy to clipboard operation
biome copied to clipboard

build(deps): upgrade syn crate

Open Conaclos opened this issue 2 months ago • 1 comments

Summary

Upgrade to Syn 2.x. This brings many breaking changes. This is a painful migration.

For now, I still encounter some issue and as usual debugging macros is so hard...

It is no longer possible to use a keyword as an identifier in attributes. Thus, I renamed type into use_type for the partial attribute.

I also tried to use the more idiomatic way of writting attribute parsing. I used teh provded methods for error reporting. However this seems still very cryptic and unhelpful when something wrong happen. I still don't understand how to improve error reporting for macros...

Test Plan

CI must pass.

Conaclos avatar May 01 '24 16:05 Conaclos