Commit graph

254216 commits

Author SHA1 Message Date
Ross Smyth
620bf348e1 Update documentation for miri-script test changes 2024-05-08 18:05:28 -04:00
Ross Smyth
6e564ed9fd Update CI script for the miri-script test changes 2024-05-08 18:05:28 -04:00
Ross Smyth
6580a22726 Allow test targets to be set via CLI args 2024-05-08 18:05:26 -04:00
bors
720ff0d683 Auto merge of #3583 - RalfJung:readme, r=saethlin
README: update introduction

For some time now, we have (to my knowledge) been able to detect all the UB that rustc actually exploits. I think it's time to advertise that.

We also haven't had the problem of "not every nightly has Miri" for a while.

`@rust-lang/miri` what do you think?
2024-05-08 11:40:40 +00:00
Ralf Jung
34f64cddf5 remove problems that I do not think we have seen in a while 2024-05-07 21:50:02 +02:00
Ralf Jung
d2472ba2cb README: update introduction 2024-05-07 21:50:02 +02:00
bors
4d6d9a95f6 Auto merge of #3579 - RalfJung:libc, r=RalfJung
organize libc tests into a proper folder, and run some of them on Windows
2024-05-06 09:28:51 +00:00
Ralf Jung
dd5437fdff organize libc tests into a proper folder, and run some of them on Windows 2024-05-06 11:15:07 +02:00
bors
3d269e9633 Auto merge of #3474 - tyilo:wcslen, r=RalfJung
Implement wcslen
2024-05-06 09:04:04 +00:00
Asger Hautop Drewsen
43c99160d3 Implement wcslen 2024-05-06 10:54:51 +02:00
bors
e477895aaf Auto merge of #3578 - RalfJung:realloc, r=RalfJung
avoid code duplication between realloc and malloc
2024-05-06 08:06:16 +00:00
Ralf Jung
82e2144ed7 avoid code duplication between realloc and malloc 2024-05-06 09:45:11 +02:00
bors
629d57e700 Auto merge of #3574 - RalfJung:deps, r=RalfJung
reduce test_dependencies

Also add comments for why we need all these 3 random functions for Windows, and the old Linux syscall interface.
2024-05-05 20:45:21 +00:00
Ralf Jung
a5baa150e3 getrandom: test with and without isolation
also add some comments for why we keep certain old obscure APIs supported
2024-05-05 22:41:28 +02:00
Ralf Jung
6a47bd4cf7 remove rand test
the actual target-specific things we want to test are all in getrandom,
and rand already tests miri itself
2024-05-05 22:36:03 +02:00
Ralf Jung
37087dbed7 reduce tokio features 2024-05-05 22:34:53 +02:00
bors
e43458cf06 Auto merge of #3570 - devnexen:solaris_build_fix, r=RalfJung
Solaris: make pre-main code work

Fixes https://github.com/rust-lang/miri/issues/3566
2024-05-05 20:11:17 +00:00
David Carlier
fb84198387 solaris support start. 2024-05-05 21:08:39 +00:00
bors
a418b2dc70 Auto merge of #3573 - RalfJung:fs-cfg, r=RalfJung
unix/fs: a bit of cleanup around host-specific code
2024-05-05 16:51:27 +00:00
Ralf Jung
0ca3591a6d unix/fs: a bit of cleanup around host-specific code 2024-05-05 18:49:32 +02:00
Ralf Jung
ba94910afd update rustc-build-sysroot for dealing with unexpected_cfgs 2024-05-05 17:18:57 +02:00
Ralf Jung
47b3ce0ea7 update lockfile 2024-05-05 17:17:45 +02:00
bors
19a5d475f2 Auto merge of #3565 - RalfJung:libc, r=RalfJung
re-organize libc tests

And share some more things across unices
2024-05-05 14:07:43 +00:00
Ralf Jung
f3018409fc hello: also ensure stderr works 2024-05-05 15:46:13 +02:00
Ralf Jung
aaf5c5e742 move randomness tests into a single file and share the getrandom implementation across unices 2024-05-05 15:46:12 +02:00
Ralf Jung
352b21033a move things out of libc-misc that have a better home; make libc-misc work on illumos 2024-05-05 15:45:28 +02:00
bors
e1b5e5540f Auto merge of #3569 - RalfJung:cargo-update, r=RalfJung
housekeeping: update dependencies

This also pulls in the new rustc-build-sysroot that hides all the unexpected_cfgs noise.
2024-05-05 13:41:36 +00:00
Ralf Jung
067e33d701 housekeeping: update dependencies 2024-05-05 15:31:13 +02:00
bors
12b98de202 Auto merge of #3568 - RalfJung:pthread-thread_t, r=RalfJung
unix/thread: properly use pthread_t for thread IDs

This makes basic concurrency work on Solarish.
2024-05-05 13:16:41 +00:00
Ralf Jung
5b6df92d54 unix/thread: properly use pthread_t for thread IDs 2024-05-05 15:12:23 +02:00
bors
a479ed6dcb Auto merge of #3564 - RalfJung:pthread-sync, r=RalfJung
pthread shims: reorganize field offset handling, and add sanity checks
2024-05-05 12:25:40 +00:00
Ralf Jung
e5597b20c4 sanity-check the pthread offsets against the static initializers 2024-05-05 14:24:21 +02:00
Ralf Jung
ba1a00af15 pthread shims: reorganize field offset handling 2024-05-05 13:35:07 +02:00
bors
fd8f9a6428 Auto merge of #3198 - devnexen:solarish_support, r=RalfJung
illumos support
2024-05-05 11:08:24 +00:00
David Carlier
b4011a08e8 illumos support. 2024-05-05 12:52:47 +01:00
bors
e3fe30d828 Auto merge of #3563 - RalfJung:rustup, r=RalfJung
Rustup
2024-05-04 20:53:13 +00:00
Ralf Jung
745e3f224c make ExitProcess Windows-only 2024-05-04 22:50:51 +02:00
Ralf Jung
85e061af8f fix/extend some comments 2024-05-04 22:48:02 +02:00
Ralf Jung
ef5a574af4 rustc_pull: explain order of operations 2024-05-04 22:44:56 +02:00
Ralf Jung
8db37a3cb5 Merge from rustc 2024-05-04 22:44:01 +02:00
Ralf Jung
89e828889a Preparing for merge from rustc 2024-05-04 22:28:57 +02:00
bors
82a8059755 Auto merge of #3562 - RalfJung:unsupported, r=RalfJung
only show the 'basic API common for this target' message when this is a missing foreign function

Follow-up to https://github.com/rust-lang/miri/pull/3558
2024-05-04 18:58:20 +00:00
Ralf Jung
cdf3f3c202 only show the 'basic API common for this target' message when this is a missing foreign function 2024-05-04 20:56:51 +02:00
bors
d568423a7a Auto merge of #124716 - matthiaskrgr:rollup-ni58ie1, r=matthiaskrgr
Rollup of 4 pull requests

Successful merges:

 - #122441 (Improve several `Read` implementations)
 - #124584 (Various improvements to entrypoint code)
 - #124699 (Use `unchecked_sub` in `split_at`)
 - #124715 (interpret, miri: uniform treatments of intrinsics/functions with and without return block)

r? `@ghost`
`@rustbot` modify labels: rollup
2024-05-04 18:18:42 +00:00
bors
d0e77727b1 Auto merge of #3561 - RalfJung:rustup, r=RalfJung
Rustup
2024-05-04 17:36:03 +00:00
bors
7eda989cc9 Auto merge of #3557 - RalfJung:getaffinity, r=RalfJung
Move sched_getaffinity back to Linux

This reverts commit c1a3f8576ea12b0bed68ad3dedf4069ca3d9816f. The shim isn't actually useful for anything, and it is untested on FreeBSD. On Linux it exists solely because std and num_cpus are trying this before falling back to `sysconf`, but on FreeBSD that's not how they work, so there's no reason I can see to have this stub shim on FreeBSD.
2024-05-04 17:11:02 +00:00
Ralf Jung
a040df7e4e remove some dead code 2024-05-04 19:09:40 +02:00
Ralf Jung
c6e273cccd bless and fmt 2024-05-04 18:40:02 +02:00
Ralf Jung
0c989293ce Merge from rustc 2024-05-04 18:37:35 +02:00
Ralf Jung
adb74ae486 Preparing for merge from rustc 2024-05-04 18:37:23 +02:00