]> git.lizzy.rs Git - rust.git/log
rust.git
22 months agorewrite handle impl again
DrMeepster [Sat, 16 Jul 2022 07:36:11 +0000 (00:36 -0700)]
rewrite handle impl again

22 months agofix windows join/detach and add tests
DrMeepster [Fri, 15 Jul 2022 08:40:06 +0000 (01:40 -0700)]
fix windows join/detach and add tests

22 months agobasic theading
DrMeepster [Wed, 25 May 2022 23:28:37 +0000 (16:28 -0700)]
basic theading

22 months agoAuto merge of #2492 - RalfJung:tests, r=RalfJung
bors [Thu, 18 Aug 2022 02:03:30 +0000 (02:03 +0000)]
Auto merge of #2492 - RalfJung:tests, r=RalfJung

organize shim tests into shims folder, and various test suite tweaks

22 months agoremove some leftover //ignore that did not do anything
Ralf Jung [Thu, 18 Aug 2022 02:00:54 +0000 (22:00 -0400)]
remove some leftover //ignore that did not do anything

22 months agoremove unneeded rustc_private feature
Ralf Jung [Thu, 18 Aug 2022 01:58:10 +0000 (21:58 -0400)]
remove unneeded rustc_private feature

22 months agomove libc pthread tests into separate file
Ralf Jung [Thu, 18 Aug 2022 01:54:28 +0000 (21:54 -0400)]
move libc pthread tests into separate file

22 months agoorganize shim tests into shims folder
Ralf Jung [Thu, 18 Aug 2022 01:50:23 +0000 (21:50 -0400)]
organize shim tests into shims folder

22 months agoAuto merge of #2491 - RalfJung:vscode, r=RalfJung
bors [Wed, 17 Aug 2022 11:46:14 +0000 (11:46 +0000)]
Auto merge of #2491 - RalfJung:vscode, r=RalfJung

fix vscode configuration

Also now that we install rustfmt into the toolchain by default, we no longer need to adjust that command.

22 months agofix vscode configuration
Ralf Jung [Wed, 17 Aug 2022 11:44:12 +0000 (07:44 -0400)]
fix vscode configuration

22 months agoAuto merge of #2485 - 5225225:memalign, r=RalfJung
bors [Wed, 17 Aug 2022 02:08:35 +0000 (02:08 +0000)]
Auto merge of #2485 - 5225225:memalign, r=RalfJung

Breaking posix_memalign precondition is not UB

The `size==0` test here might be overtesting, but I figured might as well test it and leave a comment saying it is fine to remove it if the implementation changes.

Fixes #2099

22 months agoAuto merge of #2490 - RalfJung:ci, r=RalfJung
bors [Tue, 16 Aug 2022 12:55:22 +0000 (12:55 +0000)]
Auto merge of #2490 - RalfJung:ci, r=RalfJung

make sure all builds are locked on CI

22 months agomake sure all builds are locked on CI
Ralf Jung [Tue, 16 Aug 2022 12:54:20 +0000 (08:54 -0400)]
make sure all builds are locked on CI

22 months agoAuto merge of #2488 - saethlin:rename-memory-hooks, r=RalfJung
bors [Tue, 16 Aug 2022 12:24:34 +0000 (12:24 +0000)]
Auto merge of #2488 - saethlin:rename-memory-hooks, r=RalfJung

Rename memory hooks

Companion to https://github.com/rust-lang/rust/pull/100600

22 months agorustup
Ben Kimock [Tue, 16 Aug 2022 12:07:46 +0000 (08:07 -0400)]
rustup

22 months agoRename memory hooks
Ben Kimock [Mon, 15 Aug 2022 22:13:11 +0000 (18:13 -0400)]
Rename memory hooks

22 months agoAuto merge of #2489 - RalfJung:srw-merging, r=saethlin
bors [Tue, 16 Aug 2022 11:54:55 +0000 (11:54 +0000)]
Auto merge of #2489 - RalfJung:srw-merging, r=saethlin

add test that we do not merge neighboring SRW

Turns out that interior_mut2 also already tests this, but that also involves `UnsafeCell` so the new test still seems more clear. Basically the new test is the same as the old except that it uses raw pointers rather than `&UnsafeCell`. (When the old test was written, raw pointers were still untagged, so no such test would have been possible.)

I verified that both of these fail when we remove mutable references rather than disabling them.
Here is the patch I used for that:

<details>

```diff
diff --git a/Cargo.toml b/Cargo.toml
index 208b3a76..f9d1b0ac 100644
--- a/Cargo.toml
+++ b/Cargo.toml
`@@` -53,7 +53,7 `@@` name = "compiletest"
 harness = false

 [features]
-default = ["stack-cache"]
+default = []
 stack-cache = []

 # Be aware that this file is inside a workspace when used via the
diff --git a/src/lib.rs b/src/lib.rs
index ba337f28..2a3066f4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
`@@` -9,6 +9,7 `@@`
 #![feature(is_some_with)]
 #![feature(nonzero_ops)]
 #![feature(local_key_cell_methods)]
+#![feature(drain_filter)]
 // Configure clippy and other lints
 #![allow(
     clippy::collapsible_else_if,
diff --git a/src/stacked_borrows/stack.rs b/src/stacked_borrows/stack.rs
index 4a9a13d3..37246df7 100644
--- a/src/stacked_borrows/stack.rs
+++ b/src/stacked_borrows/stack.rs
`@@` -351,6 +351,9 `@@` impl<'tcx> Stack {
         #[cfg(all(feature = "stack-cache", debug_assertions))]
         self.verify_cache_consistency();

+        // HACK -- now just delete all disabled things.
+        self.borrows.drain_filter(|b| matches!(b.perm(), Permission::Disabled));
+
         Ok(())
     }
```

</details>

r? `@saethlin`

22 months agodefend test against overly smart Miri
Ralf Jung [Tue, 16 Aug 2022 00:23:19 +0000 (20:23 -0400)]
defend test against overly smart Miri

22 months agocheck no-default-features and all-features build on CI
Ralf Jung [Mon, 15 Aug 2022 23:33:07 +0000 (19:33 -0400)]
check no-default-features and all-features build on CI

22 months agomake Miri build without the stack-cache feature
Ralf Jung [Mon, 15 Aug 2022 22:35:11 +0000 (18:35 -0400)]
make Miri build without the stack-cache feature

22 months agoadd test that we do not merge neighboring SRW
Ralf Jung [Mon, 15 Aug 2022 22:31:40 +0000 (18:31 -0400)]
add test that we do not merge neighboring SRW

22 months agoAuto merge of #2487 - RalfJung:rustup, r=RalfJung
bors [Sun, 14 Aug 2022 11:52:36 +0000 (11:52 +0000)]
Auto merge of #2487 - RalfJung:rustup, r=RalfJung

rustup

Testing for nicer backtraces from https://github.com/rust-lang/rust/pull/100501.

22 months agorustup
Ralf Jung [Sun, 14 Aug 2022 11:51:45 +0000 (07:51 -0400)]
rustup

22 months agoAuto merge of #2484 - RalfJung:rustup, r=RalfJung
bors [Sat, 13 Aug 2022 13:04:16 +0000 (13:04 +0000)]
Auto merge of #2484 - RalfJung:rustup, r=RalfJung

rustup; enable extra const UB checks

22 months agofix data_race test
Ralf Jung [Sat, 13 Aug 2022 13:03:30 +0000 (09:03 -0400)]
fix data_race test

22 months agorustup
Ralf Jung [Sat, 13 Aug 2022 12:22:19 +0000 (08:22 -0400)]
rustup

22 months agoBreaking posix_memalign precondition is not UB
5225225 [Sat, 13 Aug 2022 12:20:56 +0000 (13:20 +0100)]
Breaking posix_memalign precondition is not UB

22 months agoAuto merge of #2482 - RalfJung:raw-eq, r=RalfJung
bors [Fri, 12 Aug 2022 15:26:53 +0000 (15:26 +0000)]
Auto merge of #2482 - RalfJung:raw-eq, r=RalfJung

add test for raw_eq on a pointer

Let's make sure this keeps erroring; I have plans to refactor that part of the interpreter which will fix the error message (but could also lead to us accidentally accepting this which this test is there to avoid).

22 months agoadd test for raw_eq on a pointer
Ralf Jung [Fri, 12 Aug 2022 15:24:55 +0000 (11:24 -0400)]
add test for raw_eq on a pointer

22 months agoAuto merge of #2480 - RalfJung:rustup, r=RalfJung
bors [Thu, 11 Aug 2022 23:28:14 +0000 (23:28 +0000)]
Auto merge of #2480 - RalfJung:rustup, r=RalfJung

Rustup

22 months agomove a bunch of type information into the respective shim
Ralf Jung [Thu, 11 Aug 2022 23:27:15 +0000 (19:27 -0400)]
move a bunch of type information into the respective shim

22 months agoremove prctl, now that std does not use it any more
Ralf Jung [Thu, 11 Aug 2022 23:04:44 +0000 (19:04 -0400)]
remove prctl, now that std does not use it any more

it is a terrible variadic function...

22 months agorustup for pthread_setname_np on Linux
Ralf Jung [Thu, 11 Aug 2022 23:01:19 +0000 (19:01 -0400)]
rustup for pthread_setname_np on Linux

22 months agoAuto merge of #2478 - RalfJung:rustup, r=RalfJung
bors [Wed, 10 Aug 2022 12:28:54 +0000 (12:28 +0000)]
Auto merge of #2478 - RalfJung:rustup, r=RalfJung

rustup

22 months agoAuto merge of #2461 - RalfJung:frame-in-std, r=RalfJung
bors [Wed, 10 Aug 2022 12:03:51 +0000 (12:03 +0000)]
Auto merge of #2461 - RalfJung:frame-in-std, r=RalfJung

add special exception for std_miri_test crate to call std-only functions

These being the unit tests of std, they have their own copy of `std::sys` and `std::thread`, so the existing check says this is not std.  The check is correct but we want to allow this so we just hard-code the crate name.

The point of this `frame_in_std` check is to prevent people from directly interacting with shims that aren't really properly implemented, but it doesn't need to be 100% airtight. If someone really wants to call their crate `std_miri_test` in order to access some broken shims... they can keep the pieces.

22 months agorustup
Ralf Jung [Wed, 10 Aug 2022 12:03:00 +0000 (08:03 -0400)]
rustup

22 months agoAuto merge of #2464 - RalfJung:atomic-must-be-mutable, r=RalfJung
bors [Tue, 9 Aug 2022 18:00:31 +0000 (18:00 +0000)]
Auto merge of #2464 - RalfJung:atomic-must-be-mutable, r=RalfJung

Atomics must be mutable

Fixes https://github.com/rust-lang/miri/issues/2463
Needs https://github.com/rust-lang/rust/pull/100181

22 months agorustup
Ralf Jung [Tue, 9 Aug 2022 17:59:43 +0000 (13:59 -0400)]
rustup

22 months agomore detailed error message
Ralf Jung [Sun, 7 Aug 2022 12:00:39 +0000 (08:00 -0400)]
more detailed error message

22 months agomake some operations private to the data race detector / atomic intrinsic file
Ralf Jung [Fri, 5 Aug 2022 21:53:18 +0000 (17:53 -0400)]
make some operations private to the data race detector / atomic intrinsic file

22 months agoensure atomics happen on mutable allocations, and fix futex test
Ralf Jung [Fri, 5 Aug 2022 21:47:28 +0000 (17:47 -0400)]
ensure atomics happen on mutable allocations, and fix futex test

22 months agomove atomic access alginment check to helper function and inside atomic access lib
Ralf Jung [Fri, 5 Aug 2022 20:27:44 +0000 (16:27 -0400)]
move atomic access alginment check to helper function and inside atomic access lib

22 months agoAuto merge of #2477 - RalfJung:show-error, r=RalfJung
bors [Mon, 8 Aug 2022 15:37:01 +0000 (15:37 +0000)]
Auto merge of #2477 - RalfJung:show-error, r=RalfJung

don't make it quite so easy to get Miri to panic

Panicking on incorrect `-Zmiri` flags is a bit embarrassing, so let's finally fix that.

22 months agoavoid intermediate allocations in show_error macro
Ralf Jung [Mon, 8 Aug 2022 15:35:54 +0000 (11:35 -0400)]
avoid intermediate allocations in show_error macro

22 months agomake cargo-miri show_error a bit nicer to use
Ralf Jung [Mon, 8 Aug 2022 15:32:49 +0000 (11:32 -0400)]
make cargo-miri show_error a bit nicer to use

22 months agodon't make it qutie so easy to get Miri to panic
Ralf Jung [Mon, 8 Aug 2022 15:32:31 +0000 (11:32 -0400)]
don't make it qutie so easy to get Miri to panic

22 months agoAuto merge of #2471 - RalfJung:term, r=RalfJung
bors [Mon, 8 Aug 2022 00:38:17 +0000 (00:38 +0000)]
Auto merge of #2471 - RalfJung:term, r=RalfJung

stop excluding TERM env var on Unix

Effectively reverts https://github.com/rust-lang/miri/pull/2018.
Needs https://github.com/rust-lang/rust/pull/100206 to not be terribly slow.
Fixes https://github.com/rust-lang/miri/issues/2292.

22 months agorustup
Ralf Jung [Mon, 8 Aug 2022 00:36:57 +0000 (20:36 -0400)]
rustup

22 months agoAuto merge of #2476 - RalfJung:target-dir, r=RalfJung
bors [Sun, 7 Aug 2022 15:54:32 +0000 (15:54 +0000)]
Auto merge of #2476 - RalfJung:target-dir, r=RalfJung

clarifying comments for target-dir handling

I thought we could simplify this logic, but alas, `cargo metadata --target-dir` is not a thing (even though the effective target-dir *does* affect the metadata).

22 months agoclarifying comments for target-dir handling
Ralf Jung [Sun, 7 Aug 2022 15:53:25 +0000 (11:53 -0400)]
clarifying comments for target-dir handling

22 months agoAuto merge of #2475 - RalfJung:rustc-lints, r=RalfJung
bors [Sun, 7 Aug 2022 14:17:21 +0000 (14:17 +0000)]
Auto merge of #2475 - RalfJung:rustc-lints, r=RalfJung

enable rustc lints

Given how many rustc APIs we are using, this is probably a good idea.
Seems like we are lint-clean right now. :)

22 months agofix rustc lints in Miri
Ralf Jung [Sun, 7 Aug 2022 13:46:52 +0000 (09:46 -0400)]
fix rustc lints in Miri

22 months agoenable rustc lints
Ralf Jung [Sun, 7 Aug 2022 13:17:16 +0000 (09:17 -0400)]
enable rustc lints

(but not in cargo-miri and ui_test)

22 months agoAuto merge of #2474 - RalfJung:cargo-metadata-args, r=RalfJung
bors [Sun, 7 Aug 2022 02:49:33 +0000 (02:49 +0000)]
Auto merge of #2474 - RalfJung:cargo-metadata-args, r=RalfJung

also forward --manifest-path to 'cargo metadata'

and then I went on to refactor the argument flag splitting thing a bit, and, uh, that snowballed...

22 months agofix CI benchmark checks
Ralf Jung [Sun, 7 Aug 2022 02:45:25 +0000 (22:45 -0400)]
fix CI benchmark checks

22 months agoavoid some string copies...
Ralf Jung [Sun, 7 Aug 2022 01:17:54 +0000 (21:17 -0400)]
avoid some string copies...

22 months agoreuse arg flag parse logic in rustdoc handling
Ralf Jung [Sat, 6 Aug 2022 23:41:31 +0000 (19:41 -0400)]
reuse arg flag parse logic in rustdoc handling

22 months agoalso forward --manifest-path to 'cargo metadata'
Ralf Jung [Sat, 6 Aug 2022 23:31:20 +0000 (19:31 -0400)]
also forward --manifest-path to 'cargo metadata'

22 months agoAuto merge of #2472 - RalfJung:backtrace, r=RalfJung
bors [Sat, 6 Aug 2022 19:30:50 +0000 (19:30 +0000)]
Auto merge of #2472 - RalfJung:backtrace, r=RalfJung

fix RUSTC_BACKTRACE always being set

I kept wondering why Miri programs, whenever isolation is disabled, behave as if RUSTC_BACKTRACE was set. Finally I realized it's because some early rustc setup code sets that env var, and that is then propagated to the interpreted program.

So fix that by taking a copy of the environment before any rustc setup, and use that copy as the basis for what is provided to the interpreted program.

22 months agoavoid panic/panic folder
Ralf Jung [Sat, 6 Aug 2022 19:30:00 +0000 (15:30 -0400)]
avoid panic/panic folder

22 months agomake tests pass again
Ralf Jung [Sat, 6 Aug 2022 19:29:43 +0000 (15:29 -0400)]
make tests pass again

22 months agofix RUSTC_BACKTRACE always being set
Ralf Jung [Sat, 6 Aug 2022 19:21:08 +0000 (15:21 -0400)]
fix RUSTC_BACKTRACE always being set

22 months agoadd special exception for std_miri_test crate to call std-only functions
Ralf Jung [Thu, 4 Aug 2022 13:55:18 +0000 (09:55 -0400)]
add special exception for std_miri_test crate to call std-only functions

22 months agoAuto merge of #2470 - RalfJung:macos-env, r=RalfJung
bors [Sat, 6 Aug 2022 18:38:37 +0000 (18:38 +0000)]
Auto merge of #2470 - RalfJung:macos-env, r=RalfJung

support current_exe and home_dir on macOS

also fix write_os_str length logic

22 months agomake home_dir work on macOS
Ralf Jung [Sat, 6 Aug 2022 18:34:44 +0000 (14:34 -0400)]
make home_dir work on macOS

22 months agomove tests covering the env:: module into their own directory
Ralf Jung [Sat, 6 Aug 2022 15:53:18 +0000 (11:53 -0400)]
move tests covering the env:: module into their own directory

22 months agostop excluding TERM env var on Unix
Ralf Jung [Sat, 6 Aug 2022 18:31:11 +0000 (14:31 -0400)]
stop excluding TERM env var on Unix

22 months agosupport current_exe on macOS, and fix write_os_str length logic
Ralf Jung [Sat, 6 Aug 2022 15:47:14 +0000 (11:47 -0400)]
support current_exe on macOS, and fix write_os_str length logic

22 months agoAuto merge of #2469 - RalfJung:math, r=RalfJung
bors [Sat, 6 Aug 2022 15:01:44 +0000 (15:01 +0000)]
Auto merge of #2469 - RalfJung:math, r=RalfJung

implement some missing float functions

With this we support the entire float API surface of the standard library. :)

Also fixes https://github.com/rust-lang/miri/issues/2468 by using host floats to implement FMA.

22 months agosupport and test some more math functions
Ralf Jung [Sat, 6 Aug 2022 13:33:08 +0000 (09:33 -0400)]
support and test some more math functions

22 months agowork around apfloat bug in FMA by using host floats instead
Ralf Jung [Sat, 6 Aug 2022 14:30:55 +0000 (10:30 -0400)]
work around apfloat bug in FMA by using host floats instead

22 months agoAuto merge of #2467 - RalfJung:home, r=RalfJung
bors [Sat, 6 Aug 2022 13:04:19 +0000 (13:04 +0000)]
Auto merge of #2467 - RalfJung:home, r=RalfJung

add support for env::home_dir

and a bit of cleanup

22 months agoreally, clippy?!?
Ralf Jung [Sat, 6 Aug 2022 13:03:33 +0000 (09:03 -0400)]
really, clippy?!?

22 months agoadd support for env::home_dir
Ralf Jung [Sat, 6 Aug 2022 12:17:19 +0000 (08:17 -0400)]
add support for env::home_dir

and a bit of cleanup

22 months agoAuto merge of #2466 - RalfJung:longsleep, r=RalfJung
bors [Sat, 6 Aug 2022 00:52:42 +0000 (00:52 +0000)]
Auto merge of #2466 - RalfJung:longsleep, r=RalfJung

fix an ICE in nanosleep()

22 months agofix an ICE in nanosleep()
Ralf Jung [Sat, 6 Aug 2022 00:17:14 +0000 (20:17 -0400)]
fix an ICE in nanosleep()

22 months agoAuto merge of #2465 - RalfJung:strerror_r, r=RalfJung
bors [Sat, 6 Aug 2022 00:19:08 +0000 (00:19 +0000)]
Auto merge of #2465 - RalfJung:strerror_r, r=RalfJung

avoid strerror_r failure on unknown errnum

This is an informative function anyway, so as fallback just return a string with the raw errnum. Avoids panics / interpreter aborts in std on unknown errnum in from_raw_os_error.

22 months agoavoid strerror_r failure on unknown errnum
Ralf Jung [Fri, 5 Aug 2022 23:21:47 +0000 (19:21 -0400)]
avoid strerror_r failure on unknown errnum

22 months agoAuto merge of #2460 - LegNeato:sysconf, r=RalfJung
bors [Wed, 3 Aug 2022 15:56:13 +0000 (15:56 +0000)]
Auto merge of #2460 - LegNeato:sysconf, r=RalfJung

Add additional raw error mappings for the nightly `io_error_more` feature

Some crates are using nightly and failing when mapping these errors,
for example <https://miri.saethlin.dev/?crate=remove_dir_all&version=0.7.0>:

```
error: unsupported operation: io error NotADirectory cannot be translated into a raw os error
    --> /root/.rustup/toolchains/miri/lib/rustlib/src/rust/library/std/src/sys/unix/fs.rs:1203:19
```

22 months agomake errno table syntactically more similar to rustc library code
Ralf Jung [Wed, 3 Aug 2022 15:51:39 +0000 (11:51 -0400)]
make errno table syntactically more similar to rustc library code

22 months agoAdd additional raw error mappings for the nightly `io_error_more` feature
Christian Legnitto [Wed, 3 Aug 2022 14:39:43 +0000 (10:39 -0400)]
Add additional raw error mappings for the nightly `io_error_more` feature

Some crates are using nightly and failing when mapping these errors,
for example <https://miri.saethlin.dev/?crate=remove_dir_all&version=0.7.0>:

```
error: unsupported operation: io error NotADirectory cannot be translated into a raw os error
    --> /root/.rustup/toolchains/miri/lib/rustlib/src/rust/library/std/src/sys/unix/fs.rs:1203:19
```

22 months agoAuto merge of #2459 - RalfJung:cargo-miri-split, r=RalfJung
bors [Wed, 3 Aug 2022 15:02:34 +0000 (15:02 +0000)]
Auto merge of #2459 - RalfJung:cargo-miri-split, r=RalfJung

split cargo-miri into multiple files

also greatly extend the 'who calls who' comment

22 months agosplit cargo-miri into multiple files
Ralf Jung [Wed, 3 Aug 2022 01:41:26 +0000 (21:41 -0400)]
split cargo-miri into multiple files

also greatly extend the 'who calls who' comment

22 months agoAuto merge of #2346 - LegNeato:mkstemp, r=RalfJung
bors [Wed, 3 Aug 2022 01:59:38 +0000 (01:59 +0000)]
Auto merge of #2346 - LegNeato:mkstemp, r=RalfJung

Add `mkstemp` shim for unix

22 months agoAdd `mkstemp` shim for unix
Christian Legnitto [Fri, 8 Jul 2022 05:51:16 +0000 (01:51 -0400)]
Add `mkstemp` shim for unix

