Skip to content

Cannot create clickable link rustdoc above match complex_value #144769

@loynoir

Description

@loynoir

Code

Problem

  • Cannot create clickable link rustdoc above match complex_value
pub fn actual() {
    ...

    // FIXME: not clickable link
    // see [`foo::bar::method`] complex value pattern matching
    match complex_value {
        ...
    }

    ...
}

Reproduction Steps

Expected Outcome

Workaroud by

  • create clickable link rustdoc above match complex_value using _struct
pub fn workaround() {
    ...

    /// see [`foo::bar::method`] complex value pattern matching
    struct _HELP;
    match complex_value {
        ...
    }

    ...
}

Actual Output

Version

rustdoc 1.90.0-nightly (f8e355c 2025-07-27)

Additional Details

https://blog.rust-lang.org/2020/11/19/Rust-1.48/#easier-linking-in-rustdoc

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.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