8fd0bc644f
mikros: Better errno docs and print names
2024-10-13 10:24:02 -05:00
b78fffd9b0
mikros: implement read_dir
2024-10-04 12:27:43 -05:00
b9a358e1c5
mikros: Update file RPC to use Errno as error type
2024-10-04 12:03:11 -05:00
334a5698eb
mikros: Impl From<io::Error(Kind)> for Errno
2024-10-04 10:03:59 -05:00
59db13756e
mikros: Add errno
2024-10-03 12:20:48 -05:00
783aa92bde
mikros: move file seeking into the RPC servers
2024-09-30 13:31:10 -05:00
a94d4d57de
Update to latest rustc
2024-09-27 18:23:56 -05:00
cf4c629a2b
Merge branch 'master' of https://github.com/rust-lang/rust
2024-09-23 20:36:05 -05:00
cdb711ae33
mikros: Add wake_new syscall and wake new processes after setting STDIO
2024-09-23 13:26:50 -05:00
joboet
e94dd9b712
random: add tracking issue, address other comments
2024-09-23 10:36:16 +02:00
joboet
b9d47cfa9b
std: switch to faster random sources on macOS and most BSDs
2024-09-23 10:36:16 +02:00
joboet
5c1c725724
std: implement the random
feature
...
Implements the ACP https://github.com/rust-lang/libs-team/issues/393 .
2024-09-23 10:29:51 +02:00
Matthias Krüger
004213b77d
Rollup merge of #130723 - D0liphin:master, r=workingjubilee
...
Add test for `available_parallelism()`
This is a redo of [this PR](https://github.com/rust-lang/rust/pull/104095 ).
I changed the location of the test as per comments in the original thread. Otherwise the test is practically the same.
try-job: test-various
2024-09-23 06:45:37 +02:00
Michael Goulet
c682aa162b
Reformat using the new identifier sorting from rustfmt
2024-09-22 19:11:29 -04:00
Oli Iliffe
e9b0bc9432
Add test for available_parallelism()
...
This is a redo of (this PR)[https://github.com/rust-lang/rust/pull/104095 ].
Add test for available_parallelism
Add test for available_parallelism
Add test for
Add test for
2024-09-22 23:46:08 +01:00
5ccb37a3f7
mikros: Do not close stdio after every use
2024-09-22 14:53:27 -05:00
7bd76e861a
mikros: Fix File::duplicate using wrong RPC proto/func
2024-09-22 13:56:19 -05:00
5ff8990346
mikros: Properly implement stdio
2024-09-22 11:57:19 -05:00
b3b12eec10
Merge branch 'master' of https://github.com/rust-lang/rust
2024-09-21 21:45:19 -05:00
The 8472
ca1a2a6457
wait for two short reads before uncapping the max read size
...
for disk IO:
1st short read = probably at end of file
2nd short read = confirming that it's indeed EOF
2024-09-21 18:50:29 +02:00
Matthias Krüger
f2290c23fc
Rollup merge of #129718 - lolbinarycat:remove_dir-docs, r=Noratrieb
...
add guarantee about remove_dir and remove_file error kinds
approved in ACP https://github.com/rust-lang/libs-team/issues/433
2024-09-21 07:22:47 +02:00
bors
da889684c8
Auto merge of #130631 - GuillaumeGomez:rollup-jpgy1iv, r=GuillaumeGomez
...
Rollup of 7 pull requests
Successful merges:
- #128209 (Remove macOS 10.10 dynamic linker bug workaround)
- #130526 (Begin experimental support for pin reborrowing)
- #130611 (Address diagnostics regression for `const_char_encode_utf8`.)
- #130614 (Add arm64e-apple-tvos target)
- #130617 (bail if there are too many non-region infer vars in the query response)
- #130619 (Fix scraped examples height)
- #130624 (Add `Vec::as_non_null`)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-09-20 19:51:45 +00:00
f5514cb92a
Pass tidy
2024-09-20 14:38:36 -05:00
202eb774c2
mikros: Add FileExt trait to allow getting underline PID and FD of a file
2024-09-20 14:34:39 -05:00
nora
c72264157b
Remove double spaces
2024-09-20 19:55:28 +02:00
Guillaume Gomez
bf6389f077
Rollup merge of #128209 - beetrees:no-macos-10.10, r=jieyouxu
...
Remove macOS 10.10 dynamic linker bug workaround
Rust's current minimum macOS version is 10.12, so the hack can be removed. This PR also updates the `remove_dir_all` docs to reflect that all supported macOS versions are protected against TOCTOU race conditions (the fallback implementation was already removed in #127683 ).
try-job: dist-x86_64-apple
try-job: dist-aarch64-apple
try-job: dist-apple-various
try-job: aarch64-apple
try-job: x86_64-apple-1
2024-09-20 19:46:37 +02:00
bors
5ba6db1b64
Auto merge of #124895 - obeis:static-mut-hidden-ref, r=compiler-errors
...
Disallow hidden references to mutable static
Closes #123060
Tracking:
- https://github.com/rust-lang/rust/issues/123758
2024-09-20 17:25:34 +00:00
GnomedDev
98e68e5040
[Clippy] Remove final std paths for diagnostic item
2024-09-20 10:39:31 +01:00
Matthias Krüger
553c20cc92
Rollup merge of #130554 - ShE3py:unsupported-exitcode, r=Noratrieb
...
`pal::unsupported::process::ExitCode`: use an `u8` instead of a `bool`
`ExitCode` should “represents the status code the current process can return to its parent under normal termination”, but is currently represented as a `bool` on unsupported platforms, making the `impl From<u8> for ExitCode` lossy.
Fixes #130532 .
History: [IRLO thread](https://internals.rust-lang.org/t/mini-pre-rfc-redesigning-process-exitstatus/5426 ) (`ExitCode` as a `main` return), #48618 (initial impl), #93445 (`From<u8>` impl).
2024-09-19 20:37:08 +02:00
Lieselotte
dc628c8ecb
pal::unsupported::process::ExitCode
: use an u8
instead of a bool
2024-09-19 14:22:50 +02:00
GnomedDev
b2eebeeea9
[Clippy] Swap open_options
to use diagnostic items instead of paths
2024-09-19 13:13:43 +01:00
GnomedDev
364e552940
[Clippy] Swap iter_over_hash_type
to use diagnostic items instead of paths
2024-09-19 13:13:43 +01:00
GnomedDev
43b8e04d46
[Clippy] Swap non_octal_unix_permissions
to use diagnostic item instead of path
2024-09-19 13:13:43 +01:00
GnomedDev
1890620b26
[Clippy] Swap instant_subtraction
to use diagnostic item instead of path
2024-09-19 13:13:42 +01:00
GnomedDev
037b9784b6
[Clippy] Swap manual_main_separator_str
to use diagnostic item instead of path
2024-09-19 13:13:20 +01:00
GnomedDev
afe7907914
[Clippy] Swap redundant_clone
to use diagnostic items instead of paths
2024-09-19 13:13:20 +01:00
GnomedDev
5e4716888a
[Clippy] Swap option_as_ref_deref
to use diagnostic items instead of paths
2024-09-19 13:13:19 +01:00
GnomedDev
a786be5d06
[Clippy] Swap map_entry
to use diagnostic items instead of paths
2024-09-19 08:26:37 +01:00
Jubilee
4bd9de5512
Rollup merge of #130522 - GnomedDev:clippy-manual-retain-paths, r=compiler-errors
...
[Clippy] Swap `manual_retain` to use diagnostic items instead of paths
Part of https://github.com/rust-lang/rust-clippy/issues/5393 , just a chore.
2024-09-18 14:32:28 -07:00
Jubilee
4d9ce4b4b3
Rollup merge of #130513 - shekhirin:fs-write-doc-comment, r=cuviper
...
Clarify docs for std::fs::File::write
This PR fixes the doc comment for `std::fs::File::write` method.
2024-09-18 14:32:27 -07:00
Jubilee
12b59e52bc
Rollup merge of #130476 - workingjubilee:more-lazy-methods-take-2, r=Amanieu
...
Implement ACP 429: add `Lazy{Cell,Lock}::get[_mut]` and `force_mut`
Tracking issue for `lazy_get`: https://github.com/rust-lang/rust/issues/129333
2024-09-18 14:32:26 -07:00
Jubilee
591ec6c9ce
Rollup merge of #129934 - ChrisDenton:remove-dir-all3, r=Amanieu
...
Win: Open dir for sync access in remove_dir_all
A small follow up to #129800 .
We should explicitly open directories for synchronous access. We ultimately use `GetFileInformationByHandleEx` to read directories which should paper over any issues caused by using async directory reads (or else return an error) but it's better to do the right thing in the first place. Note though that `delete` does not read or write any data so it's not necessary there.
2024-09-18 14:32:25 -07:00
Jubilee
4722ad149e
Rollup merge of #97524 - ibraheemdev:thread-raw, r=ibraheemdev
...
Add `Thread::{into_raw, from_raw}`
Public API:
```rust
#![unstable(feature = "thread_raw", issue = "97523")]
impl Thread {
pub fn into_raw(self) -> *const ();
pub unsafe fn from_raw(ptr: *const ()) -> Thread;
}
```
ACP: https://github.com/rust-lang/libs-team/issues/200
2024-09-18 14:32:23 -07:00
Jubilee Young
f22797d3db
library: Call it really_init_mut to avoid name collisions
2024-09-18 11:39:24 -07:00
Jubilee Young
d9cdb71497
library: Destabilize Lazy{Cell,Lock}::{force,deref}_mut
2024-09-18 11:39:21 -07:00
GnomedDev
a18564c198
[Clippy] Swap manual_retain
to use diagnostic items instead of paths
2024-09-18 17:20:44 +01:00
Alexey Shekhirin
96a3b48197
Clarify docs for std::fs::File::write
2024-09-18 15:15:54 +01:00
Ibraheem Ahmed
0fa92b4159
add Thread::{into_raw, from_raw}
2024-09-17 18:50:06 -04:00
34c61a5d12
mikros: Add file clone support (todo: sync positions)
2024-09-17 11:54:10 -05:00
Chayim Refael Friedman
d0a2ca4867
Implement ACP 429: add Lazy{Cell,Lock}::get[_mut]
and force_mut
...
In the implementation of `force_mut`, I chose performance over safety.
For `LazyLock` this isn't really a choice; the code has to be unsafe.
But for `LazyCell`, we can have a full-safe implementation, but it will
be a bit less performant, so I went with the unsafe approach.
2024-09-17 09:40:34 -07:00