bc46af9742
Resolves 5033 Trailing comments at the end of the root Module were removed because the module span did not extend until the end of the file. The root Module's span now encompasses the entire file, which ensures that no comments are lost when using ``#![rustfmt::skip]``
9 lines
104 B
Rust
9 lines
104 B
Rust
// leading comment
|
|
|
|
#![rustfmt::skip]
|
|
fn main() {
|
|
println!("main"); // commented
|
|
}
|
|
|
|
// post comment
|