Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

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

Closed

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.

Activity

  1. ILyoan commented on Jan 15, 2013

    @ILyoan
    Contributor

    let me do this

  2. brson commented on Jan 16, 2013

    @brson
    ContributorAuthor

    Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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