Skip to content

doc_markdown lint triggers erroneously wihtin links #5306

Closed
@stouset

Description

@stouset
$ cargo clippy -V
clippy 0.0.212 (329923ed 2020-03-04)

When using Markdown to link to methods within the generated documentation, this lint triggers erroneously. For instance:

/// Call [`new`][Foo::new] to instantiate this struct.
struct Foo {
}

In this made-up example, the target of the link is Foo::new per intra-rustdoc links. Adding backticks around it would break the intra-doc linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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