Skip to content

cargo miri: parse arguments (more) like corresponding cargo commands #1416

Closed
@RalfJung

Description

@RalfJung

Currently there is a discrepancy between the way cargo test and cargo miri test handle arguments (and same for run):

cargo test -- arguments
cargo miri test -- -- arguments

This regularly leads to confusion. So maybe we should fix that. There are two sub-parts to this question:

  • How to best fix this? Maybe cargo miri test -Zmiri-disable-stacked-borrows -- arguments should work, though that looks odd. Or maybe we follow the RUSTFLAGS env var and add MIRIFLAGS or so.
  • How to deal with the backwards incompatibility?

For the latter, would be nice to get the thoughts of some Miri users how they'd feel if we broke their scripts that already use double-double-dash now in order to fix this discrepancy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargoArea: affects the cargo wrapper (cargo miri)C-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions