Skip to content

rustdoc: allow full set of compiler options to be specified #43031

Open
@jsgf

Description

@jsgf

rustdoc doesn't accept the full set of compiler options (in particular -C), so it isn't possible to build doctests in the same way as crates, binaries and normal unit tests. The ideal would be to just allow the test source to be extracted (#43029), so that building the doctest is identical to other code.

Failing that, some systematic way of converting a rustc compiler command line to a rustdoc one for building doctests would be OK.

(Filed separately, the ability to just build a test without running it: #43030)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-doctestsArea: Documentation tests, run by rustdocC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions