Skip to content

rustdoc: support for the --nocapture feature of libtest #26309

Closed
@IvanUkhov

Description

@IvanUkhov

Currently, librustdoc is diligently passing test arguments to libtest via --test-args, including --nocapture. However, librustdoc internally captures the output of doc-tests and doesn’t let it get through to libtest. Consequently, the usage of --nocapture in this context is somewhat limited (when supplied it reveals compiler warnings, for instance) and doesn’t serve its main purpose. This behavior is inconsistent with the rest of the testing.

Regards,
Ivan

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.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