-
Notifications
You must be signed in to change notification settings - Fork 390
Closed
Labels
A-cargoArea: affects the cargo wrapper (cargo miri)Area: affects the cargo wrapper (cargo miri)C-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement
Description
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 theRUSTFLAGS
env var and addMIRIFLAGS
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
Labels
A-cargoArea: affects the cargo wrapper (cargo miri)Area: affects the cargo wrapper (cargo miri)C-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement