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:
cargo update -p proc-macro2 --precise 1.0.56cargo 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
- Lock proc-macro2 to last working version proc-macro2 breaks genco (see https://github.com/udoprog/genco/issues/39). For now, we can introduce a version cap like this, so that it works even when someo... — committed to Cardinal-Cryptography/ink-wrapper by obrok a year ago
- Lock proc-macro2 to last working version proc-macro2 breaks genco (see https://github.com/udoprog/genco/issues/39). For now, we can introduce a version cap like this, so that it works even when someo... — committed to Cardinal-Cryptography/ink-wrapper by obrok a year ago
- feat: temporary fix waiting for: udoprog/genco/issues/39 Signed-off-by: kjuulh <contact@kjuulh.io> — committed to gerhard/dagger by kjuulh a year ago
- Fix Rust SDK errors (#5380) * Fix Rust SDK errors They started happening right after https://github.com/dagger/dagger/pull/5372 got merged, even though this commit didn't change anything in the Rust... — committed to dagger/dagger by gerhard a year ago
- Perform own detection for proc_macro_span (fixes #39) — committed to udoprog/genco by udoprog 9 months ago
- Perform own detection for proc_macro_span (fixes #39) — committed to udoprog/genco by udoprog 9 months ago
Me too, especially since I no longer can use nightly!
All right. Time to start building a workaround, we’ll have to bypass
proc-macro2for now - because the API there has been stripped before the new nightly API is available. I’ll see what I can do.