Skip to content

Comments in imports are formatted incorrectly #5852

Closed
@rsammelson

Description

@rsammelson

Examples:

use std::{
    fs,
    // (temporarily commented, we'll need this again in a second) io,
};

use foo::{
    self // this is important
};

Becomes:

use std::fs;

use foo::{self, // this is important};

Which now has syntax errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-commentsa-imports`use` syntaxbugPanic, non-idempotency, invalid code, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions