| Age | Commit message (Collapse) | Author | Lines |
|
re-organize libc tests
And share some more things across unices
|
|
|
|
implementation across unices
|
|
illumos
|
|
housekeeping: update dependencies
This also pulls in the new rustc-build-sysroot that hides all the unexpected_cfgs noise.
|
|
outer one
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
missing foreign function
|
|
Rustup
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return block
|
|
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
|
|
|
|
|
|
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
|
|
document unofficially supported OSes
Also tweak the freeBSD testing a bit.
|
|
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).
|
|
|
|
|
|
also reorder foreign_items to fix the grouping, and reorder the tests_minimal invocations to be more consistent
|
|
|
|
supporting it too."
This reverts commit c1a3f8576ea12b0bed68ad3dedf4069ca3d9816f.
|
|
even out CI runner times
|
|
move intrinsics tests into dedicated folder
And separate them from "shims" (which are for extern functions we link against).
|
|
|
|
|
|
Rewrite `rustdoc-determinism` test in Rust
Rewrite the `rustdoc-determinism` test from #121876.
r? `@jieyouxu`
|
|
Let miri and const eval execute intrinsics' fallback bodies
fixes https://github.com/rust-lang/miri/issues/3397
r? ``@RalfJung``
|
|
and make them separate from 'shims'
|
|
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`
|
|
|
|
|
|
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.
|
|
|