Skip to content

rustdoc: mechanism for taking/handling arbitrary rustc arguments? #46189

Closed
@QuietMisdreavus

Description

@QuietMisdreavus

Right now, rustdoc takes a handful of compilation-focused arguments so it can affect the compilation process it uses to extract docs or run tests. A discussion in #cargo today made me wonder if it was possible (or even feasible) to take arbitrary rustc arguments and have some way to parse those into the required structures or features needed for rustdoc's purposes as a compiler driver. Something like having -- and then batching everything that goes after that?

@rust-lang/compiler @rust-lang/dev-tools @rust-lang/t-dev-tools-docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.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