Skip to content

-Zrustdoc-scrape-examples silently does nothing #10042

@jyn514

Description

@jyn514

Problem

Cargo requires either -Zscrape-examples=all or -Zscrape-examples=examples; if you forget to pass a flag it will silently do nothing. This is a bad user experience, since it's not clear what's going wrong. Cargo should either give a hard error or default to all.

Steps

  1. cargo doc -Z rustdoc-scrape-examples

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.58.0-nightly (94ca096af 2021-10-29)
release: 1.58.0
commit-hash: 94ca096afbf25f670e76e07dca754fcfe27134be
commit-date: 2021-10-29
host: x86_64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.79.1-DEV (sys:0.4.49+curl-7.79.1 vendored ssl:OpenSSL/1.1.1l)
os: Pop!_OS 21.04 (hirsute) [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugZ-scrape-examplesNightly: rustdoc scrape examples

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions