Closed
Description
Two issues I found while messing with this, first
fn main() {
println!("Hello World! I think rustfmt deletes comments between two semicolons.");
//if you run rustfmt..
//these
//lines will disappear!
//delete me!!
;
}
See playground.
And rustfmt panics if you have a block-comment inside two semicolons, like
fn main() {
;/* rustfmt panics!*/;
}
See playground.