rust/library/std/src
Jakub Beránek 8cb78fe3b6
Rollup merge of #145325 - clarfonthey:cast-init, r=scottmcm
Add `cast_init` and `cast_uninit` methods for pointers

ACP: rust-lang/libs-team#627
Tracking issue: rust-lang/rust#145036

This includes an incredibly low-effort search to find uses that could be switched to using these methods. I only searched for `cast::<\w>` and `cast::<MaybeUninit` because there would otherwise be way too much to look through, and I also didn't modify anything inside submodules/subtrees.
2025-08-13 07:03:52 +02:00
..
backtrace remove redundant imports 2023-12-10 10:56:22 +08:00
collections HashMap: also add "Usage with custom key types" heading 2025-08-09 19:41:41 +02:00
ffi Update version placeholders 2025-07-01 10:54:33 -07:00
fs Test(fs): Fix test_eq_windows_file_type for Windows 7 2025-05-28 12:06:25 +02:00
hash remove const_hash feature leftovers 2024-11-02 11:27:14 +01:00
io core: Remove BorrowedCursor::init_ref method 2025-07-09 18:11:26 +02:00
net Set MSG_NOSIGNAL for UnixSteam 2025-06-16 09:15:17 +02:00
num Revert "Rollup merge of #143906 - LorrensP-2158466:miri-float-nondet-foreign-items, r=RalfJung" 2025-08-08 19:16:48 +02:00
os Rollup merge of #142391 - LevitatingBusinessMan:setsid, r=workingjubilee 2025-07-11 07:35:17 +02:00
prelude Make derive_const usable within libcore again 2025-07-17 15:42:54 +00:00
process std: Apply deprecated_safe_2024 2025-02-13 13:10:28 -08:00
sync add poisoning documentation to LazyLock 2025-08-03 22:57:08 +02:00
sys Rollup merge of #145325 - clarfonthey:cast-init, r=scottmcm 2025-08-13 07:03:52 +02:00
sys_common docs: clarify “dag” in std::sys_common doc comment 2025-07-11 11:53:47 +08:00
thread Print thread ID in panic message if thread name is unknown 2025-08-06 23:59:47 +00:00
alloc.rs Make __rust_alloc_error_handler_should_panic a function 2025-07-03 10:52:21 -07:00
ascii.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
backtrace.rs use generic Atomic type where possible 2025-04-27 02:18:08 +03:00
bstr.rs Implement ByteStr and ByteString types 2025-01-11 06:35:21 +02:00
env.rs Rollup merge of #141840 - ChrisDenton:noempty, r=ChrisDenton 2025-07-26 22:42:32 -04:00
error.rs Move std::error unit tests to integration tests 2025-01-26 10:28:04 +00:00
fs.rs Fix doc comment of File::try_lock and File::try_lock_shared 2025-08-07 14:13:11 +02:00
keyword_docs.rs unsafe keyword docs: emphasize that an unsafe fn in a trait does not get to choose its safety contract 2025-06-06 22:34:10 +02:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Rollup merge of #145325 - clarfonthey:cast-init, r=scottmcm 2025-08-13 07:03:52 +02:00
macros.rs feat: implement hash_map! macro 2025-08-02 01:32:52 +02:00
panic.rs Link to payload_as_str() from payload(). 2025-08-12 12:50:48 +02:00
panicking.rs Rollup merge of #144903 - Kivooeo:panic_handler-is-not-begin, r=m-ou-se 2025-08-07 19:36:36 -05:00
pat.rs Add pattern types to parser 2024-04-08 11:57:17 +00:00
path.rs Rollup merge of #144870 - Kivooeo:file_prefix-stabilize, r=tgross35 2025-08-13 07:03:47 +02:00
process.rs Rollup merge of #141019 - ehuss:android-doctest-xcompile, r=Mark-Simulacrum 2025-05-23 13:34:18 +02:00
random.rs random: Provide a Distribution<T> trait 2025-07-11 10:21:34 -07:00
rt.rs deduplicate abort implementations 2025-05-15 11:20:13 +02:00
test_helpers.rs std: get rid of sys_common::io 2025-02-07 16:54:07 +01:00
time.rs Constify SystemTime methods 2025-08-12 14:05:47 -04:00