PoignardAzur / venial

"A very small syn"
MIT License
192 stars 9 forks source link

Note about spans and their limitations #54

Closed Bromeon closed 8 months ago

Bromeon commented 8 months ago

Rendered: grafik

Bromeon commented 8 months ago

By the way, if you have any ideas on how to emulate joining, let me know. The proc_macro::Span API is very locked down, which is quite annoying. proc_macro2 offers some tricks but they seem impractical and didn't solve the issue for me.

From a brief testing, it looks like syn 2.0.48 suffers from the same issue and gets different outputs in stable/nightly. It's not clear to me whether their example was rendered using the nightly compiler.

PoignardAzur commented 8 months ago

I don't have any special insights, sorry.