606894eb0b
Fixes 5042 Previously, trailing commas were removed from the last inline comment. This lead to rustfmt refusing to format code snippets because the original comment did not match the rewritten comment. Now, when rustfmt extracts the last inline comment it leaves trailing separators alone. Rustfmt does not need to remove these separators because they are commented out.
25 lines
515 B
Rust
25 lines
515 B
Rust
fn main() {
|
|
// 5042 deals with trailing commas, not the indentation issue of these comments
|
|
// When a future PR fixes the inentation issues these test can be updated
|
|
let _ = std::ops::Add::add(10, 20
|
|
// ...
|
|
// ...,
|
|
);
|
|
|
|
let _ = std::ops::Add::add(10, 20
|
|
/* ... */
|
|
// ...,
|
|
);
|
|
|
|
let _ = std::ops::Add::add(10, 20
|
|
// ...,
|
|
// ...,
|
|
);
|
|
|
|
let _ = std::ops::Add::add(10, 20
|
|
// ...,
|
|
/* ...
|
|
*/,
|
|
);
|
|
}
|