Skip to content

Commit 9b8d782

Browse files
author
gitbot
committed
Squashed 'library/' changes from 78fc550..ef0f097
ef0f097 [create-pull-request] automated change 64f2b1a checked_ilog tests: deal with a bit of float imprecision c3a1bc0 Fix Windows `Command` search path bug 29fb694 make `simd_insert` and `simd_extract` `const fn`s afb2731 Update some comparison tests now that they pass in LLVM20 8b6e37e Use `.expect(..)` instead 6e79698 Remove speculation on cause of error 70750b5 Return error on unexpected termination in `Thread::join`. 51552a2 add `IntoBounds::intersect` and `RangeBounds::is_empty` 9ee4e11 require trait impls to have matching const stabilities as the traits f3e33e0 fix: attr cast for espidf 9841ddf Do not use CString in the examples of CStr. 853522b remove MaybeUninit::uninit_array 3addad9 fix doc in library/core/src/pin.rs 85b249a Enable `f16` for MIPS 0f2916e Skip scanning for surrogates when not known valid 81ee13a Add fast path for displaying pre-validated Wtf8Buf b3806a9 disable a potentially bogus test on Miri ac1915b Don't doc-comment BTreeMap<K, SetValZST, A> 68ee1c0 Update `compiler-builtins` to 0.1.148 3dc6d78 remove some unnecessary rustc_const_unstable 6149a13 Implement read_buf for zkVM stdin f318d66 stabilize extract_if 40a6164 Update string.rs 0ac5a98 Update string.rs 38326cd Stabilize `core::str::from_utf8_mut` e78c427 Explain how Vec::with_capacity is faithful 6058a71 Stabilize `hash_extract_if` 70e30dd std: Fix another new symlink test on Windows 8a3397a remove uses of rustc_intrinsic_must_be_overridden from standard library 2face94 Correct doc about `temp_dir()` behavior on Android 5b9aa0d Simplify trait error message for CoercePointee validation 2338290 Added into_value const function to ControlFlow<T, T> 3b19a00 Fix documentation for unstable sort 61e78f5 Win: use existing wrappers for `SetFileInformationByHandle` in `File::open_native` 787edff Fix unbounded_shifts tests 5dc8d55 Stabilize `unbounded_shifts` d0ada29 tidying up tidy 123493f replaced the four occurrences of issue ="50547" in library/core/src/future/mod.rs with issue = "none" 01d2776 rename sub_ptr 😅 9ebe6db Update `compiler-builtins` to 0.1.147 776d981 add stdarch compatibility hack 4d1145c make the new intrinsics safe 8941ca5 intrinsics: unify rint, roundeven, nearbyint in a single round_ties_even intrinsic c36b267 Remove outdated target `unexpected_cfgs` 3cf65ea update `cfg(bootstrap)` b63bfd0 update version placeholders cba55c9 Use faster thread_local! for stdout bc3bf91 Use faster thread_local in current_thread_id() 614bbf1 Highlight thread_local! const init in docs 70a82a1 fix by comments 4283c44 remove assume_init in stack_overflow 3970915 Consistently using as_mut_ptr() and as_ptr() in thread 166383f Replace mem::zeroed with mem::MaybeUninit::uninit for large struct in unix ff53ca0 stabilize `unsigned_is_multiple_of` b374d73 stabilize (const_)ptr_sub_ptr 6ec49b0 Replace some instances of `pub` with `pub(crate)` 62e4416 Use `public-dependencies` in all sysroot crates 2c56cb3 Fix(lib/fs/tests): Disable rename POSIX semantics FS tests under Windows 7 40ee989 Implement feature `isolate_most_least_significant_one` for integer types 7056a1b Add #[track_caller] to Duration Div impl 4581d06 Implement read_buf for WASI stdin 94b401d Stabilise `os_str_display` ccb6182 core/net: IpAddr*::as_octets() d9f8eda Optionally add type names to `TypeId`s. 6152c90 reduce `Box::default` stack copies in debug mode a7e5f20 Remove obsolete MinGW ThinLTO+TLS workaround 2624d21 Fix `*-win7-windows-msvc` target since c6643e0501a1ae5670ecd636bffa0a8ad762ca4e d25d3ae Stabilize `num_midpoint_signed` feature 0bf048d Add real safety comments 79a1d06 Go back to `Some` instead of transmuting to it. 04f474c Save another BB by using `SubUnchecked` instead of a call to `arith_offset` 87a50c8 Simplify `slice::Iter::next` enough that it inlines 9a26151 stabilize `inherent_str_constructors` 8524690 Synchronize platform adaptors for OsString/OsStr ec53d7f Simplify control flow with while-let ea46bae Improve WTF-8 comments eeee097 Remove ignored `#[must_use]` attributes from portable-simd 5a108ca Use more explicit and reliable ptr select in sort impls 0df943b Impl TryFrom<Vec<u8>> for String 32b8847 add MAX_LEN_UTF8 and MAX_LEN_UTF16 constants 5dccabc Stabilize file_lock 37a39ca Update library/std/src/fs.rs d1803a1 Update fs.rs dd50fef Improve instant docs 13dce06 Stabilize const_slice_flatten 94729c1 Fix typo in hidden internal docs of `TrustedRandomAccess` 0ab8e5c Stabilize (and const-stabilize) `integer_sign_cast` 47d16ac fix docs for inherent str constructors c07ced2 Reorder "This lock may be advisory or mandatory." earlier in the lock docs 79caf1b Clarify that locking on Windows also works for files opened with `.read(true)` f4e9888 Document that locking a file fails on Windows if the file is opened only for append 1458509 Reword file lock documentation to clarify advisory vs mandatory 30995a6 add last std diagnostic items for clippy db00c40 Remove std::os::wasi::fs::FileExt::tell 1a4b1ab tests: Also gate `f16::erfc()` doctest with `reliable_f16_math` cfg 9b6a9a3 Make ub_check message clear that it's not an assert 58aae77 Use tell for <File as Seek>::stream_position c80cbf0 Restrict DerefPure for Cow<T> impl to T = impl Clone, [impl Clone], str. 54a377b invalid_from_utf8[_unchecked]: also lint inherent methods 6218e42 Fix &&str and trailing commas in io::const_error! a641bfd Use io::const_error! when possible over io::Error::new 755621f Add an example for std::error::Error 5b9e34d proc_macro: Apply unsafe_op_in_unsafe_fn edce978 std: Apply unsafe_op_in_unsafe_fn e30a819 Fix safety of windows uwp functions 6be9348 unwind: Apply unsafe_op_in_unsafe_fn 4f1db6e panic_unwind: Apply unsafe_op_in_unsafe_fn cdd6410 panic_abort: Apply unsafe_op_in_unsafe_fn ca7d5a8 core: Apply unsafe_op_in_unsafe_fn e593619 docs: fix broken intra-doc links that never worked 19783e1 Forward all default methods for I/O impls 541a4d5 Windows: Update generated bindings to 0.59 fb35545 Add safe new to NotAllOnes 576351d Implement Extend<AsciiChar> for String de22da6 re-export `core::iter::FromCoroutine` af3a373 Implement `f{16,32,64,128}::{erf,erfc}` bc12d9e std: Apply deprecated_safe_2024 a80f231 test: Apply deprecated_safe_2024 f6d1020 std: Apply fixes for tail drop expressions 1e0a688 std: Apply rust_2024_incompatible_pat e0d802d std: Apply dependency_on_unit_never_type_fallback 5812e00 std: Apply missing_unsafe_on_extern 0fe0cd1 std: Apply unsafe_attr_outside_unsafe d299573 alloc: Apply missing_unsafe_on_extern ec4f2b9 alloc: Apply unsafe_attr_outside_unsafe ad33ae4 alloc: Workaround hidden doctest line 06f1f5e Migrate coretests to Rust 2024 6083e3c library: Update rand to 0.9.0 52cabae core: Apply unsafe_attr_outside_unsafe aef036b Const-stabilize `str::is_char_boundary` and `str::split_at(_mut)(_checked)`. 48bdfdd alloc boxed: docs: use MaybeUninit::write instead of as_mut_ptr 2205aeb Use `slice::fill` in `io::Repeat` implementation 31bec16 Remove the common prelude module 7eb7fc4 Correct comment for FreeBSD and DragonFly BSD in unix/thread 2c8633e `transmute` should also assume non-null pointers 9097546 Update backtrace fc6902d expect EINVAL for pthread_mutex_destroy for aix ef05bf9 add `IntoBounds` trait df04622 Stabilize `get_many_mut` as `get_disjoint_mut` c0478a4 Fix import in bench for wasm ee7bfa5 Implement and use BikeshedGuaranteedNoDrop for union/unsafe field validity 3f1612b Add diagnostic item for `std::io::BufRead` 69714e3 Implement `read*_exact` for `std:io::repeat` 8fe5725 std: replace the `FromInner` implementation for addresses with private conversion functions 341bf46 Stabilize target_feature_11 1471731 Change swap_nonoverlapping from lang to library UB 54440f0 `f128` is quadruple-precision aba9541 `f16` is half-precision dbd5829 library: amend revert of extended_varargs_abi_support for beta diff 96524c3 Revert "Stabilize `extended_varargs_abi_support`" b997811 Change the issue number for `likely_unlikely` and `cold_path` 74af9cb Update docs for impl keyword 11ca36b include note on variance and example 4d07c7f Improve examples for file locking 0f343c6 library: doc: core::alloc::Allocator: trivial typo fix 97a1793 stabilize `NonZero::count_ones` f78d0b5 Fix long lines which rustfmt fails to format d291024 Reword doc comment on `CoercePointeeValidated` d1f2756 block coerce_pointee_validated for stabilization 7260481 rename the trait to validity and place a feature gate afront b04509b introduce CoercePointeeWellformed for coherence checks at typeck stage a8d6946 Update `compiler-builtins` to 0.1.146 f0d8947 Merge commit '3383cfbd3572465febc7a8f816a46304373de46a' into sync-from-portable-simd-2025-01-18 c27190b ignore win_delete_self test in Miri 31da512 Fix pattern matching mode changes and unsafe_op_in_unsafe_fn d32f519 Mark extern blocks as unsafe e3a5462 Rename field in OnceWith from gen to make 16b0493 Mark link_section attr with unsafe c989821 Use Option for FindNextFileHandle 3c7f1e7 fix(libtest): Enable Instant on Emscripten targets 906cd83 Simplify Rc::as_ptr docs + typo fix 726ebbd Stabilize `vec_pop_if` 2aa4937 Rustfmt 732cead occured -> occurred 2ac680a Allow Rust to use a number of libc filesystem calls fcc12b2 Windows: Test that deleting a running binary fails 75f6307 Update platform information for remove_file fb5bcee Windows: remove readonly files 03bb961 Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` 62795e1 Document `Sum::sum` returns additive identities for `[]` 317f65c Clean up 'HashMap' and 'HashSet' docs; b892d75 Optimize `Rc::<str>::default()` implementation 0c2cc40 std: get rid of `sys_common::io` ff97a59 std: move `io` module out of `pal` c58a610 Move two windows process tests to tests/ui 180138f tests(std/net): remove outdated `base_port` calculation f9ef766 sys: net: Add UEFI stubs eea1f4e Remove some unnecessary parens in `assert!` conditions 37e6aca remove use of `feature(trait_upcasting)` from core tests 86f4b51 Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios; e89331c Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` 4bd3489 tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes` 8999778 Fix unreachable_pub lint for hermit target c0b3088 Fix link in from_fn.rs d96f44f Use `widening_mul` 5eaa3d6 Add OneSidedRangeBound to eliminate panic in `split_point_of` 8a60bf4 Rename slice::take methods to split_off 3209f6d Update `compiler-builtins` to 0.1.145 0bd650f specify a prim@slice in docs 6dad5ab implement inherent str constructors 18e2cdc std: move network code into `sys` 13a29e8 uefi: process: Add support for command environment variables 3537d63 Mark `std::fmt::from_fn` as `#[must_use]` 857889f Rename rustc_contract to contract 473b211 Improve contracts intrisics and remove wrapper function 526691d Separate contract feature gates for the internal machinery 26c2f64 Desugars contract into the internal AST extensions 60e508c Express contracts as part of function header and lower it to the contract lang items e619af7 contracts: added lang items that act as hooks for rustc-injected code to invoke. 8534d8b Contracts core intrinsics. 522dcce More PR feedback 42e9435 PR feedback 62b0a16 Add `unchecked_disjoint_bitor` with fallback intrinsic implementation 24acba1 Add note about `FnPtr` being exposed as public bound 3d12914 Add `cast_signed` and `cast_unsigned` methods for `NonZero` types 7897e75 For NonZero impl macros, give unsigned impls access to the corresponding signed type 816a396 std::fs: further simplify dirent64 handling a561a7a add UnsafeCell direct access APIs 5beaefc primitive type migration from mod.rs to primitives.rs 148c63e implement unstable `new_range` feature 27a0a5b std::range 5c166aa Remove stabilized feature gate 1e27979 Move env modifying tests to a separate integration test 10b7576 Fix for SGX c5e3db5 Fix benchmarking of libstd d4958a0 Move std::sync unit tests to integration tests 319453a Move std::thread_local unit tests to integration tests 5201ec6 Move std::time unit tests to integration tests ec5ad10 Move std::path unit tests to integration tests 66fd95c Move std::panic unit tests to integration tests fdf5133 Move std::num unit tests to integration tests 8d70f37 Move std float unit tests to integration tests 16cbcf2 Move std::error unit tests to integration tests 80c1193 Move std::env unit tests to integration tests 586737e no unsafe pointer and no overflowing_literals in fmt::Display of integers 3d75a0c black_box integer-input on fmt benches 26d6662 OnceCell & OnceLock docs: Using (un)initialized consistently f8c386b Docs for f16 and f128: correct a typo and add details 7bff6b6 rustc_allowed_through_unstable_modules: require deprecation message fec18a1 Update encode_utf16 to mention it is native endian 0e54da3 remove Rustc{En,De}codable from library and compiler f969806 make rustc_encodable_decodable feature properly unstable 2820baf Fix sentence in process::abort f834210 document ptr comparison being by address 5046d88 stabilize `once_wait` bcf9324 implement all min/max fns in terms of `<`/`is_lt` 3afca8e improve doc tests for (min/max/minmax).* functions 2596636 docs: Documented Send and Sync requirements for Mutex + MutexGuard c2ebd3d Add documentation for derive(CoercePointee) 8a57219 Fix off-by-one error causing driftsort to crash 4a787d0 Insert null checks for pointer dereferences when debug assertions are enabled 6746f0f atomic: extend compare_and_swap migration docs a1b689e float::min/max: mention the non-determinism around signed 0 77b4295 Stabilize `const_black_box` cc4725e Improve documentation for file locking d5dc487 Remove minor future footgun in `impl Debug for MaybeUninit` a6cd342 Add `AsyncFn*` to core prelude 25c44a5 uefi: Implement path 667c939 Implement `int_from_ascii` (rust-lang#134821) 6637642 Cleanup docs for Allocator 416ced1 btree/node.rs: pop_internal_level: does not invalidate other handles e6434b1 btree/node.rs: remove incorrect comment from pop_internal_level docs 061a6fe add inline attribute and codegen test 8531bd0 split slice::ptr_rotate into three separate algorithms, to hopefully help inlining 88d05c0 optimize slice::ptr_rotate for compile-time-constant small rotates 64a9a9f Test pipes also when not running on Windows and Linux simultaneously 6dbe017 uefi: process: Fix args f910b96 [cfg_match] Document the use of expressions 5edbe52 Update comments and sort target_arch in c_char_definition 74efd97 [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items f0bd2d2 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent 0d0e9d4 Document powf and powi calls that always return 1.0 9070bb8 Document purpose of closure in from_fn.rs more clearly 85d2ef5 add missing allocator safety in alloc crate bc9b642 alloc: add `#![warn(unreachable_pub)]` a78c17f Implement `AtomicT::update` & `AtomicT::try_update` 11b4fb7 fix doc for std::sync::mpmc 332ddeb Implement phantom variance markers e175c96 Clarify WindowsMut (Lending)Iterator 2954733 compiler_fence: fix example 4711205 Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location 8fdbfcc Move `std::io::pipe` code into its own file d5bc23e Actually run the bstr test 63aa66e Update comment b54e951 Put all coretests in a separate crate 5f996bb Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls e0a4de9 add nto80 x86-64 and aarch64 target 70547f0 Add support for QNX 7.1 with io-sock on x64 d87dbcb Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64 e1768a5 Update a bunch of comments from before wasi support was added 643837f Remove a bunch of emscripten test ignores 3b6f892 Fix testing of the standard library with Emscripten 08d0a4f fix(libtest): Deprecate '--logfile' 65b818a docs: fix typo in std::pin overview 28b9e96 ports last few library files to new intrinsic style 53e6919 Improve and expand documentation of pipes d479654 Fix set_name in thread mod for NuttX 63f84e9 Fix `FormattingOptions` instantiation with `Default` 5a2c03d Update library/core/src/num/nonzero.rs 28541bb Add memory layout documentation to generic NonZero<T> 2c8447b Fix whitespace a4fd38e document order of items in iterator from drain c1d8f3d Add `File already exists` error doc to `hard_link` function 6d92a7f Doc difference between extend and extend_from_slice d2c23ff Make `Vec::pop_if` a bit more presentable 56c844c Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if` 73f1b22 remove pointless allowed_through_unstable_modules on TryFromSliceError 18b0426 test: add `#![warn(unreachable_pub)]` 48259e8 proc_macro: add `#![warn(unreachable_pub)]` 49c9ff2 Implement `CloneToUninit` for `ByteStr` ed7b52a Add doc aliases for BStr and BString 89b94b2 Omit some more `From` impls to avoid inference failures 68d063d Support `no_rc`, `no_sync`, and `no_global_oom_handling` 7561b27 Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100 9b1947f Implement `ByteStr` and `ByteString` types 11be50b Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut` 467d2e5 Library: Finalize dyn compatibility renaming 883e259 Remove test panic from File::open 37801f8 fix OsString::from_encoded_bytes_unchecked description 359abe2 Add an example of using `carrying_mul_add` to write wider multiplication 4bf0fc9 Outline panicking code for `LocalKey::with` 468d258 core: `#[allow(unreachable_pub)]` on unreachable `pub use` 507ffb5 core: add `#![warn(unreachable_pub)]` fca1d52 rtstartup: add `#![warn(unreachable_pub)]` 7fede9a panic_unwind: add `#![warn(unreachable_pub)]` 49c0fc2 Recognise new IPv6 documentation range from RFC9637 c91d6e5 1. Removed 'rustc_nounwind' 2. Rewording of comments 9dc5e61 Export likely(), unlikely() and cold_path() in std::hint e868a10 Correct counting to four in cell module docs 7ebfea3 doc: Point to methods on `Command` as alternatives to `set/remove_var` 74a5f96 wasi/io: remove dead files 29253bb remove unnecessary rustc_allowed_through_unstable_modules 0cb9f60 further improve panic_immediate_abort by removing rtprintpanic messages 101e6fc cargo update 7342d8f Rewrap following accepting review suggestions from @ibraheemdev 5d341b6 Update library/core/src/slice/mod.rs 00c745c Update library/core/src/slice/mod.rs 187eaa3 Update library/core/src/slice/mod.rs 881832a Update library/core/src/slice/mod.rs 7326106 Update library/core/src/slice/mod.rs 6a2d8b8 Update library/core/src/slice/mod.rs b764b98 Update library/core/src/slice/mod.rs 623bdc2 Update library/core/src/slice/mod.rs fe60d99 Update library/core/src/slice/mod.rs fcd6913 Update library/core/src/slice/mod.rs 72640bc `then be` -> `be` based on feedback from @ibraheemdev 3fe4771 Improve `select_nth_unstable` documentation clarity 2cb818f Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper" 6d14ec0 Add references to the IEEE functions for `float_next_up_down` 920d386 Stabilize `float_next_up_down` e53b690 Fix import of pipe in kernel_copy.rs 9613494 Move `std::pipe::*` into `std::io` 41893a0 Clarify note in `std::sync::LazyLock` example b8303f0 fix typo in library/alloc/src/sync.rs 2103ef3 Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count' a7f7f6e Adjust syntax 2c52964 Less unsafe in `dangling`/`without_provenance` 5de413e fix typo in typenames of pin documentation 15c0127 intrinsics: deprecate calling them via the unstable std::intrinsics path 13c63fe add comments explaining main thread identification 83d97ee std: lazily allocate the main thread handle de0a334 Revert "Remove the Arc rt::init allocation for thread info" 028efa0 Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`. 14af7ad Update compiler-builtins to 0.1.143 b26cfc6 Rename `pos` to `position` 847bb19 Convert `struct FromBytesWithNulError` into enum e214442 Enforce syntactical stability of const traits in HIR 1511f9e Update compiler-builtins to 0.1.141 1589d0b Add another `Vec::splice` example a574226 avoid nesting the user-defined main so deeply on the stack e35d731 use a single large catch_unwind in lang_start 23a5f08 uefi: helpers: Introduce OwnedDevicePath 9db8150 path: Move is_absolute check to sys::path d3afa44 Update the explanation for why we use box_new in vec! 8ecd1d5 Add #[inline] to copy_from_slice 1b7e73a Add inherent versions of MaybeUninit methods for slices 2671eb5 Make UniqueRc invariant for soundness 1e55e38 update and clarify StructuralPartialEq docs c3df7cd Use `NonNull::without_provenance` within the standard library cc0fc4a Initial fs module for uefi b8ebc3b Improve the safety documentation on new_unchecked c20c11d Update a bunch of library types for MCP807 914ee4f alloc: remove unsound `IsZero` for raw pointers aedc4a5 Fix `proc_macro::quote!` for raw ident c3cca95 Append `TokenTree` with `ToTokens` in `proc_macro::quote!` 1375607 Rename the internal simpler `quote` macro to `minimal_quote` 189a1d6 Used pthread name functions returning result for FreeBSD and DragonFly b4227ca Fix ptr::from_ref documentation example comment 9f7ea6b Improve prose around `as_slice` example of IterMut 8825c2c fmt 0cfcb4b update cfg(bootstrap) b271343 update version placeholders 3a9b79b Remove some unnecessary `.into()` calls cbce3da add missing provenance APIs on NonNull 4eef067 More compelling env_clear() examples b5226d0 Implement Condvar::wait_timeout for targets without threads 70ca299 Impl String::into_chars add3dd9 Avoid naming variables `str` 285706c [generic_assert] Constify methods used by the formatting system 328351f Add support for wasm exception handling to Emscripten target fae1945 chore: remove redundant words in comment 0fe9cc2 Add doc aliases for `libm` and IEEE names 2090c36 Mark `slice::reverse` unstably const 7118359 Clarified the documentation on core::iter::from_fn and core::iter::successors 56acaee library: fix adler{-> 2}.debug bc7ff12 add regression test for unsound Flatten/FlatMap specialization be95771 do not in-place-iterate over flatmap/flatten 4317f17 Fix UWP build 6da0643 Bump backtrace to 0.3.75 4e0279c sync to actual dep verions of backtrace 181cda1 turn rustc_box into an intrinsic 8974f20 core: use public method instead of instrinsic f61b805 core: improve comments 111122e core: implement `bool::select_unpredictable` fe125b2 Switch rtems target to panic unwind 47a3749 path in detail ce272e6 Move some things to `std::sync::poison` and reexport them in `std::sync` 73137b1 Bump backtrace to rust-lang/backtrace-rs@4d7906b 2f00b57 Try to write the panic message with a single `write_all` call 8fc894e fix doc for missing Box allocator consistency c123ec7 Remove qualification of `std::cmp::Ordering` in `Ord` doc 5dd3355 std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten 381118b Avoid use of LFS64 symbols on Emscripten ae47595 char to_digit: avoid unnecessary casts to u64 3d3342b Remove allowing static_mut_refs lint f8f894e Tidy up bigint mul methods 153737e fix doc for read write unaligned in zst operation fb24eac Avoid short writes in LineWriter c2ab1fb ptr docs: make it clear that we are talking only about memory accesses 8d6f948 Make slice::as_flattened_mut unstably const d9bd636 rename typed_swap → typed_swap_nonoverlapping 57e6fa0 stabilize const_swap 85e3c60 fix: typos 7e555eb Fix sentence fragment in `pin` module docs 3daa58d docs: inline `alloc::ffi::c_str` types to `alloc::ffi` 2b5202a Fix compilation issues on other unixes 712102c Eliminate redundant statx syscalls 3054f34 Unify fs::copy and io::copy c28e5f6 Update `compiler-builtins` to 0.1.140 2230aec Update library/alloc/tests/sort/tests.rs 0e779e3 Fix typos ef8b08d Override `carrying_mul_add` in cg_llvm b703499 Move `{widening, carrying}_mul` to an intrinsic with fallback MIR 84d71a6 Fix mistake in windows file open 4e3170a Windows: Use WriteFile to write to a UTF-8 console 0093861 ptr::copy: fix docs for the overlapping case d21473a Fix renaming symlinks on Windows e9b5463 docs: inline `core::ffi::c_str` types to `core::ffi` 20e6f8e docs: inline `std::ffi::c_str` types to `std::ffi` 76e9ed6 unwinding: bump version to fix asm ae5f4ef docs: update code example for Iterator#rposition b6b2150 Use scoped threads in `std::sync::Barrier` examples 83aff29 Fix forgetting to save statx availability on success c2b4f74 Specify only that duplicates are discarded, not the order. 5cd112c Document collection `From` and `FromIterator` impls that drop duplicate keys. d8bd1fb Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc'; 443681e Impl FromIterator for tuples with arity 1-12 4a9cd56 Fix formatting 835b27e stabilize const_alloc_layout 5b48895 chore: fix typos 948ba40 Windows: Use FILE_ALLOCATION_INFO for truncation 9a2e864 Bump `stdarch` ae26451 core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type d5d26e9 Fixes safety docs for `dyn Any + Send {+ Sync}` 55930bb Use `#[derive(Default)]` instead of manually implementing it b05e73a Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" bb5b799 Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`. 599256e docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code 720f561 docs: Permissions.readonly() also ignores root user special permissions c65986f cargo update 1c7d00a Delete `Rvalue::Len` b7712d9 Asserts the maximum value that can be returned from `Vec::len` 90c0a7c Document `PointerLike` implementation restrictions. c5cc438 Use `&raw` for `ptr` primitive docs 61c0a0a Add `is_ascii` function optimized for x86-64 for [u8] 5d95cdc Add new implementation benchmark 2fc67c5 Document CTFE behavior of methods that call is_null bbbfe3f Correctly document is_null CTFE behavior. 44e4895 Win: rename: Use offset_of! in struct size calculation 7bae459 Win: Remove special casing of the win7 target for `std::fs::rename` 7a248e1 Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory d0d2b49 Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available 8f7cf92 Less unwrap() in documentation 77f3dea Improve prose around into_slice example of IterMut fb8661d Improve prose around `as_slice` example of Iter 7d06f29 Improve prose around basic examples of Iter and IterMut 54b9f1a Abstract `ProcThreadAttributeList` into its own struct 9d76cf5 fix `PointerLike` docs 29446d2 unimplement `PointerLike` for trait objects ccfe7aa split up `#[rustc_deny_explicit_impl]` attribute 3194e7d remove reference to dangling from slice::Iter 3a5aee1 mri: add track_caller to thread spawning methods for better backtraces b54934c fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()` c619a0e Improve documentation of `element_offset` and related methods 98a69d6 Rename `elem_offset` to `element_offset` 6e39698 docs: Mention `spare_capacity_mut()` in `Vec::set_len` 91c4ab0 build: Update libc version 0e014f6 fix typo in ptr/mod.rs 144dea3 Stabilize `#[diagnostic::do_not_recommend]` 12e2aec Use field init shorthand where possible b8796d2 fix(LazyCell): documentation of get[_mut] was wrong d988e7b compiler & tools dependencies: Updating allocator-api2 v0.2.20 -> v0.2.21 Updating annotate-snippets v0.11.4 -> v0.11.5 Updating anyhow v1.0.93 -> v1.0.94 Updating bstr v1.11.0 -> v1.11.1 Updating chrono v0.4.38 -> v0.4.39 Updating clap v4.5.21 -> v4.5.23 Updating clap_builder v4.5.21 -> v4.5.23 Updating clap_complete v4.5.38 -> v4.5.39 Updating clap_lex v0.7.3 -> v0.7.4 Updating colored v2.1.0 -> v2.2.0 Updating console v0.15.8 -> v0.15.10 Updating crossbeam-channel v0.5.13 -> v0.5.14 Updating crossbeam-deque v0.8.5 -> v0.8.6 Updating crossbeam-utils v0.8.20 -> v0.8.21 Updating encode_unicode v0.3.6 -> v1.0.0 Updating fastrand v2.2.0 -> v2.3.0 Updating home v0.5.9 -> v0.5.11 Updating js-sys v0.3.74 -> v0.3.76 Updating libc v0.2.167 -> v0.2.168 Updating miniz_oxide v0.8.0 -> v0.8.1 Updating pest v2.7.14 -> v2.7.15 Updating pest_derive v2.7.14 -> v2.7.15 Updating pest_generator v2.7.14 -> v2.7.15 Updating pest_meta v2.7.14 -> v2.7.15 Updating redox_syscall v0.5.7 -> v0.5.8 Updating rustc-stable-hash v0.1.0 -> v0.1.1 Updating rustix v0.38.41 -> v0.38.42 Updating self_cell v1.0.4 -> v1.1.0 Updating semver v1.0.23 -> v1.0.24 Updating serde v1.0.215 -> v1.0.216 Updating serde_derive v1.0.215 -> v1.0.216 Adding thiserror v2.0.7 Adding thiserror-impl v2.0.7 Updating time v0.3.36 -> v0.3.37 Updating time-macros v0.2.18 -> v0.2.19 Updating tokio v1.41.1 -> v1.42.0 Updating wasm-bindgen v0.2.97 -> v0.2.99 Updating wasm-bindgen-backend v0.2.97 -> v0.2.99 Updating wasm-bindgen-macro v0.2.97 -> v0.2.99 Updating wasm-bindgen-macro-support v0.2.97 -> v0.2.99 Updating wasm-bindgen-shared v0.2.97 -> v0.2.99 Updating wasm-encoder v0.221.0 -> v0.221.2 Updating wasmparser v0.221.0 -> v0.221.2 Updating wast v221.0.0 -> v221.0.2 Updating wat v1.221.0 -> v1.221.2 0dfcb5a Fix typo in uint_macros.rs 0b6d717 remove obsolete comment and pub(super) visibility ab9827f remove bounds from vec and linkedlist ExtractIf 13feda4 Add a range argument to vec.extract_if 15bdd31 Stabilize #[coverage] attribute 2322c7a Remove `rustc::existing_doc_keyword` lint. 4a4b343 Move `doc(keyword = "while")`. 509c8a6 rustdoc-search: let From and Into be unboxed 6071a58 Replace i32 by char in `split_at` & `_unchecked` 8e8a475 Add clarity to the "greater" of `VecDeque::insert` 352800a Replace i32 by char to add clarity ece5840 Add value accessor methods to `Mutex` and `RwLock` 4afa7a6 std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. f6519f2 UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc 8008896 UniqueRc: PinCoerceUnsized and DerefPure bcaea4f UniqueRc: comparisons and Hash 973f325 UniqueRc: Add more trait impls. 3f21a79 Remove support for specializing ToString outside the standard library a18db41 Correct spelling of CURRENT_RUSTC_VERSION b109dbd Add documentation for anonymous pipe module 7cf2173 feat: clarify how to use `black_box()` 59b15c0 Update includes in '/library/core/src/error.rs'; 8a43221 Fix building `std` for Hermit after `c_char` change f1e5058 Fix `Path::is_absolute` on Hermit 393b70c Fix typos in docs on provenance ad7465b Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators 1d243af Switch inline(always) in core/src/fmt/rt.rs to plain inline 525f76a Reword prelude for AsyncFn stabilization 8a27c31 Stabilize async closures f642d1e Remove consteval note from <*mut T>::align_offset docs. 40e1e6a Stabilize the Rust 2024 prelude b97f4b1 Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files 7663b8e Move some alloc tests to the alloctests crate c41ae46 control libunwind linkage mode via `crt-static` on gnullvm targets a9aa795 Change `GetManyMutError` to match T-libs-api decision 6c26c1f Add references to the specific ABI documents 3f27d14 Remove l4re from the unsigned char operating system list 8dad89d De-duplicate and improve definition of core::ffi::c_char ea28d00 Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless bdc41b0 stabilize const_nonnull_new 0b9fa79 Remove rustc_const_stable attribute on const NOOP 7dc60b0 Add libc funcitons only for wasm32-wasip1-threads. 8a3d98e Fix compilation for wasm32-wasip1 (without threads). 2e3c4c1 Use UNIX thread_local implementation for WASI. db3dabd Run TLS destructors for wasm32-wasip1-threads db10ed2 Downgrade cc 71746ce Run `cargo update` and update licenses d1fec28 chore: Improve doc comments c5441a0 Refactor ReadDir into a state machine 801f202 wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next 0ec7440 docs: better examples for `std::ops::ControlFlow` 40b7e34 Expand home_dir docs ee25eae Add doc alias 'then_with' for `then` method on `bool` 6caf966 Adds new intrinsic declaration 13c822f Define acronym for thread local storage 24d01f8 Add a `collect_into` tuple test case 8a692d7 Don't impl Extend for 13-tuples 0633f80 Simplify documentation for Extend impl for tuples 51e7e30 Add Extend impls for tuples of arity 1 through 12 65ebd99 Unbreak tidy 9720b30 Stabilize `std::io::ErrorKind::QuotaExceeded` b1c6073 Stabilize `std::io::ErrorKind::CrossesDevices` 55c56a8 Access members of `FormattingOptions` directly instead of via getters/setters d08846f Removed constness for methods receiving a `&mut` parameter 5b85082 Added better reason for exposing `flags` and `get_flags` as unstable 1a77dd5 Formatted 26aad90 Refactored FormattingOptions to use a bitmask for storing flags 01aa5c5 Revert "Turned public+unstable+hidden functions into private functions" 8143c45 Turned public+unstable+hidden functions into private functions f2e12e2 Made all fns const 9999525 impl Default for fmt::FormattingOptions 22c0378 Fixed copy+paste error in comment 5a7cd46 fmt::FormattingOptions: Renamed `alignment` to `align` 8917e4b Formatter::with_options: Use different lifetimes 6fccc33 Fixed another broken test e7da947 Added struct `fmt::FormattingOptions` 7ec5713 Formatter: Access members via getter methods wherever possible c5be4f9 Stabilize noop_waker 992149b Improve documentation 4623ca3 Reformat Python code with `ruff` 9a261ff Improve comments for the default backtrace printer 90aca0d clarify simd_relaxed_fma non-determinism 9382a29 Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. 0b6e45d Rename `core_pattern_type` and `core_pattern_types` lib feature gates to `pattern_type_macro` 7609542 Allow fn pointers comparisons lint in library aa74eb2 Update `NonZero` and `NonNull` to not field-project (per MCP807) 9ccb8b4 Add `core::arch::breakpoint` and test abcce94 a release operation synchronizes with an acquire operation c801b09 Update the definition of `borrowing_sub` afcc3e9 stabilize const_{size,align}_of_val 1ff28eb ./x miri: fix sysroot build 6ad4c21 stabilize const_collections_with_hasher and build_hasher_default_const_new f8d800c Match simd_relaxed_fma documentation to fmuladd intrinsic 6aa2851 Add simd_relaxed_fma intrinsic 579e5e1 Fix `f16::midpoint` const feature gate ef451d5 Use c"lit" for CStrings without unwrap 1f20c08 Stabilize `const_maybe_uninit_write` 520b445 Fix docs for '<[T]>::as_array'; 94547e9 Stabilize `ptr::fn_addr_eq` 39e964b rustc_allow_const_fn_unstable is not used in proc_macro 7c3008d get rid of a bunch of unnecessary rustc_const_unstable 5de2b3f remove a whole bunch of unnecessary const feature gates ed5c4a9 add isatty alias for is_terminal 07ca1fa Stabilize unsigned `num_midpoint` feature 49d16de Mark `slice::copy_from_slice` unstably const 8426192 Fix chaining `carrying_add`s e0da459 add test for bytewise ptr::swap of a pointer 5d54d49 move swap_nonoverlapping constness to separate feature gate 4417e17 move slice::swap_unchecked constness to slice_swap_unchecked feature gate 26015bb Add diagnostic item for `std::ops::ControlFlow` 4019a11 update link to "C++ Exceptions under the hood" blog 386b985 fix: fix codeblocks in `PathBuf` example c550669 fix: hurd build, stat64.st_fsid was renamed to st_dev ae58d9e std: clarify comments about initialization 014fc05 std: refactor `pthread`-based synchronization 54ca95f bump hashbrown version 8afdd20 Fill in a `BTreeSet::entry` example a0554fb Add a tracking issue for `btree_set_entry` 71144f7 Add `BTreeSet` entry APIs to match `HashSet` d862a5c Implement code review eeffc1a thread::available_parallelism for wasm32-wasip1-threads 4529581 changes old intrinsic declaration to new declaration 00777b5 Fix and undeprecate home_dir() 901694b refine mir debuginfo docs b18cf92 Doc comment custom MIR debuginfo. 0fb7578 Stabilize `extended_varargs_abi_support` a6289b0 update cfgs d3d7ff0 replace placeholder version 17ac3a9 Also use zero when referencing to capacity or length 4cf034f Use consistent wording in docs, use zero instead of 0 5cd2f7d Fix typos in pin.rs 129c425 Share inline(never) generics across crates 1eec4db fmt 6a3a37a aix: create shim for lgammaf_r 4a77898 Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods; ba5ad84 Remove one stray space. 24c150a Update chown help with a link and adding cap warning 709b548 Expand std::os::unix::fs::chown() doc with a warning 1546ede Add missing code examples on `LocalKey` ca2723b Make profiler_builtins `#![no_core]` instead of just `#![no_std]` e3cabe5 Remove unnecessary `#![allow(unused_features)]` 0512cb6 Sort and separate lint/feature attributes in `profiler_builtins` c18f916 std: update internal uses of `io::const_error!` a01ee48 std: expose `const_io_error!` as `const_error!` df35e90 Constify Drop and Destruct fb219bd miri: disable test_downgrade_observe test on macOS 5acb82d Shorten the `MaybeUninit` `Debug` implementation c6d08f5 Support ranges in `<[T]>::get_many_mut()` 82d4539 btree: add `{Entry,VacantEntry}::insert_entry` bfbb9b2 std::thread: avoid leading whitespace in some panic messages 062e398 Added a doc test for std::path::strip_prefix git-subtree-dir: library git-subtree-split: ef0f097
1 parent 8fe8f56 commit 9b8d782

