Skip to content

Multiline comments ending in " lead to creation of line with only spaces #4312

Closed
@C4K3

Description

@C4K3

Input

fn main() {
    /* " */
    println!("Hello, world!");
}

Output

fn main() {
    /* " */
    
    println!("Hello, world!");
}

(notice the blank line between the comment and the println, containing 4 spaces.

Expected output

Input unchanged.

Meta

  • rustfmt version: rustfmt 1.4.16-stable (939e164 2020-06-11)
  • From where did you install rustfmt?: rustup

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions