Skip to content

rustc's --test flag should imply --bin #1444

Closed
@brson

Description

@brson

Crate's that have the #[crate_type = "lib"] attribute are compiled as libs even when compiling with --test. This is probably not intuitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-driverArea: rustc_driver that ties everything together into the `rustc` compilerA-testsuiteArea: The testsuite used to check the correctness of rustcE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions