Skip to content

proc macro (derive) does not recognized as ambiguous intra doc link #82478

Closed
@pickfire

Description

@pickfire

I tried this code:

/// [`Dummy`] should be ambiguous. But it works.
pub trait Dummy<T>: Sized {
}

#[cfg(feature = "derive")]
pub use dummy::Dummy; // this is a derive macro

Try doing that on https://github.com/cksac/fake-rs crate or serde

I expected to see this happen: ambiguous Dummy link found, use explicit macro@Dummy.

Instead, this happened: It compiles

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-discussionCategory: Discussion or questions that doesn't represent real issues.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions