Skip to content

rustc should not fail if emit≠link and main does not exist #21813

Closed
@nagisa

Description

@nagisa

There’s no reason for the compiler to fail if --emit≠link is specified and main function does not exist.

Relevant code appears to be src/librustc/middle/entry.rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-driverArea: rustc_driver that ties everything together into the `rustc` compilerA-linkageArea: linking into static, shared libraries and binaries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions