Skip to content

unescaped quotation marks in macro-processed doc comments #27489

Description

@durka

It seems like one of the recent fix to macro handling of doc comments (perhaps this) was a bit overzealous in not parsing the string, so that embedded quotation marks don't get escaped. It doesn't show up unless stringify! is called, but then it shows invalid code.

Compare the behavior of this playpen on nightly vs beta/std (ignoring the initial slashes which are due to #23812 and already fixed).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions