]> git.lizzy.rs Git - rust.git/log
rust.git
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 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 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

23 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
```

23 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

23 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
```

23 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

23 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

23 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

23 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>
23 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`

23 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

23 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

23 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

23 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.

23 months agoAuto merge of #2447 - RalfJung:rustup, r=RalfJung
bors [Wed, 27 Jul 2022 00:39:00 +0000 (00:39 +0000)]
Auto merge of #2447 - RalfJung:rustup, r=RalfJung

rustup

23 months agorustup
Ralf Jung [Wed, 27 Jul 2022 00:38:25 +0000 (20:38 -0400)]
rustup

23 months agoAuto merge of #2444 - oli-obk:file_descriptor_defaults, r=RalfJung
bors [Tue, 26 Jul 2022 23:35:05 +0000 (23:35 +0000)]
Auto merge of #2444 - oli-obk:file_descriptor_defaults, r=RalfJung

Add default impls for `FileDescriptor` methods

I felt like it was just noisy to have to write the "can't do this here" defaults

23 months agoAuto merge of #2446 - RalfJung:rustup, r=RalfJung
bors [Tue, 26 Jul 2022 02:41:55 +0000 (02:41 +0000)]
Auto merge of #2446 - RalfJung:rustup, r=RalfJung

add test for dyn call issue

Tests for https://github.com/rust-lang/miri/issues/2432

23 months agoadd test for dyn call issue
Ralf Jung [Tue, 26 Jul 2022 02:40:56 +0000 (22:40 -0400)]
add test for dyn call issue

23 months agoAdd default impls for `FileDescriptor` methods
Oli Scherer [Mon, 25 Jul 2022 17:55:45 +0000 (17:55 +0000)]
Add default impls for `FileDescriptor` methods

23 months agoAuto merge of #2438 - RalfJung:more-track-caller, r=RalfJung
bors [Mon, 25 Jul 2022 14:38:57 +0000 (14:38 +0000)]
Auto merge of #2438 - RalfJung:more-track-caller, r=RalfJung

adjust for more backtrace pruning

The Miri side of https://github.com/rust-lang/rust/pull/99690. Those messages are much nicer. :) And we also need error-pattern much less.

23 months agorustup
Ralf Jung [Mon, 25 Jul 2022 14:35:07 +0000 (10:35 -0400)]
rustup

23 months agoadjust for more backtrace pruning
Ralf Jung [Sun, 24 Jul 2022 18:28:45 +0000 (14:28 -0400)]
adjust for more backtrace pruning

23 months agoAuto merge of #2422 - RalfJung:integers, r=oli-obk
bors [Mon, 25 Jul 2022 11:46:55 +0000 (11:46 +0000)]
Auto merge of #2422 - RalfJung:integers, r=oli-obk

enable clippy lints against integer casts

Cc https://github.com/rust-lang/miri/issues/1236

23 months agoAuto merge of #2436 - RalfJung:lib-crates, r=oli-obk
bors [Mon, 25 Jul 2022 10:39:02 +0000 (10:39 +0000)]
Auto merge of #2436 - RalfJung:lib-crates, r=oli-obk

fix build.rs invoking RUSTC to do check builds

This makes the Miri driver, when invokved via the RUSTC env var from inside a build script, behave almost entirely like rustc. I had to redo how we propagate sysroot information for this (which is actually back to how we used to do sysroot propagation many years ago).

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

23 months agoAuto merge of #2434 - RalfJung:ui-test-locked, r=oli-obk
bors [Mon, 25 Jul 2022 09:32:40 +0000 (09:32 +0000)]
Auto merge of #2434 - RalfJung:ui-test-locked, r=oli-obk

ui_test: build dependencies in locked mode unless bless is enabled

This should help ensure that tests are reproducible.

23 months agoAuto merge of #2440 - RalfJung:up, r=RalfJung
bors [Sun, 24 Jul 2022 21:56:00 +0000 (21:56 +0000)]
Auto merge of #2440 - RalfJung:up, r=RalfJung

rustup

23 months agorustup
Ralf Jung [Sun, 24 Jul 2022 21:51:29 +0000 (17:51 -0400)]
rustup

23 months agoAuto merge of #2439 - RalfJung:ptr-offset-from-unsigned, r=RalfJung
bors [Sun, 24 Jul 2022 19:24:55 +0000 (19:24 +0000)]
Auto merge of #2439 - RalfJung:ptr-offset-from-unsigned, r=RalfJung

more tests for ptr_offset_from_unsinged

23 months agomore tests for ptr_offset_from_unsinged
Ralf Jung [Sun, 24 Jul 2022 19:23:39 +0000 (15:23 -0400)]
more tests for ptr_offset_from_unsinged

23 months agofmt
Ralf Jung [Sun, 24 Jul 2022 17:58:14 +0000 (13:58 -0400)]
fmt

23 months agotest all of the autocfg queries
Ralf Jung [Sun, 24 Jul 2022 14:17:33 +0000 (10:17 -0400)]
test all of the autocfg queries

23 months agomake miri a better RUSTC by default inside cargo-miri
Ralf Jung [Sun, 24 Jul 2022 14:06:49 +0000 (10:06 -0400)]
make miri a better RUSTC by default inside cargo-miri

this requires a change in sysroot handling: miri driver now requires
MIRI_SYSROOT to be set when it is in 'target' mode, rather than relying on
`--sysroot` always being present.

23 months agoAuto merge of #2435 - RalfJung:rustup, r=RalfJung
bors [Sun, 24 Jul 2022 13:26:38 +0000 (13:26 +0000)]
Auto merge of #2435 - RalfJung:rustup, r=RalfJung

Rustup

23 months agoget rid of some uses of core_intrinsics
Ralf Jung [Sun, 24 Jul 2022 12:48:58 +0000 (08:48 -0400)]
get rid of some uses of core_intrinsics

23 months agorustup
Ralf Jung [Sun, 24 Jul 2022 12:37:29 +0000 (08:37 -0400)]
rustup

23 months agoui_test: build dependencies in locked mode unless bless is enabled
Ralf Jung [Sun, 24 Jul 2022 11:37:10 +0000 (07:37 -0400)]
ui_test: build dependencies in locked mode unless bless is enabled

23 months agoAuto merge of #2430 - RalfJung:no-global-wrapper, r=RalfJung
bors [Sun, 24 Jul 2022 00:35:28 +0000 (00:35 +0000)]
Auto merge of #2430 - RalfJung:no-global-wrapper, r=RalfJung

attempt to overwrite globally set build.rustc-wrapper

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

23 months agoattempt to test RUSTC and RUSTC_WRAPPER shenanigans on CI
Ralf Jung [Sat, 23 Jul 2022 23:30:15 +0000 (19:30 -0400)]
attempt to test RUSTC and RUSTC_WRAPPER shenanigans on CI

23 months agoAuto merge of #2428 - RalfJung:cargo-miri-runner, r=RalfJung
bors [Sun, 24 Jul 2022 00:06:12 +0000 (00:06 +0000)]
Auto merge of #2428 - RalfJung:cargo-miri-runner, r=RalfJung

cargo-miri: use '--config target.runner' rather than the TARGET_RUNNER env vars

That means we can properly escape spaces in our filename. This should fix https://github.com/rust-lang/miri/issues/2417, hopefully for real this time. We can also specify a "leading command" which makes it much easier to disambiguate runner invocations from rustdoc invocations!

Thanks to `@ehuss` for suggesting this.

23 months agoattempt to overwrite globally set build.rustc-wrapper
Ralf Jung [Sat, 23 Jul 2022 23:22:02 +0000 (19:22 -0400)]
attempt to overwrite globally set build.rustc-wrapper

23 months agoAuto merge of #2427 - Nilstrieb:doc-fix, r=saethlin
bors [Sat, 23 Jul 2022 23:21:26 +0000 (23:21 +0000)]
Auto merge of #2427 - Nilstrieb:doc-fix, r=saethlin

Fix outdated docs in sb stack cache

Since `Item` is bitpacked now, the full `Item` is stored in the cache.

23 months agoFix outdated docs in sb stack cache
Nilstrieb [Sat, 23 Jul 2022 20:27:05 +0000 (22:27 +0200)]
Fix outdated docs in sb stack cache

Since `Item` is bitpacked now, the full `Item` is stored in the cache.

23 months agoavoid spurious 'Preparing a sysroot for Miri...' in 'cargo miri setup --print-sysroot'
Ralf Jung [Sat, 23 Jul 2022 21:58:20 +0000 (17:58 -0400)]
avoid spurious 'Preparing a sysroot for Miri...' in 'cargo miri setup --print-sysroot'

also clean up sysroot building printing logic a bit

23 months agoset runner for all targets via 'all()'
Ralf Jung [Sat, 23 Jul 2022 21:46:02 +0000 (17:46 -0400)]
set runner for all targets via 'all()'

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 agopass clippy::cast_possible_truncation
Ralf Jung [Sat, 23 Jul 2022 12:44:16 +0000 (08:44 -0400)]
pass clippy::cast_possible_truncation

23 months agopass clippy::cast_sign_loss and clippy::cast_possible_wrap
Ralf Jung [Sat, 23 Jul 2022 12:35:45 +0000 (08:35 -0400)]
pass clippy::cast_sign_loss and clippy::cast_possible_wrap

23 months agopass clippy::cast_lossless
Ralf Jung [Sat, 23 Jul 2022 12:24:33 +0000 (08:24 -0400)]
pass clippy::cast_lossless

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