Skip to content

--message-format json doesn't apply to rustdoc coverage output #75135

Open
@Nemo157

Description

@Nemo157

I tried this:

RUSTDOCFLAGS='--show-coverage -Z unstable-options' cargo doc --message-format json --no-deps --all-features

I expected to get a json message containing the coverage information, but instead I still got a table.

Then I tried this:

RUSTDOCFLAGS='--show-coverage -Z unstable-options --output-format json' cargo doc --no-deps --all-features

and it did output a json message, but that message is missing a reason key to identify it within the greater message stream when combined with --message-format json.

rustdoc 1.47.0-nightly (d8cbd9cac 2020-08-03)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: Command-line interface (CLI) to the compilerA-doc-coverageArea: Calculating how much of a crate has documentationC-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