Skip to content

imports_granularity=Item repeats rustdoc comments #6927

@vgaspary

Description

@vgaspary

Formatting this

/// rustdoc comment
use a::{a, b, c};

with imports_granularity = "Item" results in this:

/// rustdoc comment
use a::a;
/// rustdoc comment
use a::b;
/// rustdoc comment
use a::c;

The rustdoc comment should appear once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEUO-imports_granularityUnstable option: imports_granularity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions