Skip to content

Test harness is injected on --cfg test #33670

Closed
@alexcrichton

Description

@alexcrichton

Cargo has an issue (rust-lang/cargo#2305) with a proposed fix (rust-lang/cargo#2469), but it unfortunately can't land because the compiler currently considers --test and --cfg test synonymous.

I'm... surprised by this behavior, and I'd expect --cfg test to only pass the test cfg.

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