Skip to content

Doc comments to attribute conversion without syntactic sugar #19420

Closed
@l0kod

Description

@l0kod

Like the doc said and then refute, /// Foo turns into #[doc="/// Foo"] which is a bug. It should turns into #[doc="Foo"] (without the ///). Same apply for /** … */.

This is an issue for macro using the meta matcher (cf. #13067) to insert doc into generated code.

cc #18376
cc #10642
cc #6444

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions