Skip to content

Update opt-level parsing #2655

@MagaTailor

Description

@MagaTailor

The recently added s and z, optimize for size flags are not recognized by cargo:

[profile.release]
opt-level = z

error: Invalid arguments.

Cargo still knows about just the first three:

error: optimization level needs to be between 0-3 (instead was4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions