Skip to content

missing_doc lint only accepts sugared docs #10853

Closed
@sfackler

Description

@sfackler

The program

//! whatever

#[link(name="test")];
#[feature(macro_rules)];
#[warn(missing_doc)];

#[doc="foo"]
pub struct Foo;

throws a warning when processed:

~ ❯ rustdoc test.rs
test.rs:8:0: 8:15 warning: missing documentation for a struct
test.rs:8 pub struct Foo;
          ^~~~~~~~~~~~~~~
test.rs:5:7: 5:18 note: lint level defined here
test.rs:5 #[warn(missing_doc)];
                 ^~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions