Skip to content

Permit attributes (esp. doc comments) inside use-trees  #51985

@stanislav-tkach

Description

@stanislav-tkach

The following is currently not permitted:

pub use third_party::{
    /// Doc-comment explaining reexported entity.
    some_function,
    // Normal comments are allowed, though.
    some_other_function,
};

I'm very fond of group usings, so I prefer to use them everywhere, but it is impossible in situations where the documentation is needed (we have encountered this problem here, by the way).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions