Closed
Description
This causes rust-analyzer to discard the entire file if you try to format it. See rust-lang/rust-analyzer#11285.
$ echo "//@notgenerated\nfn foo() {}" | rustfmt
//@notgenerated
fn foo() {}
$ echo "//@generated\nfn foo() {}" | rustfmt
$ rustfmt -V
rustfmt 1.4.38-stable (02072b4 2022-01-11)
Metadata
Metadata
Assignees
Labels
No labels