File tree

768 files changed

+25099
-15975
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

768 files changed

+25099
-15975
lines changed

Cargo.lock

+91-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resolver = "1"
33
members = [
44
"std",
55
"sysroot",
6+
"coretests",
67
]
78

89
exclude = [
@@ -32,7 +33,7 @@ codegen-units = 10000
3233
[profile.release.package]
3334
addr2line.debug = 0
3435
addr2line.opt-level = "s"
35-
adler.debug = 0
36+
adler2.debug = 0
3637
gimli.debug = 0
3738
gimli.opt-level = "s"
3839
miniz_oxide.debug = 0

alloc/Cargo.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cargo-features = ["public-dependency"]
2+
13
[package]
24
name = "alloc"
35
version = "0.0.0"
@@ -9,12 +11,12 @@ autobenches = false
911
edition = "2021"
1012

1113
[dependencies]
12-
core = { path = "../core" }
13-
compiler_builtins = { version = "=0.1.138", features = ['rustc-dep-of-std'] }
14+
core = { path = "../core", public = true }
15+
compiler_builtins = { version = "=0.1.148", features = ['rustc-dep-of-std'] }
1416

1517
[dev-dependencies]
16-
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
17-
rand_xorshift = "0.3.0"
18+
rand = { version = "0.9.0", default-features = false, features = ["alloc"] }
19+
rand_xorshift = "0.4.0"
1820

1921
[[test]]
2022
name = "alloctests"

0 commit comments

Comments
 (0)