Skip to content

needless_doctest_main: false positive with proc-macro attribute #5188

Closed
@jonhoo

Description

@jonhoo
$ cargo clippy -V
clippy 0.0.212 (ea85b4c 2020-02-01)

The needless_doctest_main lint triggers on this code:

/// ```
/// #[tokio::main]
/// async fn main() {
///     // ...
/// }
/// ```

Where the fn main is very much not needless :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions