Skip to content

rustdoc-scrape-examples creates dead links and suppresses --no-deps #91605

Closed
@mejrs

Description

@mejrs

I tried rendering docs for a crate with:

cargo +nightly doc -Z unstable-options -Z rustdoc-scrape-examples=examples --open --no-deps

That puts this in the sidebar:

image

In this case, cfg_if and indoc are dependencies (which I don't want to document). And decorator is the name of one of the examples, this is a dead link.

Meta

rustc 1.57.0 (f1edd0429 2021-11-29)
binary: rustc
commit-hash: f1edd0429582dd29cccacaf50fd134b05593bd9c
commit-date: 2021-11-29
host: x86_64-pc-windows-msvc
release: 1.57.0
LLVM version: 13.0.0

rustdoc 1.57.0 (f1edd0429 2021-11-29)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions