Skip to content

Intra-doc links don't work inside deprecated notes #98342

Open
@jplatte

Description

I tried this code:

#[deprecated = "Replaced by [`Client::login_token`]"]
pub async fn login_with_token(
    // ...

I expected to see this happen: cargo doc producing a deprecation note with a link

Instead, this happened: No link in the docs, just verbatim square brackets around Client::login_token

I also tried with [`Client::login_token`](Self::login_token), but that just produced a broken link.

Meta

rustc --version --verbose:

rustc 1.63.0-nightly (cacc75c82 2022-06-16)
binary: rustc
commit-hash: cacc75c82ebe15cf63d31034fcf7f1016cddf0e2
commit-date: 2022-06-16
host: x86_64-unknown-linux-gnu
release: 1.63.0-nightly
LLVM version: 14.0.5

@rustbot labels: +T-rustdoc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.L-deprecatedLint: deprecatedT-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