Skip to content

When building a test runner, don't remove the main function #4488

@brson

Description

@brson

The test runner works by generating its own main function and deleting from the AST any existing function tagged with #[main]. Now that we have a #[main] attribute, we don't actually need to remove the main function, just the attribute.

Note that this doesn't affect main functions that don't have the attribute, since that main is silently ignored when there's a #[main] somewhere.

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