about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2022-07-23 13:59:08 -0400
committerBen Kimock <kimockb@gmail.com>2022-07-26 23:34:20 -0400
commit622613f957e07ffe1398fa17bc84f185e62df27f (patch)
treea942acaa85c968e1d7223b57999882f050a33b23 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
parentcbff63a6944b3285a9525881dc85870e694fb055 (diff)
downloadrust-622613f957e07ffe1398fa17bc84f185e62df27f.tar.gz
rust-622613f957e07ffe1398fa17bc84f185e62df27f.zip
Use real exec on cfg(unix) targets
When cargo-miri is executed as a cargo test runner or rustdoc runtool,
external tools expect what they launch as the runner/runtool to be the
process actually running the test. But in the implementation, we launch
the Miri interpreter as a subprocess using std::process::Command. This
tends to confuse other tools (like nextest) and users (like the author).
What we really want is to call POSIX exec so that the cargo-miri process
becomes the interpreter.

So this implements just that; we call execve via a cfg(unix) extension
trait. Windows has no such mechanism, but it also doesn't have POSIX
signals, which is the primary tripping hazard this change fixes.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions