about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-05-05Auto merge of #3565 - RalfJung:libc, r=RalfJungbors-451/+418
re-organize libc tests And share some more things across unices
2024-05-05hello: also ensure stderr worksRalf Jung-0/+2
2024-05-05move randomness tests into a single file and share the getrandom ↵Ralf Jung-88/+55
implementation across unices
2024-05-05move things out of libc-misc that have a better home; make libc-misc work on ↵Ralf Jung-364/+362
illumos
2024-05-05Auto merge of #3569 - RalfJung:cargo-update, r=RalfJungbors-335/+309
housekeeping: update dependencies This also pulls in the new rustc-build-sysroot that hides all the unexpected_cfgs noise.
2024-05-05fix: keep parentheses when the precedence of inner expr is lower than the ↵roife-36/+40
outer one
2024-05-05housekeeping: update dependenciesRalf Jung-335/+309
2024-05-05unix/thread: properly use pthread_t for thread IDsRalf Jung-5/+7
2024-05-05sanity-check the pthread offsets against the static initializersRalf Jung-26/+123
2024-05-05pthread shims: reorganize field offset handlingRalf Jung-191/+134
2024-05-05illumos support.David Carlier-24/+102
2024-05-04make ExitProcess Windows-onlyRalf Jung-8/+8
2024-05-04fix/extend some commentsRalf Jung-1/+2
2024-05-04rustc_pull: explain order of operationsRalf Jung-0/+2
2024-05-04Merge from rustcRalf Jung-223/+183
2024-05-04Preparing for merge from rustcRalf Jung-1/+1
2024-05-04only show the 'basic API common for this target' message when this is a ↵Ralf Jung-44/+34
missing foreign function
2024-05-04Auto merge of #3561 - RalfJung:rustup, r=RalfJungbors-49/+111
Rustup
2024-05-04Auto merge of #3557 - RalfJung:getaffinity, r=RalfJungbors-19/+13
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-04remove some dead codeRalf Jung-3/+0
2024-05-04bless and fmtRalf Jung-5/+13
2024-05-04Merge from rustcRalf Jung-45/+102
2024-05-04Preparing for merge from rustcRalf Jung-1/+1
2024-05-04also test pthread_condattr_getclockRalf Jung-1/+42
2024-05-04factor some pthread offset into constantsRalf Jung-8/+16
2024-05-04sync: better error in invalid synchronization primitive IDRalf Jung-0/+9
2024-05-04interpret, miri: uniform treatments of intrinsics/functions with and without ↵Ralf Jung-217/+184
return block
2024-05-04Auto merge of #3559 - RalfJung:weak-extern-static, r=RalfJungbors-36/+50
add helper function to declare an extern static for a weak symbol and use it to make `statx` a regular function and get rid of the syscall
2024-05-04make statx a regular function (so we don't need to support the syscall)Ralf Jung-26/+23
2024-05-04add helper function to declare an extern static for a weak symbolRalf Jung-10/+27
2024-05-04Auto merge of #124703 - matthiaskrgr:rollup-2lljptd, r=matthiaskrgrbors-34/+64
Rollup of 8 pull requests Successful merges: - #123356 (Reduce code size of `thread::set_current`) - #124159 (Move thread parking to `sys::sync`) - #124293 (Let miri and const eval execute intrinsics' fallback bodies) - #124677 (Set non-leaf frame pointers on Fuchsia targets) - #124692 (We do not coerce `&mut &mut T -> *mut mut T`) - #124698 (Rewrite `rustdoc-determinism` test in Rust) - #124700 (Remove an unnecessary cast) - #124701 (Docs: suggest `uN::checked_sub` instead of check-then-unchecked) r? `@ghost` `@rustbot` modify labels: rollup
2024-05-04Auto merge of #3554 - RalfJung:freebsd, r=RalfJungbors-33/+34
document unofficially supported OSes Also tweak the freeBSD testing a bit.
2024-05-04Auto merge of #3558 - RalfJung:unsupported, r=RalfJungbors-22/+45
update 'unsupported' message Instead of "the interpreter", just say Miri. Also be a more more clear about what is expected to be supported and what not (Cc https://github.com/rust-lang/miri/issues/2325).
2024-05-04make some tests not need output (so they work on wasm)Ralf Jung-10/+6
2024-05-04document unofficially supported OSesRalf Jung-2/+5
2024-05-04freebsd: test std threadname and fs APIsRalf Jung-21/+23
also reorder foreign_items to fix the grouping, and reorder the tests_minimal invocations to be more consistent
2024-05-04update 'unsupported' messageRalf Jung-22/+45
2024-05-04Revert "moving out sched_getaffinity interception from linux'shim, FreeBSD ↵Ralf Jung-19/+13
supporting it too." This reverts commit c1a3f8576ea12b0bed68ad3dedf4069ca3d9816f.
2024-05-04Auto merge of #3552 - RalfJung:ci, r=RalfJungbors-14/+12
even out CI runner times
2024-05-04Auto merge of #3556 - RalfJung:intrinsics, r=RalfJungbors-32/+32
move intrinsics tests into dedicated folder And separate them from "shims" (which are for extern functions we link against).
2024-05-04move some minimal targets over to the macOS runner, to even out CI timesRalf Jung-10/+8
2024-05-04fix grouping of target-specific LLVM shimsRalf Jung-30/+30
2024-05-04Rollup merge of #124698 - JoverZhang:test-rustdoc-determinism, r=jieyouxuMatthias Krüger-1/+0
Rewrite `rustdoc-determinism` test in Rust Rewrite the `rustdoc-determinism` test from #121876. r? `@jieyouxu`
2024-05-04Rollup merge of #124293 - oli-obk:miri_intrinsic_fallback_body, r=RalfJungMatthias Krüger-33/+64
Let miri and const eval execute intrinsics' fallback bodies fixes https://github.com/rust-lang/miri/issues/3397 r? ``@RalfJung``
2024-05-04move intrinsics implementations and tests into dedicated folderRalf Jung-2/+2
and make them separate from 'shims'
2024-05-04Auto merge of #124345 - Urgau:compiletest-check-cfg, r=jieyouxubors-3/+29
Enable `--check-cfg` by default in UI tests This PR enables-by-default `--check-cfg` in UI tests, now that it has become stable. To do so this PR does 2 main things: - it introduce the `no-auto-check-cfg` directive to `compiletest`, to prevent any `--check-cfg` args (only to be used for `--check-cfg` tests) - it updates the _remaining_[^1] UI tests by either: - allowing the lint when neither expecting the lint nor giving the check-cfg args make sense - give the appropriate check-cfg args - or expect the lint, when it useful [^1]: some preparation work was done in #123577 #123702 I highly recommend reviewing this PR commit-by-commit. r? `@jieyouxu`
2024-05-04rename integer testRalf Jung-0/+0
2024-05-04move available-parallelism tests into shims/ folderRalf Jung-0/+0
2024-05-04Auto merge of #3533 - Luv-Ray:file-descriptors-to-refcount-references, ↵bors-201/+193
r=RalfJung Make file descriptors into refcount references fixes #3525 Remove `fn dup` in `trait FileDescription`, define `struct FileDescriptor(Rc<RefCell<dyn FileDescription>>)`, and use `BTreeMap<i32, FileDescriptor>` in `FdTable`. --- There are some refactors similar to the following form: ```rust { // origin: if let Some(file_descriptor) = this.machine.fds.get_mut(fd) { // write file_descriptor this.try_unwrap_io_result(result) } else { this.fd_not_found() } } { // now: let Some(mut file_descriptor) = this.machine.fds.get_mut(fd) else { return this.fd_not_found(); }; // write file_descriptor drop(file_descriptor); this.try_unwrap_io_result(result) } ``` The origin form can't compile because as using `RefCell` to get interior mutability, `fn get_mut` return `Option<std::cell::RefMut<'_, dyn FileDescription>>` instead of `Option<&mut dyn FileDescription>` now, and the `deref_mut` on `file_descriptor: RefMut` will cause borrow `this` as mutable more than once at a time. So this form of refactors and manual drops are are implemented to avoid borrowing `this` at the same time.
2024-05-04show time taken in run_tests_minimalRalf Jung-2/+2