Skip to content

Commit d12597f

Browse files
Update miri-script/src/main.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent c1657ca commit d12597f

File tree

1 file changed

+2
-0
lines changed
  • src/tools/miri/miri-script/src

1 file changed

+2
-0
lines changed

src/tools/miri/miri-script/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ pub struct Cli {
156156
}
157157

158158
fn main() -> Result<()> {
159+
/// Split the arguments into the part before the `--` and the part after.
160+
/// The `--` itself ends up in the second part.
159161
let miri_args: Vec<_> = std::env::args().take_while(|x| *x != "--").collect();
160162
let remainder: Vec<_> = std::env::args().skip_while(|x| *x != "--").collect();
161163

0 commit comments

Comments
 (0)