Skip to content

rustdoc seems to ignore --cfg feature=foo #30252

Closed
@durka

Description

@durka

Here is a minimal crate with a no-op feature. It seems the feature is accessible in regular tests but not in doc-tests.

Originally I figured this was a Cargo bug, but that one is closed and as seen in the output above, Cargo is passing the flag to rustdoc, so I figure the regression is here in rustc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions