Skip to content

rustdoc --show-coverage is poorly named #159691

Closed

Description

@Urgau

With #159411, --show-coverage will respect -o (output flag).

As a result "show" will be a misnomer as it may not show anymore.

It was proposed to renamed it to --doc-coverage #159411 (comment).

Activity

  1. added
    T-rustdoc
    on Jul 21, 2026
  2. added
    needs-triage
    on Jul 21, 2026
  3. aDotInTheVoid commented on Jul 23, 2026

    @aDotInTheVoid
    Member

    I think the right thing is to do —output-format=coverage and —output-format=coverage-json. That way it’s clear that this is a “major mode” that means docs won’t be generated.

    This was discussed before, and there wasn’t consensus #159691.

  4. changed the title [-]rustdoc `--show-coverage` is miss named[/-] [+]rustdoc `--show-coverage` is poorly named[/+] on Aug 5, 2026
  5. added
    A-CLI
    requires-nightly
    C-enhancement
    A-doc-coverage
    and removed
    needs-triage
    on Aug 24, 2026
  6. GuillaumeGomez commented on Nov 9, 2026

    @GuillaumeGomez
    Member

    In today rustdoc meeting, the team voted to rename --show-coverage into --coverage (which already works with --output-format=json).

  7. added 2 commits that reference this issue on Nov 10, 2026
  8. added a commit that references this issue on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIA-doc-coverageC-enhancementT-rustdocrequires-nightly

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions