]> git.lizzy.rs Git - rust.git/log
rust.git
23 months agocargo-miri: use '--config target.runner' rather than the TARGET_RUNNER env vars
Ralf Jung [Sat, 23 Jul 2022 21:36:42 +0000 (17:36 -0400)]
cargo-miri: use '--config target.runner' rather than the TARGET_RUNNER env vars

23 months agoAuto merge of #2425 - RalfJung:hide-xargo, r=RalfJung
bors [Sat, 23 Jul 2022 18:35:59 +0000 (18:35 +0000)]
Auto merge of #2425 - RalfJung:hide-xargo, r=RalfJung

don't dump xargo output onto users of 'cargo miri test'

The xargo invocation prints a lot of details users probably won't care about, so let's hide them (unless the user did `cargo miri setup`, then we still print everything).

23 months agonow test-cargo-miri will actually work even without a hot cache :D
Ralf Jung [Sat, 23 Jul 2022 17:28:44 +0000 (13:28 -0400)]
now test-cargo-miri will actually work even without a hot cache :D

23 months agodon't dump xargo output onto users of 'cargo miri test'
Ralf Jung [Sat, 23 Jul 2022 16:47:26 +0000 (12:47 -0400)]
don't dump xargo output onto users of 'cargo miri test'

23 months agorefactor away some 'else { None }'
Ralf Jung [Sat, 23 Jul 2022 15:54:07 +0000 (11:54 -0400)]
refactor away some 'else { None }'

23 months agoAuto merge of #2424 - RalfJung:weak-memory-debug, r=RalfJung
bors [Sat, 23 Jul 2022 13:40:23 +0000 (13:40 +0000)]
Auto merge of #2424 - RalfJung:weak-memory-debug, r=RalfJung

add a flag to print a diagnostic when an outdated value is returned from an atomic load

Helps with https://github.com/rust-lang/miri/issues/2313. It can still be annoying to figure out *which* outdated load is the important one in case there are many of them (and the issue contains some ideas for how to help with that situation), but having this flag is better than nothing.

Thanks to `@cbeuw` for the [original patch](https://github.com/cbeuw/miri/commit/64d738cb00dbcfbe9cab29c77717f5af62c83ada) that I based this on.

23 months agoadd a flag to print a diagnostic when an outdated value is returned from an atomic...
Ralf Jung [Sat, 23 Jul 2022 13:36:59 +0000 (09:36 -0400)]
add a flag to print a diagnostic when an outdated value is returned from an atomic load

23 months agoAuto merge of #2420 - RalfJung:num_cpus, r=RalfJung
bors [Sat, 23 Jul 2022 00:57:07 +0000 (00:57 +0000)]
Auto merge of #2420 - RalfJung:num_cpus, r=RalfJung

move num_cpus test from test-cargo-miri to crate test

23 months agoremove num_cpus test from test-cargo-miri
Ralf Jung [Sat, 23 Jul 2022 00:53:31 +0000 (20:53 -0400)]
remove num_cpus test from test-cargo-miri

23 months agoadd num_cpus crate test
Ralf Jung [Sat, 23 Jul 2022 00:53:20 +0000 (20:53 -0400)]
add num_cpus crate test

23 months agoAuto merge of #2418 - RalfJung:track, r=RalfJung
bors [Fri, 22 Jul 2022 14:43:42 +0000 (14:43 +0000)]
Auto merge of #2418 - RalfJung:track, r=RalfJung

add more track_caller tests

Suggested by `@eddyb`

23 months agoadd more track_caller tests
Ralf Jung [Fri, 22 Jul 2022 14:34:52 +0000 (10:34 -0400)]
add more track_caller tests

23 months agoAuto merge of #2415 - RalfJung:cargo-miri, r=oli-obk
bors [Fri, 22 Jul 2022 14:07:17 +0000 (14:07 +0000)]
Auto merge of #2415 - RalfJung:cargo-miri, r=oli-obk

support MIRI_HOST_SYSROOT env var for stage 0 builds

Together with a [patch on the rustc side](https://github.com/rust-lang/rust/pull/99599), this makes `./x.py test src/tools/miri --stage 0` work again. :)

r? `@oli-obk`

23 months agoAuto merge of #2035 - RalfJung:small-bitmask, r=RalfJung
bors [Fri, 22 Jul 2022 13:36:24 +0000 (13:36 +0000)]
Auto merge of #2035 - RalfJung:small-bitmask, r=RalfJung

portable-simd: test bitmasks smaller than a byte

Blocked on https://github.com/rust-lang/portable-simd/pull/267 propagating to the [rustc repo](https://github.com/rust-lang/rust/tree/master/library/portable-simd)

23 months agorustup
Ralf Jung [Fri, 22 Jul 2022 12:49:03 +0000 (08:49 -0400)]
rustup

23 months agotest bitmasks smaller than a byte
Ralf Jung [Mon, 21 Mar 2022 13:15:38 +0000 (09:15 -0400)]
test bitmasks smaller than a byte

23 months agosupport MIRI_HOST_SYSROOT env var for stage 0 builds
Ralf Jung [Thu, 21 Jul 2022 20:49:41 +0000 (16:49 -0400)]
support MIRI_HOST_SYSROOT env var for stage 0 builds

Together with a patch on the rustc side, this makes './x.py test src/tools/miri --stage 0' work again. :)

23 months agoAuto merge of #2384 - RalfJung:vtables, r=RalfJung
bors [Fri, 22 Jul 2022 11:55:00 +0000 (11:55 +0000)]
Auto merge of #2384 - RalfJung:vtables, r=RalfJung

adjust for symbolic vtables

The Miri side of https://github.com/rust-lang/rust/pull/99420

23 months agorustup
Ralf Jung [Fri, 22 Jul 2022 11:52:32 +0000 (07:52 -0400)]
rustup

23 months agotest for some bad use of vtables
Ralf Jung [Wed, 20 Jul 2022 23:51:19 +0000 (19:51 -0400)]
test for some bad use of vtables

23 months agoadjust for symbolic vtables
Ralf Jung [Mon, 18 Jul 2022 14:38:26 +0000 (10:38 -0400)]
adjust for symbolic vtables

23 months agoAuto merge of #2414 - RalfJung:cargo-miri, r=RalfJung
bors [Thu, 21 Jul 2022 21:08:02 +0000 (21:08 +0000)]
Auto merge of #2414 - RalfJung:cargo-miri, r=RalfJung

A bit of cargo-miri cleanup

23 months agoavoid redundant setting of env vars in phase_runner
Ralf Jung [Thu, 21 Jul 2022 21:04:04 +0000 (17:04 -0400)]
avoid redundant setting of env vars in phase_runner

23 months agocargo-miri: clean up phase dispatching a bit
Ralf Jung [Thu, 21 Jul 2022 20:58:16 +0000 (16:58 -0400)]
cargo-miri: clean up phase dispatching a bit

23 months agoAuto merge of #2413 - RalfJung:norm, r=RalfJung
bors [Thu, 21 Jul 2022 19:37:34 +0000 (19:37 +0000)]
Auto merge of #2413 - RalfJung:norm, r=RalfJung

normalize stronger

rustc CI has the cargo stuff in `/cargo/...`, so we also need to handle that path.

23 months agonormalize stronger
Ralf Jung [Thu, 21 Jul 2022 19:34:32 +0000 (15:34 -0400)]
normalize stronger

23 months agoAuto merge of #2412 - RalfJung:x.py-fix, r=RalfJung
bors [Thu, 21 Jul 2022 18:21:30 +0000 (18:21 +0000)]
Auto merge of #2412 - RalfJung:x.py-fix, r=RalfJung

cargo-miri x.py fix

Fix for https://github.com/rust-lang/rust/pull/99530#issuecomment-1191768658
Also make the debugging output consistent.

23 months agodon't force target-dir (cargo-miri already deconflicts that)
Ralf Jung [Thu, 21 Jul 2022 18:03:58 +0000 (14:03 -0400)]
don't force target-dir (cargo-miri already deconflicts that)

23 months agowe don't need unstable options
Ralf Jung [Thu, 21 Jul 2022 17:44:16 +0000 (13:44 -0400)]
we don't need unstable options

23 months agosay what we are doing
Ralf Jung [Thu, 21 Jul 2022 16:43:30 +0000 (12:43 -0400)]
say what we are doing

23 months agocargo-miri debugging improvements
Ralf Jung [Thu, 21 Jul 2022 16:04:17 +0000 (12:04 -0400)]
cargo-miri debugging improvements

23 months agoAuto merge of #2410 - rust-lang:miri_auto_ops, r=RalfJung
bors [Thu, 21 Jul 2022 15:31:40 +0000 (15:31 +0000)]
Auto merge of #2410 - rust-lang:miri_auto_ops, r=RalfJung

Some cleanups and docs around the auto ops

23 months agoDocument MIRI_AUTO_OPS
Oli Scherer [Thu, 21 Jul 2022 15:07:07 +0000 (15:07 +0000)]
Document MIRI_AUTO_OPS

23 months agoUse a MIRI namespaced env var name for auto ops
Oli Scherer [Thu, 21 Jul 2022 12:24:13 +0000 (12:24 +0000)]
Use a MIRI namespaced env var name for auto ops

23 months agoAvoid rustformatting on autosave
Oli Scherer [Thu, 21 Jul 2022 11:45:22 +0000 (11:45 +0000)]
Avoid rustformatting on autosave

23 months agoAuto merge of #2408 - RalfJung:deps, r=oli-obk
bors [Thu, 21 Jul 2022 15:00:08 +0000 (15:00 +0000)]
Auto merge of #2408 - RalfJung:deps, r=oli-obk

make test-cargo-miri only about cargo

Move the things that actually test dependency behavior into the regular test suite, now that we can do that. :)

23 months agoaarch inline asm is not stable yet
Ralf Jung [Thu, 21 Jul 2022 14:48:41 +0000 (10:48 -0400)]
aarch inline asm is not stable yet

23 months agoAuto merge of #2409 - RalfJung:cargo-miri-rustc, r=RalfJung
bors [Thu, 21 Jul 2022 14:37:10 +0000 (14:37 +0000)]
Auto merge of #2409 - RalfJung:cargo-miri-rustc, r=RalfJung

cargo-miri: set RUSTC to us

Works around https://github.com/rust-lang/cargo/issues/10885.

23 months agomake the find_miri returned path actually exist
Ralf Jung [Thu, 21 Jul 2022 14:36:55 +0000 (10:36 -0400)]
make the find_miri returned path actually exist

23 months agosome more debug output
Ralf Jung [Thu, 21 Jul 2022 13:58:00 +0000 (09:58 -0400)]
some more debug output

23 months agoreduce chance of RUSTC collisions
Ralf Jung [Thu, 21 Jul 2022 13:36:59 +0000 (09:36 -0400)]
reduce chance of RUSTC collisions

23 months agoonly complain about runtime toolchain mismatch when there actually is a runtime toolchain
Ralf Jung [Thu, 21 Jul 2022 13:30:09 +0000 (09:30 -0400)]
only complain about runtime toolchain mismatch when there actually is a runtime toolchain

23 months agocargo-miri: set RUSTC to us
Ralf Jung [Thu, 21 Jul 2022 13:14:11 +0000 (09:14 -0400)]
cargo-miri: set RUSTC to us

23 months agotest page_size via test dependency support
Ralf Jung [Thu, 21 Jul 2022 12:14:41 +0000 (08:14 -0400)]
test page_size via test dependency support

and move crate tests to their own folders

23 months agomake test-cargo-miri only about cargo
Ralf Jung [Thu, 21 Jul 2022 12:06:11 +0000 (08:06 -0400)]
make test-cargo-miri only about cargo

remove rand (large dependency) and page-size (testing the dependency, not cargo-miri).
keep only byteorder as a "demo" dependency, it is a leaf and builds quickly.

23 months agoAuto merge of #2405 - RalfJung:pwd, r=RalfJung
bors [Thu, 21 Jul 2022 11:20:53 +0000 (11:20 +0000)]
Auto merge of #2405 - RalfJung:pwd, r=RalfJung

fix auto-toolchain pwd

`rustup-toolchain` needs to be called in the right directory

23 months agofix auto-toolchain pwd
Ralf Jung [Thu, 21 Jul 2022 11:19:56 +0000 (07:19 -0400)]
fix auto-toolchain pwd

23 months agoAuto merge of #2383 - rust-lang:dot_mode, r=oli-obk
bors [Thu, 21 Jul 2022 07:40:32 +0000 (07:40 +0000)]
Auto merge of #2383 - rust-lang:dot_mode, r=oli-obk

Print one . character per test instead of one line

`./miri bless -- --quiet` now prints a dot per test, along with the regular Rust unit tests that listen to this flag

23 months agoUse names suggestive of channel endpoints
Oli Scherer [Thu, 21 Jul 2022 07:39:54 +0000 (07:39 +0000)]
Use names suggestive of channel endpoints

23 months agoPrint one character per test instead of one line
Oli Scherer [Mon, 18 Jul 2022 09:19:20 +0000 (09:19 +0000)]
Print one character per test instead of one line

23 months agoAdd a dedicated thread for output printing
Oli Scherer [Mon, 18 Jul 2022 09:02:40 +0000 (09:02 +0000)]
Add a dedicated thread for output printing

23 months agoAuto merge of #2398 - sunshowers:nextest-compat, r=RalfJung
bors [Thu, 21 Jul 2022 01:52:14 +0000 (01:52 +0000)]
Auto merge of #2398 - sunshowers:nextest-compat, r=RalfJung

[cargo-miri] support nextest

Add the ability to run `cargo miri nextest list` and `cargo miri nextest run`.

[cargo-nextest](https://nexte.st) is a new test runner for Rust maintained mostly by myself. It has several new features, but the most relevant to miri is the fact that it runs [each test in its own process](https://nexte.st/book/how-it-works.html#the-nextest-model). This gives miri users better leak detection (https://github.com/rust-lang/miri/issues/1481) for free, for example.

See https://github.com/nextest-rs/nextest/issues/181 for discussion, including comments by `@eddyb` and `@RalfJung.`

Future work might be to have miri read [the list of tests](https://docs.rs/nextest-metadata/latest/nextest_metadata/struct.TestListSummary.html) (or [test binaries](https://docs.rs/nextest-metadata/latest/nextest_metadata/struct.BinaryListSummary.html)) generated by `nextest list`. `@eddyb` thinks that might be useful.

I tested `cargo miri nextest run` against smallvec, and it worked great.

Note: Running tests out of archives is currently broken, as the comment in run-test.py explains.

23 months ago[cargo-miri] support nextest
Rain [Wed, 20 Jul 2022 02:37:24 +0000 (19:37 -0700)]
[cargo-miri] support nextest

Add the ability to run the `list` and `run` nextest commands, which
enable per-test isolation.

23 months agoAuto merge of #2381 - rust-lang:infra, r=RalfJung
bors [Thu, 21 Jul 2022 00:38:37 +0000 (00:38 +0000)]
Auto merge of #2381 - rust-lang:infra, r=RalfJung

Add a scheme for always using the default toolchain, running clippy and fmt before running any other command

I keep forgetting to run rustup-toolchain on rebases across toolchain updates

I also keep forgetting to run rustfmt and clippy. The former isn't run by vscode if I don't explicitly save (I have autosave on).

23 months agofix miri script
Ralf Jung [Thu, 21 Jul 2022 00:37:54 +0000 (20:37 -0400)]
fix miri script

23 months agoAdd a scheme for always using the default toolchain, running clippy and fmt before...
Oli Scherer [Wed, 20 Jul 2022 12:38:27 +0000 (12:38 +0000)]
Add a scheme for always using the default toolchain, running clippy and fmt before running any other command

23 months agoAuto merge of #2404 - RalfJung:mix, r=RalfJung
bors [Wed, 20 Jul 2022 22:32:41 +0000 (22:32 +0000)]
Auto merge of #2404 - RalfJung:mix, r=RalfJung

check for extern static size mismatches

Also handle get_alloc_extra the same throughout Stacked Borrows. I don't think this `unwrap` can actually cause an ICE since another part of SB will raise an error before, but still, seems strange to do this inconsistently in retagging vs expose_ptr.

23 months agosome stray tag → prov renames
Ralf Jung [Wed, 20 Jul 2022 22:31:44 +0000 (18:31 -0400)]
some stray tag → prov renames

23 months agocheck for extern static size mismatches
Ralf Jung [Wed, 20 Jul 2022 21:40:27 +0000 (17:40 -0400)]
check for extern static size mismatches

23 months agohandle get_alloc_extra the same throughout Stacked Borrows
Ralf Jung [Wed, 20 Jul 2022 21:40:49 +0000 (17:40 -0400)]
handle get_alloc_extra the same throughout Stacked Borrows

23 months agoAuto merge of #2403 - RalfJung:rustup, r=RalfJung
bors [Wed, 20 Jul 2022 20:11:10 +0000 (20:11 +0000)]
Auto merge of #2403 - RalfJung:rustup, r=RalfJung

rustup

23 months agorustup
Ralf Jung [Wed, 20 Jul 2022 20:02:06 +0000 (16:02 -0400)]
rustup

23 months agoAuto merge of #2402 - RalfJung:cargo-target, r=RalfJung
bors [Wed, 20 Jul 2022 19:47:48 +0000 (19:47 +0000)]
Auto merge of #2402 - RalfJung:cargo-target, r=RalfJung

cargo-miri: reorder --target to after the user-defined commands

This should help with https://github.com/rust-lang/miri/pull/2398.

23 months agocargo-miri: reorder --target to after the user-defined commands
Ralf Jung [Wed, 20 Jul 2022 19:47:09 +0000 (15:47 -0400)]
cargo-miri: reorder --target to after the user-defined commands

23 months agoAuto merge of #2373 - rust-lang:test_dependencies, r=RalfJung
bors [Wed, 20 Jul 2022 15:59:21 +0000 (15:59 +0000)]
Auto merge of #2373 - rust-lang:test_dependencies, r=RalfJung

Allow ui tests to have dependencies in a reliable way

This completely sidesteps the issue that compiletest-rs has where old artifacts of a dependency cause `multiple available crates of name XXX` errors. At this point I think we've reached feature parity for clippy, too, so I'm going to try publishing a version once this is merged.

23 months agoAllow tests to have dependencies
Oli Scherer [Thu, 14 Jul 2022 10:03:08 +0000 (10:03 +0000)]
Allow tests to have dependencies

23 months agoAuto merge of #2401 - RalfJung:dyn, r=RalfJung
bors [Wed, 20 Jul 2022 15:27:42 +0000 (15:27 +0000)]
Auto merge of #2401 - RalfJung:dyn, r=RalfJung

fix test file name

Would be better to run this test when doing `./miri test dyn`.

23 months agofix test file name
Ralf Jung [Wed, 20 Jul 2022 15:27:04 +0000 (11:27 -0400)]
fix test file name

23 months agoAuto merge of #2391 - RalfJung:stderr, r=oli-obk
bors [Wed, 20 Jul 2022 12:39:21 +0000 (12:39 +0000)]
Auto merge of #2391 - RalfJung:stderr, r=oli-obk

on an error, always print the unnormalized stderr

Currently we skip this if a stderr diff was printed, but the stderr diff is normalized, so e.g. one cannot learn line numbers from it.

Is there a way to get the diff to only print the parts the differ, like a usual `diff -u`? Currently it always seems to print the full output, so with a long stderr we now get doubly long test results even if the diff is actually rather small.

23 months agoAuto merge of #2399 - RalfJung:subcommands, r=RalfJung
bors [Wed, 20 Jul 2022 11:43:38 +0000 (11:43 +0000)]
Auto merge of #2399 - RalfJung:subcommands, r=RalfJung

no need for an exhaustive enum of subcommands

23 months agono need for an exhaustive enum of subcommands
Ralf Jung [Wed, 20 Jul 2022 11:42:08 +0000 (07:42 -0400)]
no need for an exhaustive enum of subcommands

23 months agoAuto merge of #2397 - RalfJung:cleanup, r=RalfJung
bors [Wed, 20 Jul 2022 02:12:09 +0000 (02:12 +0000)]
Auto merge of #2397 - RalfJung:cleanup, r=RalfJung

only do env var cleanup if all threads have stopped

Hopefully fixes https://github.com/rust-lang/miri/issues/2396

23 months agoonly do env var cleanup if all threads have stopped
Ralf Jung [Wed, 20 Jul 2022 01:44:45 +0000 (21:44 -0400)]
only do env var cleanup if all threads have stopped

23 months agoAuto merge of #2394 - saethlin:unique-range-ice, r=RalfJung
bors [Wed, 20 Jul 2022 01:39:40 +0000 (01:39 +0000)]
Auto merge of #2394 - saethlin:unique-range-ice, r=RalfJung

Fix bugs where unique_range became invalid

And also expand the cache integrity checks to cover this case.

I'm going to run this over all the ICEs I've gotten out of Miri recently, could be a bit.

Fixes https://github.com/rust-lang/miri/issues/2389

23 months agoClarify implementation a bit
Ben Kimock [Wed, 20 Jul 2022 00:53:48 +0000 (20:53 -0400)]
Clarify implementation a bit

23 months agoAdd a minimal reproducer of the ICE
Ben Kimock [Wed, 20 Jul 2022 00:22:04 +0000 (20:22 -0400)]
Add a minimal reproducer of the ICE

Co-authored-by: Ralf Jung <post@ralfj.de>
23 months agoFix bugs where unique_range became invalid
Ben Kimock [Tue, 19 Jul 2022 21:08:17 +0000 (17:08 -0400)]
Fix bugs where unique_range became invalid

And also expand the cache integrity checks to cover this case, and
generally assert a lot more about the unique_range, then tighten up
sloppy implementation scenarios that this uncovered.

23 months agoAuto merge of #2395 - RalfJung:upcast, r=RalfJung
bors [Tue, 19 Jul 2022 23:40:30 +0000 (23:40 +0000)]
Auto merge of #2395 - RalfJung:upcast, r=RalfJung

add some dyn upcasting tests

Copied from the rustc test suite.

23 months agoadd some dyn upcasting tests
Ralf Jung [Tue, 19 Jul 2022 23:39:30 +0000 (19:39 -0400)]
add some dyn upcasting tests

23 months agoAuto merge of #2392 - RalfJung:rustup, r=RalfJung
bors [Tue, 19 Jul 2022 19:45:27 +0000 (19:45 +0000)]
Auto merge of #2392 - RalfJung:rustup, r=RalfJung

rustup

23 months agorustup
Ralf Jung [Tue, 19 Jul 2022 19:44:47 +0000 (15:44 -0400)]
rustup

23 months agotweak failure output a little
Ralf Jung [Tue, 19 Jul 2022 18:44:00 +0000 (14:44 -0400)]
tweak failure output a little

23 months agoon an error, always print the unnormalized stderr
Ralf Jung [Tue, 19 Jul 2022 18:40:17 +0000 (14:40 -0400)]
on an error, always print the unnormalized stderr

23 months agoAuto merge of #2390 - RalfJung:debug, r=RalfJung
bors [Tue, 19 Jul 2022 18:15:05 +0000 (18:15 +0000)]
Auto merge of #2390 - RalfJung:debug, r=RalfJung

fix some debugging papercuts

- detect when Miri got locally installed and is being run with the wrong toolchain
- when an ICE occurs, print a backtrace of where the interpreter was at the time

23 months agoshow where the interpreter was interpreting when an ICE occurs
Ralf Jung [Tue, 19 Jul 2022 17:31:43 +0000 (13:31 -0400)]
show where the interpreter was interpreting when an ICE occurs

23 months agoshow a better error when running Miri with the wrong sysroot
Ralf Jung [Tue, 19 Jul 2022 17:19:00 +0000 (13:19 -0400)]
show a better error when running Miri with the wrong sysroot

23 months agoAuto merge of #2350 - RalfJung:remove-deprecated, r=oli-obk
bors [Tue, 19 Jul 2022 12:29:29 +0000 (12:29 +0000)]
Auto merge of #2350 - RalfJung:remove-deprecated, r=oli-obk

remove deprecated options

These have been deprecated a month ago and nobody said they need them. Is that enough time? We can also let this PR sit a little.

Cc https://github.com/rust-lang/miri/issues/2187 https://github.com/rust-lang/miri/issues/2188
(keeping them open to track removing their supporting infrastructure in the core interpreter)

23 months agoAuto merge of #2388 - RalfJung:rustup, r=RalfJung
bors [Tue, 19 Jul 2022 12:04:07 +0000 (12:04 +0000)]
Auto merge of #2388 - RalfJung:rustup, r=RalfJung

rustup

Cc https://github.com/rust-lang/rust/issues/99461

23 months agorustup
Ralf Jung [Tue, 19 Jul 2022 12:03:39 +0000 (08:03 -0400)]
rustup

23 months agoAuto merge of #2386 - RalfJung:xargo-atomic, r=RalfJung
bors [Tue, 19 Jul 2022 11:17:12 +0000 (11:17 +0000)]
Auto merge of #2386 - RalfJung:xargo-atomic, r=RalfJung

cargo-miri: write the Xargo project files atomically

`@matthiaskrgr` this should fix https://github.com/rust-lang/miri/issues/2340. Any chance you could test this before we land it?

23 months agoAuto merge of #2387 - RalfJung:ui-readme, r=oli-obk
bors [Tue, 19 Jul 2022 09:26:14 +0000 (09:26 +0000)]
Auto merge of #2387 - RalfJung:ui-readme, r=oli-obk

update ui_test readme

I forgot to do that when changing the ignore/only syntax.

23 months agoupdate ui_test readme
Ralf Jung [Tue, 19 Jul 2022 01:42:50 +0000 (21:42 -0400)]
update ui_test readme

23 months agocargo-miri: write the Xargo project files atomically
Ralf Jung [Mon, 18 Jul 2022 23:50:03 +0000 (19:50 -0400)]
cargo-miri: write the Xargo project files atomically

23 months agoAuto merge of #2385 - RalfJung:dev, r=RalfJung
bors [Mon, 18 Jul 2022 21:49:32 +0000 (21:49 +0000)]
Auto merge of #2385 - RalfJung:dev, r=RalfJung

use env vars, not Cargo.toml, to configure out dev profile

This should fix the cargo warnings we are seeing in rustc.

23 months agouse env vars, not Cargo.toml, to configure out dev profile
Ralf Jung [Mon, 18 Jul 2022 21:47:32 +0000 (17:47 -0400)]
use env vars, not Cargo.toml, to configure out dev profile

23 months agoAuto merge of #2382 - RalfJung:atomic, r=RalfJung
bors [Mon, 18 Jul 2022 12:56:44 +0000 (12:56 +0000)]
Auto merge of #2382 - RalfJung:atomic, r=RalfJung

add support for new RMW orders

Implements support for https://github.com/rust-lang/rust/pull/98383.

Also restructure intrinsic shims a bit so we have atomic and SIMD intrinsics in their own file, and refactor atomic intrinsic name parsing.

23 months agorefactor atomic intrinsic handling to actually parse the intrinsic name
Ralf Jung [Mon, 18 Jul 2022 12:55:50 +0000 (08:55 -0400)]
refactor atomic intrinsic handling to actually parse the intrinsic name

23 months agomake atomic intrinsic impl details private
Ralf Jung [Mon, 18 Jul 2022 12:22:27 +0000 (08:22 -0400)]
make atomic intrinsic impl details private

23 months agoadd support for new RMW orders
Ralf Jung [Mon, 18 Jul 2022 12:20:06 +0000 (08:20 -0400)]
add support for new RMW orders

23 months agoremove ret param from foreign_item hierarchy
Ralf Jung [Mon, 18 Jul 2022 12:05:46 +0000 (08:05 -0400)]
remove ret param from foreign_item hierarchy