Skip to content

We shouldn't strip blank comments in code in lint doc generation #4116

Closed
@Manishearth

Description

@Manishearth

See https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr

The blank lines in the source (important for this lint) are removed from the docs, since the doc generation step strips empty lines (before hitting any kind of markdown parser)

I'm not quite sure why we do that at all, but we shouldn't be doing it within code.

(It's late so I haven't yet investigated)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-documentationArea: Adding or improving documentationC-bugCategory: Clippy is not doing the correct thing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions