rust/tests/target/issue-5033/nested_modules.rs
Yacin Tmimi bc46af9742 Retain trailing comments in module when using rustfmt::skip attribute
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]``
2021-10-28 21:44:39 -05:00

12 lines
98 B
Rust

#![rustfmt::skip]
mod a {
mod b {
}
// trailing comment b
}
// trailing comment a