Co-authored-by: Ralf Jung <post@ralfj.de>
22 months agoAuto merge of #2457 - RalfJung:realpath, r=RalfJung
bors [Tue, 2 Aug 2022 23:00:32 +0000 (23:00 +0000)]
Auto merge of #2457 - RalfJung:realpath, r=RalfJung

Add shim for realpath on unix

Salvaged from https://github.com/rust-lang/miri/pull/2294 by `@LegNeato`

22 months agoAuto merge of #2458 - RalfJung:less-space, r=RalfJung
bors [Tue, 2 Aug 2022 22:31:51 +0000 (22:31 +0000)]
Auto merge of #2458 - RalfJung:less-space, r=RalfJung

avoid double-space in test logging

22 months agoavoid double-space in test logging
Ralf Jung [Tue, 2 Aug 2022 22:27:06 +0000 (18:27 -0400)]
avoid double-space in test logging

22 months agooutput realpath as a path, and remove a bogus test
Ralf Jung [Tue, 2 Aug 2022 22:08:43 +0000 (18:08 -0400)]
output realpath as a path, and remove a bogus test

22 months agoAdd shim for `realpath` on unix
Christian Legnitto [Thu, 30 Jun 2022 17:10:31 +0000 (13:10 -0400)]
Add shim for `realpath` on unix

23 months agoAuto merge of #2453 - RalfJung:rustup, r=RalfJung
bors [Mon, 1 Aug 2022 13:28:17 +0000 (13:28 +0000)]
Auto merge of #2453 - RalfJung:rustup, r=RalfJung

rustup

Should work again, now that https://github.com/rust-lang/rust/pull/99984 landed.

23 months agoclippy
Ralf Jung [Mon, 1 Aug 2022 13:27:10 +0000 (09:27 -0400)]
clippy

23 months agorustup
Ralf Jung [Mon, 1 Aug 2022 13:13:34 +0000 (09:13 -0400)]
rustup

23 months agoAuto merge of #2452 - Hiroki6:eval-rs-comments-typo, r=RalfJung
bors [Sun, 31 Jul 2022 16:04:51 +0000 (16:04 +0000)]
Auto merge of #2452 - Hiroki6:eval-rs-comments-typo, r=RalfJung

Fix typo in eval.rs

I just found some typos while reading the code

23 months agoFix typo in eval.rs
Hiroki6 [Sun, 31 Jul 2022 14:08:27 +0000 (16:08 +0200)]
Fix typo in eval.rs

23 months agoAuto merge of #2450 - avrong:cargo-metadata, r=oli-obk
bors [Fri, 29 Jul 2022 12:51:14 +0000 (12:51 +0000)]
Auto merge of #2450 - avrong:cargo-metadata, r=oli-obk

Use cargo_metadata in cargo-miri

Closes #2393

Added `cargo_metadata` to `cargo-miri` and changed metadata from manual parsing to `cargo_metadata` invocations. Thus, removed local `Metadata` struct too.

Happy to fix if anything isn't right :)

23 months agoFix formatting
Aleksei Trifonov [Fri, 29 Jul 2022 11:42:42 +0000 (14:42 +0300)]
Fix formatting

23 months agoUse cargo_metadata in cargo-miri
Aleksei Trifonov [Fri, 29 Jul 2022 02:25:59 +0000 (05:25 +0300)]
Use cargo_metadata in cargo-miri

23 months agoAuto merge of #2426 - saethlin:unix-exec, r=RalfJung
bors [Thu, 28 Jul 2022 22:05:42 +0000 (22:05 +0000)]
Auto merge of #2426 - saethlin:unix-exec, r=RalfJung

Use real exec on cfg(unix) targets

Closes https://github.com/rust-lang/miri/issues/2421

The standard library has a platform extension trait that lets us get the behavior we want on cfg(unix), so why not use it?

I tried this out and it produces the correct behavior in concert with nextest.

23 months agoUse real exec on cfg(unix) targets
Ben Kimock [Sat, 23 Jul 2022 17:59:08 +0000 (13:59 -0400)]
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.