Upgrade to syn 2.0

Merged Legoktm requested to merge syn-2 into main


The only change we needed to implement was using a different mechanism for parsing the parameters provided to the proc_macro.

It's definitely a nicer API as it allowed us to get rid of 2 panics.

Merge request reports