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`.