Stream: t-compiler/rust-analyzer

Topic: Long lines in generated code


Laurențiu (Nov 04 2020 at 08:40, on Zulip):

We have some very long lines which make grepping quite annoying, like the macro at the end of parser/src/syntax_kind/generated.rs. I wonder if we could format them more nicely, maybe by producing a string instead of using quote!.

matklad (Nov 04 2020 at 10:21, on Zulip):

Should totally do that. We already have smth similar here:

https://github.com/rust-analyzer/rust-analyzer/blob/7c94f1cb5e86739864871dc56fcbd7a6de116315/xtask/src/codegen/gen_syntax.rs#L253

Last update: Jul 26 2021 at 12:15UTC