genco: `proc-macro2@1.0.56` breaks `quote!` line formatting

It seems that upgrading to proc-macro2 >=1.0.56 breaks how newlines are handled in the generated code.

Steps to reproduce:

  1. cargo update -p proc-macro2 --precise 1.0.56
  2. cargo test

Note that it seems to work correctly for 1.0.55.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Me too, especially since I no longer can use nightly!

All right. Time to start building a workaround, we’ll have to bypass proc-macro2 for now - because the API there has been stripped before the new nightly API is available. I’ll see what I can do.