Skip to content

intra-doc link failed linkchecker when depending on cfg(doc) #102221

Open
@scottmcm

Description

@scottmcm

In one version of #102169 I was using cfg(doc) to bring in a use that one of the intra-doc links needed: 96314f9

But which that worked to make x.py doc pass, it later failed linkcheck: https://github.com/rust-lang/rust/actions/runs/3111111451/jobs/5043028360

std/collections/struct.VecDeque.html:317: broken intra-doc link - [<code>mem::forget</code>]
std/collections/vec_deque/struct.VecDeque.html:317: broken intra-doc link - [<code>mem::forget</code>]

So I had to go back to a use with an allow (f0dc359) to get it to work again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameC-bugCategory: This is a bug.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