Skip to content

empty_line_after_outer_attr doesn't seem to work for rustdoc comments #10395

Closed
@smoelius

Description

@smoelius

Summary

Pretty self-explanatory (I think).

Lint Name

empty_line_after_outer_attr

Reproducer

I tried this code (playground link):

#![warn(clippy::empty_line_after_outer_attr)]

/// Main function

fn main() {}

I expected to see this happen:
A warning.

Instead, this happened:
No warning.

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn't

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions