rust/library
Matthias Krüger 2ba0c627de
Rollup merge of #123879 - beetrees:missing-unsafe, r=Mark-Simulacrum
Add missing `unsafe` to some internal `std` functions

Adds `unsafe` to a few internal functions that have safety requirements but were previously not marked as `unsafe`. Specifically:

- `std::sys::pal::unix:🧵:min_stack_size` needs to be `unsafe` as `__pthread_get_minstack` might dereference the passed pointer. All callers currently pass a valid initialised `libc::pthread_attr_t`.
- `std:🧵:Thread::new` (and `new_inner`) need to be `unsafe` as it requires the passed thread name to be valid UTF-8, otherwise `Thread::name` will trigger undefined behaviour. I've taken the opportunity to split out the unnamed thread case into a separate `new_unnamed` function to make the safety requirement clearer. All callers meet the safety requirement now that #123505 has been merged.
2024-04-14 09:01:58 +02:00
..
alloc Rollup merge of #123868 - eduardosm:stabilize-slice_ptr_len, r=jhpratt 2024-04-13 00:18:46 -04:00
backtrace@e151306182 Update backtrace submodule 2024-04-12 16:28:19 -07:00
core Rollup merge of #123875 - Ghamza-Jd:master, r=joboet 2024-04-14 09:01:58 +02:00
panic_abort Cleanup windows abort_internal 2024-03-02 18:22:15 +00:00
panic_unwind Refactor panic_unwind/seh.rs pointer use; x86 now conforms to strict-provenance 2024-04-11 20:47:52 +02:00
portable-simd rename expose_addr to expose_provenance 2024-04-03 16:00:38 +02:00
proc_macro Call the panic hook for non-unwind panics in proc-macros 2024-04-11 17:46:12 -04:00
profiler_builtins Update version of cc crate 2024-03-14 16:42:15 +00:00
rtstartup library: Fix warnings in rtstartup 2024-01-06 01:32:03 +03:00
rustc-std-workspace-alloc Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
rustc-std-workspace-core
rustc-std-workspace-std
std Rollup merge of #123879 - beetrees:missing-unsafe, r=Mark-Simulacrum 2024-04-14 09:01:58 +02:00
stdarch@7df81ba8c3 Update stdarch submodule 2024-04-11 16:26:02 -07:00
sysroot Expose compiler-builtins-weak-intrinsics feature for -Zbuild-std 2023-06-23 11:15:34 +01:00
test Drop panic hook after running tests 2024-04-06 18:56:22 +03:00
unwind Rollup merge of #121419 - agg23:xrOS-pr, r=davidtwco 2024-04-05 22:33:25 +02:00