Skip to content

rustdoc incorrectly handles ## #73623

Closed
Closed
@lcnr

Description

@lcnr

I tried this code:

/// ```rust
/// ##![no_std]
/// ```
pub struct A;

with cargo doc

I expected to see this happen: Either an error or #![no_std] gets hidden

What actually happend: The first # gets ignored.
Screenshot from 2020-06-22 17-41-49

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.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