-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impl ... for Box<CoreType>
in alloc should not require #[cfg(not(test))]
#135100
Comments
This is also necessary for all lang item definitions outside of libcore. For libcore it isn't necessary because all "unit" tests have been moved into a separate crate in By the way the current construction also has other issues. We are depending on cargo compiling the libcore that is a direct dependency with the exact same flags and rustc version as the one libtest from the sysroot depends on to avoid getting an error about duplicate lang items. With rustbuild in practice this works fine, but I haven't been able to exactly match the flags in cg_clif's test suite. As such I had to patch core_tests to be an entirely separate cargo package which doesn't depend on libcore and I can't run liballoc's and libstd's test suite at all. |
#136642 helps with this. |
b522de4 [create-pull-request] automated change a1dbb6a Rustfmt a52615b occured -> occurred 5a37baa Allow Rust to use a number of libc filesystem calls 03f5709 Windows: Test that deleting a running binary fails 471baea Update platform information for remove_file 89f2005 Windows: remove readonly files d49e4a6 Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` 3b68051 Document `Sum::sum` returns additive identities for `[]` 3f758e4 Clean up 'HashMap' and 'HashSet' docs; 793027c Optimize `Rc::<str>::default()` implementation 25c4f83 std: get rid of `sys_common::io` ea0d492 std: move `io` module out of `pal` 805e8e6 Move two windows process tests to tests/ui ad7b631 tests(std/net): remove outdated `base_port` calculation d816238 sys: net: Add UEFI stubs 1a2ca8d Remove some unnecessary parens in `assert!` conditions 18d5bbe remove use of `feature(trait_upcasting)` from core tests f1b58f1 Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios; f737e2e Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` ce3ffd6 tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes` ef629cd Fix unreachable_pub lint for hermit target 0c53135 Fix link in from_fn.rs bc61def Use `widening_mul` 428b7c7 Add OneSidedRangeBound to eliminate panic in `split_point_of` a5fa615 Rename slice::take methods to split_off e6d28e5 Update `compiler-builtins` to 0.1.145 02e41f1 specify a prim@slice in docs 14f7f4c implement inherent str constructors 0afdd69 std: move network code into `sys` 702ef8b uefi: process: Add support for command environment variables fa2c0cc Mark `std::fmt::from_fn` as `#[must_use]` 1ab8856 Rename rustc_contract to contract da34e0f Improve contracts intrisics and remove wrapper function 435f432 Separate contract feature gates for the internal machinery e064caf Desugars contract into the internal AST extensions 2b9391a Express contracts as part of function header and lower it to the contract lang items 2541430 contracts: added lang items that act as hooks for rustc-injected code to invoke. c58a634 Contracts core intrinsics. 8c36c0d More PR feedback 2200ba1 PR feedback 52234f8 Add `unchecked_disjoint_bitor` with fallback intrinsic implementation e9cbf64 Add note about `FnPtr` being exposed as public bound 2473ac4 Add `cast_signed` and `cast_unsigned` methods for `NonZero` types 1103e48 For NonZero impl macros, give unsigned impls access to the corresponding signed type ed9c395 std::fs: further simplify dirent64 handling 68247c8 add UnsafeCell direct access APIs 7df9713 primitive type migration from mod.rs to primitives.rs 488bc0b implement unstable `new_range` feature bdf4a43 std::range bf38e5b Remove stabilized feature gate 1da5a34 Move env modifying tests to a separate integration test a8fbaca Fix for SGX d7ded6a Fix benchmarking of libstd ffe0f5c Move std::sync unit tests to integration tests 5258561 Move std::thread_local unit tests to integration tests ec2a17a Move std::time unit tests to integration tests 2ef34e0 Move std::path unit tests to integration tests 6a95d3d Move std::panic unit tests to integration tests 361d3bc Move std::num unit tests to integration tests 03131a8 Move std float unit tests to integration tests 531b7f7 Move std::error unit tests to integration tests 39f7281 Move std::env unit tests to integration tests 77640c1 no unsafe pointer and no overflowing_literals in fmt::Display of integers 93b2a7d black_box integer-input on fmt benches dcba488 OnceCell & OnceLock docs: Using (un)initialized consistently e666d1e Docs for f16 and f128: correct a typo and add details 9966ad4 rustc_allowed_through_unstable_modules: require deprecation message a5e952c Update encode_utf16 to mention it is native endian f96f4d7 remove Rustc{En,De}codable from library and compiler 9c247ef make rustc_encodable_decodable feature properly unstable 230cd60 Fix sentence in process::abort d79ae4b document ptr comparison being by address e319527 stabilize `once_wait` 8cb78d6 implement all min/max fns in terms of `<`/`is_lt` d61cec3 improve doc tests for (min/max/minmax).* functions af91544 docs: Documented Send and Sync requirements for Mutex + MutexGuard cd7b822 Add documentation for derive(CoercePointee) ac653f9 Fix off-by-one error causing driftsort to crash c77eb3d Insert null checks for pointer dereferences when debug assertions are enabled 3e9d605 atomic: extend compare_and_swap migration docs 8f3ae96 float::min/max: mention the non-determinism around signed 0 be452a6 Stabilize `const_black_box` 00a9e43 Improve documentation for file locking 54d3b74 Remove minor future footgun in `impl Debug for MaybeUninit` e5f6d8f Add `AsyncFn*` to core prelude 9a0a709 uefi: Implement path 35f11ca Implement `int_from_ascii` (rust-lang#134821) 35d4163 Cleanup docs for Allocator ac377e6 btree/node.rs: pop_internal_level: does not invalidate other handles 920fa6e btree/node.rs: remove incorrect comment from pop_internal_level docs 385c717 add inline attribute and codegen test adf0dec split slice::ptr_rotate into three separate algorithms, to hopefully help inlining 7c5ab2e optimize slice::ptr_rotate for compile-time-constant small rotates 33cd5d1 Test pipes also when not running on Windows and Linux simultaneously 6f8fc94 uefi: process: Fix args 1eb9fe0 [cfg_match] Document the use of expressions 698df05 Update comments and sort target_arch in c_char_definition 8c5c4f0 [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items 45c54a6 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent 3733a5f Document powf and powi calls that always return 1.0 6d30eb1 Document purpose of closure in from_fn.rs more clearly c915d27 add missing allocator safety in alloc crate 1869be4 alloc: add `#![warn(unreachable_pub)]` e862ecf Implement `AtomicT::update` & `AtomicT::try_update` 9185d66 fix doc for std::sync::mpmc 9fc7eba Implement phantom variance markers 98ea36e Clarify WindowsMut (Lending)Iterator 5639930 compiler_fence: fix example 92cf2a2 Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location 80956bb Move `std::io::pipe` code into its own file f2caa70 Actually run the bstr test 58d5b32 Update comment 6def6d8 Put all coretests in a separate crate 78bd21a Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls dd425d8 add nto80 x86-64 and aarch64 target 3b06df9 Add support for QNX 7.1 with io-sock on x64 af2473e Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64 09b2a5f Update a bunch of comments from before wasi support was added d838323 Remove a bunch of emscripten test ignores cae9279 Fix testing of the standard library with Emscripten d3ae4b2 fix(libtest): Deprecate '--logfile' 98e19ba docs: fix typo in std::pin overview 6c8e6c4 ports last few library files to new intrinsic style bf63483 Improve and expand documentation of pipes bf792c9 Fix set_name in thread mod for NuttX 1abd186 Fix `FormattingOptions` instantiation with `Default` 6aca6b1 Update library/core/src/num/nonzero.rs 8e1de57 Add memory layout documentation to generic NonZero<T> a5992d4 Fix whitespace 1d55704 document order of items in iterator from drain 914a680 Add `File already exists` error doc to `hard_link` function e53a737 Doc difference between extend and extend_from_slice 2859105 Make `Vec::pop_if` a bit more presentable f78e3c6 Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if` d908b58 remove pointless allowed_through_unstable_modules on TryFromSliceError 0ae2a56 test: add `#![warn(unreachable_pub)]` e0f56a9 proc_macro: add `#![warn(unreachable_pub)]` cd83512 Implement `CloneToUninit` for `ByteStr` 09568ff Add doc aliases for BStr and BString f89a518 Omit some more `From` impls to avoid inference failures ac8b121 Support `no_rc`, `no_sync`, and `no_global_oom_handling` f84f570 Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100 427d60b Implement `ByteStr` and `ByteString` types 39f3629 Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut` f69f613 Library: Finalize dyn compatibility renaming 962b63e Remove test panic from File::open d14a543 fix OsString::from_encoded_bytes_unchecked description 26a1665 Add an example of using `carrying_mul_add` to write wider multiplication ac29059 Outline panicking code for `LocalKey::with` f0b087f core: `#[allow(unreachable_pub)]` on unreachable `pub use` f3c8222 core: add `#![warn(unreachable_pub)]` 4784e6d rtstartup: add `#![warn(unreachable_pub)]` 0efea71 panic_unwind: add `#![warn(unreachable_pub)]` b7dc82d Recognise new IPv6 documentation range from RFC9637 565cb69 1. Removed 'rustc_nounwind' 2. Rewording of comments 3527011 Export likely(), unlikely() and cold_path() in std::hint ea48e49 Correct counting to four in cell module docs 82056ef doc: Point to methods on `Command` as alternatives to `set/remove_var` 4587e75 wasi/io: remove dead files 8ce42ed remove unnecessary rustc_allowed_through_unstable_modules 7ae50ed further improve panic_immediate_abort by removing rtprintpanic messages 42ec27d cargo update d73144b Rewrap following accepting review suggestions from @ibraheemdev 63856da Update library/core/src/slice/mod.rs 97ce761 Update library/core/src/slice/mod.rs 5acf89c Update library/core/src/slice/mod.rs 1eebc10 Update library/core/src/slice/mod.rs e793036 Update library/core/src/slice/mod.rs e1d3671 Update library/core/src/slice/mod.rs 1f38fea Update library/core/src/slice/mod.rs 2e9f94b Update library/core/src/slice/mod.rs d94e194 Update library/core/src/slice/mod.rs 6caff7a Update library/core/src/slice/mod.rs efe2d29 `then be` -> `be` based on feedback from @ibraheemdev 6b98b36 Improve `select_nth_unstable` documentation clarity bd01524 Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper" 12b573a Add references to the IEEE functions for `float_next_up_down` 8154a69 Stabilize `float_next_up_down` abae208 Fix import of pipe in kernel_copy.rs 5245e71 Move `std::pipe::*` into `std::io` 1696956 Clarify note in `std::sync::LazyLock` example 4099054 fix typo in library/alloc/src/sync.rs 445a433 Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count' 110b5cc Adjust syntax 02145ec Less unsafe in `dangling`/`without_provenance` 1cde12f fix typo in typenames of pin documentation 3a1ca31 intrinsics: deprecate calling them via the unstable std::intrinsics path 6c5d4ed add comments explaining main thread identification 91de0c9 std: lazily allocate the main thread handle 2a0a7f8 Revert "Remove the Arc rt::init allocation for thread info" b5eca5f Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`. d76c7c8 Update compiler-builtins to 0.1.143 27fc6e1 Rename `pos` to `position` 8f12d12 Convert `struct FromBytesWithNulError` into enum 14b6ac1 Enforce syntactical stability of const traits in HIR 2c6b9c6 Update compiler-builtins to 0.1.141 4ea9ec5 Add another `Vec::splice` example 1a30208 avoid nesting the user-defined main so deeply on the stack 87773bd use a single large catch_unwind in lang_start bde6354 uefi: helpers: Introduce OwnedDevicePath 83edfbb path: Move is_absolute check to sys::path c0b3faf Update the explanation for why we use box_new in vec! 46ab784 Add #[inline] to copy_from_slice fb1a3ca Add inherent versions of MaybeUninit methods for slices f432d05 Make UniqueRc invariant for soundness 2cb59f7 update and clarify StructuralPartialEq docs 51e75d7 Use `NonNull::without_provenance` within the standard library 6b2f148 Initial fs module for uefi 23e3266 Improve the safety documentation on new_unchecked 0bc2b65 Update a bunch of library types for MCP807 5c8b6a3 alloc: remove unsound `IsZero` for raw pointers 32c7937 Fix `proc_macro::quote!` for raw ident 56fb8d6 Append `TokenTree` with `ToTokens` in `proc_macro::quote!` d3833ce Rename the internal simpler `quote` macro to `minimal_quote` 8ec204c Used pthread name functions returning result for FreeBSD and DragonFly 01d0589 Fix ptr::from_ref documentation example comment 545abfe Improve prose around `as_slice` example of IterMut 0980def fmt 9569b28 update cfg(bootstrap) 8a27708 update version placeholders d5afd73 Remove some unnecessary `.into()` calls 59ff2fd add missing provenance APIs on NonNull 8c95755 More compelling env_clear() examples 6d642b8 Implement Condvar::wait_timeout for targets without threads 91f70dd Impl String::into_chars 2555b12 Avoid naming variables `str` 56b404f [generic_assert] Constify methods used by the formatting system 1dc8807 Add support for wasm exception handling to Emscripten target 657b264 chore: remove redundant words in comment 1b8ea82 Add doc aliases for `libm` and IEEE names 7e4e774 Mark `slice::reverse` unstably const 01ae1e3 Clarified the documentation on core::iter::from_fn and core::iter::successors d4501a4 library: fix adler{-> 2}.debug cfeffeb add regression test for unsound Flatten/FlatMap specialization 94db04b do not in-place-iterate over flatmap/flatten df0f409 Fix UWP build a4ae476 Bump backtrace to 0.3.75 bbc353f sync to actual dep verions of backtrace e627b84 turn rustc_box into an intrinsic 501de77 core: use public method instead of instrinsic 1d1e5c2 core: improve comments 97f1eb8 core: implement `bool::select_unpredictable` a40d763 Switch rtems target to panic unwind d6c33a2 path in detail 8c79dfe Move some things to `std::sync::poison` and reexport them in `std::sync` 84b4f2b Bump backtrace to rust-lang/backtrace-rs@4d7906b 2cb3a20 Try to write the panic message with a single `write_all` call 1082114 fix doc for missing Box allocator consistency cc2508f Remove qualification of `std::cmp::Ordering` in `Ord` doc 79605fa std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten ebdc5ee Avoid use of LFS64 symbols on Emscripten 36ad2f2 char to_digit: avoid unnecessary casts to u64 8414507 Remove allowing static_mut_refs lint db36729 Tidy up bigint mul methods f3416b7 fix doc for read write unaligned in zst operation 667cc2c Avoid short writes in LineWriter 28ec2d1 ptr docs: make it clear that we are talking only about memory accesses 16f6b7f Make slice::as_flattened_mut unstably const e1bdd8c rename typed_swap → typed_swap_nonoverlapping 598f5ac stabilize const_swap 90498ad fix: typos b48a519 Fix sentence fragment in `pin` module docs 0870f27 docs: inline `alloc::ffi::c_str` types to `alloc::ffi` 24e3fc3 Fix compilation issues on other unixes 3f384c3 Eliminate redundant statx syscalls 51251b7 Unify fs::copy and io::copy 691ebac Update `compiler-builtins` to 0.1.140 4b97838 Update library/alloc/tests/sort/tests.rs 3c4779d Fix typos abbf845 Override `carrying_mul_add` in cg_llvm 168dbf1 Move `{widening, carrying}_mul` to an intrinsic with fallback MIR 9c8216c Fix mistake in windows file open 17b5aa8 Windows: Use WriteFile to write to a UTF-8 console 43366c3 ptr::copy: fix docs for the overlapping case 24faf39 Fix renaming symlinks on Windows 7d7c6ca docs: inline `core::ffi::c_str` types to `core::ffi` a3b0b32 docs: inline `std::ffi::c_str` types to `std::ffi` 37c37bf unwinding: bump version to fix asm 5f12b8f docs: update code example for Iterator#rposition f0dc061 Use scoped threads in `std::sync::Barrier` examples 07acf02 Fix forgetting to save statx availability on success c5f8add Specify only that duplicates are discarded, not the order. 1f862a9 Document collection `From` and `FromIterator` impls that drop duplicate keys. adb29d7 Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc'; 7a18fee Impl FromIterator for tuples with arity 1-12 900c72c Fix formatting c1b27b2 stabilize const_alloc_layout c2ee372 chore: fix typos 986e93f Windows: Use FILE_ALLOCATION_INFO for truncation d869bd6 Bump `stdarch` c07cd10 core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type cacda1c Fixes safety docs for `dyn Any + Send {+ Sync}` c04bda7 Use `#[derive(Default)]` instead of manually implementing it f571bfe Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" 6b0f0c0 Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`. 7b4478e docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code c0d63a1 docs: Permissions.readonly() also ignores root user special permissions 4634edd cargo update 6f3807b Delete `Rvalue::Len` dcabcc8 Asserts the maximum value that can be returned from `Vec::len` c98069c Document `PointerLike` implementation restrictions. 26aa727 Use `&raw` for `ptr` primitive docs 65454d7 Add `is_ascii` function optimized for x86-64 for [u8] 1d643c7 Add new implementation benchmark 357667f Document CTFE behavior of methods that call is_null d3f5cd6 Correctly document is_null CTFE behavior. 327632c Win: rename: Use offset_of! in struct size calculation 0dcd865 Win: Remove special casing of the win7 target for `std::fs::rename` ae9352f Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory 5b304b2 Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available 3d87fd2 Less unwrap() in documentation 9ce6800 Improve prose around into_slice example of IterMut 5c33aa9 Improve prose around `as_slice` example of Iter 3be2931 Improve prose around basic examples of Iter and IterMut b0dee67 Abstract `ProcThreadAttributeList` into its own struct 33dff0e fix `PointerLike` docs 62a6b75 unimplement `PointerLike` for trait objects b1db22e split up `#[rustc_deny_explicit_impl]` attribute 631f334 remove reference to dangling from slice::Iter 84b6ada mri: add track_caller to thread spawning methods for better backtraces d95fcf3 fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()` 2c6c353 Improve documentation of `element_offset` and related methods cd4a0aa Rename `elem_offset` to `element_offset` 16270d4 docs: Mention `spare_capacity_mut()` in `Vec::set_len` 914b1f6 build: Update libc version f7ae7f9 fix typo in ptr/mod.rs 7783522 Stabilize `#[diagnostic::do_not_recommend]` 6764f83 Use field init shorthand where possible 1fb7c7e fix(LazyCell): documentation of get[_mut] was wrong 1dcf374 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 967013a Fix typo in uint_macros.rs 5a7131d remove obsolete comment and pub(super) visibility 5fe85e4 remove bounds from vec and linkedlist ExtractIf 7eed2f9 Add a range argument to vec.extract_if 72a8e51 Stabilize #[coverage] attribute e452ecc Remove `rustc::existing_doc_keyword` lint. 78460a0 Move `doc(keyword = "while")`. cf50d2f rustdoc-search: let From and Into be unboxed adc800a Replace i32 by char in `split_at` & `_unchecked` facbff2 Add clarity to the "greater" of `VecDeque::insert` cb38349 Replace i32 by char to add clarity 433ec5e Add value accessor methods to `Mutex` and `RwLock` 44bde49 std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. adf32f0 UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc d754b41 UniqueRc: PinCoerceUnsized and DerefPure eeee276 UniqueRc: comparisons and Hash 0c303bc UniqueRc: Add more trait impls. 771d90e Remove support for specializing ToString outside the standard library 3a466d9 Correct spelling of CURRENT_RUSTC_VERSION 43a3d59 Add documentation for anonymous pipe module 2cca97d feat: clarify how to use `black_box()` 78a5190 Update includes in '/library/core/src/error.rs'; 5cc7379 Fix building `std` for Hermit after `c_char` change a87332e Fix `Path::is_absolute` on Hermit 3d1d54a Fix typos in docs on provenance 6850e7d Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators 46e56a2 Switch inline(always) in core/src/fmt/rt.rs to plain inline dac66e6 Reword prelude for AsyncFn stabilization 90edbe4 Stabilize async closures 5f633a9 Remove consteval note from <*mut T>::align_offset docs. e49bfa6 Stabilize the Rust 2024 prelude e15932c Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files 43c0a18 Move some alloc tests to the alloctests crate 2977655 control libunwind linkage mode via `crt-static` on gnullvm targets 77c79ac Change `GetManyMutError` to match T-libs-api decision d08ffaa Add references to the specific ABI documents 38e1523 Remove l4re from the unsigned char operating system list 18b8e66 De-duplicate and improve definition of core::ffi::c_char 996dd98 Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless 0f03d97 stabilize const_nonnull_new ba442b2 Remove rustc_const_stable attribute on const NOOP e128341 Add libc funcitons only for wasm32-wasip1-threads. c0a681b Fix compilation for wasm32-wasip1 (without threads). 27bfa1a Use UNIX thread_local implementation for WASI. 1b64387 Run TLS destructors for wasm32-wasip1-threads dfce6e3 Downgrade cc a322e0e Run `cargo update` and update licenses b655ec7 chore: Improve doc comments e35875d Refactor ReadDir into a state machine 2402903 wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next 5f5bb4f docs: better examples for `std::ops::ControlFlow` 2753b10 Expand home_dir docs 0196d8c Add doc alias 'then_with' for `then` method on `bool` d7adaa3 Adds new intrinsic declaration a822c03 Define acronym for thread local storage af8f23b Add a `collect_into` tuple test case 5e0f6ba Don't impl Extend for 13-tuples aeac17a Simplify documentation for Extend impl for tuples 634b71a Add Extend impls for tuples of arity 1 through 12 3aeb486 Unbreak tidy 515c0a3 Stabilize `std::io::ErrorKind::QuotaExceeded` f2f52b6 Stabilize `std::io::ErrorKind::CrossesDevices` 2e70ae1 Access members of `FormattingOptions` directly instead of via getters/setters a8730ac Removed constness for methods receiving a `&mut` parameter 3789c27 Added better reason for exposing `flags` and `get_flags` as unstable 49b9b24 Formatted 1c36afd Refactored FormattingOptions to use a bitmask for storing flags dc17e16 Revert "Turned public+unstable+hidden functions into private functions" 686f906 Turned public+unstable+hidden functions into private functions 7f65cfa Made all fns const 07a8419 impl Default for fmt::FormattingOptions 6df545c Fixed copy+paste error in comment c7c3868 fmt::FormattingOptions: Renamed `alignment` to `align` 0234f60 Formatter::with_options: Use different lifetimes 58bb384 Fixed another broken test 51853b7 Added struct `fmt::FormattingOptions` 2fa6ef5 Formatter: Access members via getter methods wherever possible cdf164c Stabilize noop_waker 44f4e56 Improve documentation 4112efb Reformat Python code with `ruff` 23bc16e Improve comments for the default backtrace printer 3cc8687 clarify simd_relaxed_fma non-determinism 098ab6e Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. 631600c Rename `core_pattern_type` and `core_pattern_types` lib feature gates to `pattern_type_macro` f1ec3fd Allow fn pointers comparisons lint in library 78dbaa1 Update `NonZero` and `NonNull` to not field-project (per MCP807) 246e2dc Add `core::arch::breakpoint` and test b516741 a release operation synchronizes with an acquire operation 3d1959b Update the definition of `borrowing_sub` 17e76b3 stabilize const_{size,align}_of_val 8466dd9 ./x miri: fix sysroot build a986f38 stabilize const_collections_with_hasher and build_hasher_default_const_new 764b08b Match simd_relaxed_fma documentation to fmuladd intrinsic bedd63c Add simd_relaxed_fma intrinsic a835902 Fix `f16::midpoint` const feature gate d1c9629 Use c"lit" for CStrings without unwrap a6dcdc1 Stabilize `const_maybe_uninit_write` b16b393 Fix docs for '<[T]>::as_array'; cab5799 Stabilize `ptr::fn_addr_eq` 02afcda rustc_allow_const_fn_unstable is not used in proc_macro 3513ad4 get rid of a bunch of unnecessary rustc_const_unstable 7f72554 remove a whole bunch of unnecessary const feature gates 4cbe264 add isatty alias for is_terminal 6949ce1 Stabilize unsigned `num_midpoint` feature 62cca39 Mark `slice::copy_from_slice` unstably const 47f5497 Fix chaining `carrying_add`s c99f71d add test for bytewise ptr::swap of a pointer 111df4e move swap_nonoverlapping constness to separate feature gate 74a5eef move slice::swap_unchecked constness to slice_swap_unchecked feature gate defad3f Add diagnostic item for `std::ops::ControlFlow` dd7c619 update link to "C++ Exceptions under the hood" blog 6f42b66 fix: fix codeblocks in `PathBuf` example 2d84873 fix: hurd build, stat64.st_fsid was renamed to st_dev cc30a5c std: clarify comments about initialization b1981f2 std: refactor `pthread`-based synchronization bf1571b bump hashbrown version 9544e8a Fill in a `BTreeSet::entry` example d93c951 Add a tracking issue for `btree_set_entry` b4b42da Add `BTreeSet` entry APIs to match `HashSet` bcbe6d7 Implement code review d12229b thread::available_parallelism for wasm32-wasip1-threads 6a93c75 changes old intrinsic declaration to new declaration 63a1cec Fix and undeprecate home_dir() 8ecbafc refine mir debuginfo docs 7b75f0a Doc comment custom MIR debuginfo. 23bb349 Stabilize `extended_varargs_abi_support` e13c2f5 update cfgs 45980cf replace placeholder version b25ac68 Also use zero when referencing to capacity or length bfe1509 Use consistent wording in docs, use zero instead of 0 243f463 Fix typos in pin.rs adc9925 Share inline(never) generics across crates 4dda752 fmt 0514f6b aix: create shim for lgammaf_r 50b8f24 Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods; df74eed Remove one stray space. 6246096 Update chown help with a link and adding cap warning 46f5c51 Expand std::os::unix::fs::chown() doc with a warning 6492542 Add missing code examples on `LocalKey` 8a5dc16 Make profiler_builtins `#![no_core]` instead of just `#![no_std]` dadfdb4 Remove unnecessary `#![allow(unused_features)]` 19146e4 Sort and separate lint/feature attributes in `profiler_builtins` 11531a0 std: update internal uses of `io::const_error!` 8c8d5ec std: expose `const_io_error!` as `const_error!` a0eeefe Constify Drop and Destruct e5d5091 miri: disable test_downgrade_observe test on macOS 0119d60 Shorten the `MaybeUninit` `Debug` implementation 16eafe3 Support ranges in `<[T]>::get_many_mut()` f1fb91c btree: add `{Entry,VacantEntry}::insert_entry` 52e5628 std::thread: avoid leading whitespace in some panic messages 1f3b03d Added a doc test for std::path::strip_prefix git-subtree-dir: library git-subtree-split: b522de4
b522de4 [create-pull-request] automated change a1dbb6a Rustfmt a52615b occured -> occurred 5a37baa Allow Rust to use a number of libc filesystem calls 03f5709 Windows: Test that deleting a running binary fails 471baea Update platform information for remove_file 89f2005 Windows: remove readonly files d49e4a6 Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` 3b68051 Document `Sum::sum` returns additive identities for `[]` 3f758e4 Clean up 'HashMap' and 'HashSet' docs; 793027c Optimize `Rc::<str>::default()` implementation 25c4f83 std: get rid of `sys_common::io` ea0d492 std: move `io` module out of `pal` 805e8e6 Move two windows process tests to tests/ui ad7b631 tests(std/net): remove outdated `base_port` calculation d816238 sys: net: Add UEFI stubs 1a2ca8d Remove some unnecessary parens in `assert!` conditions 18d5bbe remove use of `feature(trait_upcasting)` from core tests f1b58f1 Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios; f737e2e Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` ce3ffd6 tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes` ef629cd Fix unreachable_pub lint for hermit target 0c53135 Fix link in from_fn.rs bc61def Use `widening_mul` 428b7c7 Add OneSidedRangeBound to eliminate panic in `split_point_of` a5fa615 Rename slice::take methods to split_off e6d28e5 Update `compiler-builtins` to 0.1.145 02e41f1 specify a prim@slice in docs 14f7f4c implement inherent str constructors 0afdd69 std: move network code into `sys` 702ef8b uefi: process: Add support for command environment variables fa2c0cc Mark `std::fmt::from_fn` as `#[must_use]` 1ab8856 Rename rustc_contract to contract da34e0f Improve contracts intrisics and remove wrapper function 435f432 Separate contract feature gates for the internal machinery e064caf Desugars contract into the internal AST extensions 2b9391a Express contracts as part of function header and lower it to the contract lang items 2541430 contracts: added lang items that act as hooks for rustc-injected code to invoke. c58a634 Contracts core intrinsics. 8c36c0d More PR feedback 2200ba1 PR feedback 52234f8 Add `unchecked_disjoint_bitor` with fallback intrinsic implementation e9cbf64 Add note about `FnPtr` being exposed as public bound 2473ac4 Add `cast_signed` and `cast_unsigned` methods for `NonZero` types 1103e48 For NonZero impl macros, give unsigned impls access to the corresponding signed type ed9c395 std::fs: further simplify dirent64 handling 68247c8 add UnsafeCell direct access APIs 7df9713 primitive type migration from mod.rs to primitives.rs 488bc0b implement unstable `new_range` feature bdf4a43 std::range bf38e5b Remove stabilized feature gate 1da5a34 Move env modifying tests to a separate integration test a8fbaca Fix for SGX d7ded6a Fix benchmarking of libstd ffe0f5c Move std::sync unit tests to integration tests 5258561 Move std::thread_local unit tests to integration tests ec2a17a Move std::time unit tests to integration tests 2ef34e0 Move std::path unit tests to integration tests 6a95d3d Move std::panic unit tests to integration tests 361d3bc Move std::num unit tests to integration tests 03131a8 Move std float unit tests to integration tests 531b7f7 Move std::error unit tests to integration tests 39f7281 Move std::env unit tests to integration tests 77640c1 no unsafe pointer and no overflowing_literals in fmt::Display of integers 93b2a7d black_box integer-input on fmt benches dcba488 OnceCell & OnceLock docs: Using (un)initialized consistently e666d1e Docs for f16 and f128: correct a typo and add details 9966ad4 rustc_allowed_through_unstable_modules: require deprecation message a5e952c Update encode_utf16 to mention it is native endian f96f4d7 remove Rustc{En,De}codable from library and compiler 9c247ef make rustc_encodable_decodable feature properly unstable 230cd60 Fix sentence in process::abort d79ae4b document ptr comparison being by address e319527 stabilize `once_wait` 8cb78d6 implement all min/max fns in terms of `<`/`is_lt` d61cec3 improve doc tests for (min/max/minmax).* functions af91544 docs: Documented Send and Sync requirements for Mutex + MutexGuard cd7b822 Add documentation for derive(CoercePointee) ac653f9 Fix off-by-one error causing driftsort to crash c77eb3d Insert null checks for pointer dereferences when debug assertions are enabled 3e9d605 atomic: extend compare_and_swap migration docs 8f3ae96 float::min/max: mention the non-determinism around signed 0 be452a6 Stabilize `const_black_box` 00a9e43 Improve documentation for file locking 54d3b74 Remove minor future footgun in `impl Debug for MaybeUninit` e5f6d8f Add `AsyncFn*` to core prelude 9a0a709 uefi: Implement path 35f11ca Implement `int_from_ascii` (rust-lang#134821) 35d4163 Cleanup docs for Allocator ac377e6 btree/node.rs: pop_internal_level: does not invalidate other handles 920fa6e btree/node.rs: remove incorrect comment from pop_internal_level docs 385c717 add inline attribute and codegen test adf0dec split slice::ptr_rotate into three separate algorithms, to hopefully help inlining 7c5ab2e optimize slice::ptr_rotate for compile-time-constant small rotates 33cd5d1 Test pipes also when not running on Windows and Linux simultaneously 6f8fc94 uefi: process: Fix args 1eb9fe0 [cfg_match] Document the use of expressions 698df05 Update comments and sort target_arch in c_char_definition 8c5c4f0 [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items 45c54a6 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent 3733a5f Document powf and powi calls that always return 1.0 6d30eb1 Document purpose of closure in from_fn.rs more clearly c915d27 add missing allocator safety in alloc crate 1869be4 alloc: add `#![warn(unreachable_pub)]` e862ecf Implement `AtomicT::update` & `AtomicT::try_update` 9185d66 fix doc for std::sync::mpmc 9fc7eba Implement phantom variance markers 98ea36e Clarify WindowsMut (Lending)Iterator 5639930 compiler_fence: fix example 92cf2a2 Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location 80956bb Move `std::io::pipe` code into its own file f2caa70 Actually run the bstr test 58d5b32 Update comment 6def6d8 Put all coretests in a separate crate 78bd21a Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls dd425d8 add nto80 x86-64 and aarch64 target 3b06df9 Add support for QNX 7.1 with io-sock on x64 af2473e Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64 09b2a5f Update a bunch of comments from before wasi support was added d838323 Remove a bunch of emscripten test ignores cae9279 Fix testing of the standard library with Emscripten d3ae4b2 fix(libtest): Deprecate '--logfile' 98e19ba docs: fix typo in std::pin overview 6c8e6c4 ports last few library files to new intrinsic style bf63483 Improve and expand documentation of pipes bf792c9 Fix set_name in thread mod for NuttX 1abd186 Fix `FormattingOptions` instantiation with `Default` 6aca6b1 Update library/core/src/num/nonzero.rs 8e1de57 Add memory layout documentation to generic NonZero<T> a5992d4 Fix whitespace 1d55704 document order of items in iterator from drain 914a680 Add `File already exists` error doc to `hard_link` function e53a737 Doc difference between extend and extend_from_slice 2859105 Make `Vec::pop_if` a bit more presentable f78e3c6 Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if` d908b58 remove pointless allowed_through_unstable_modules on TryFromSliceError 0ae2a56 test: add `#![warn(unreachable_pub)]` e0f56a9 proc_macro: add `#![warn(unreachable_pub)]` cd83512 Implement `CloneToUninit` for `ByteStr` 09568ff Add doc aliases for BStr and BString f89a518 Omit some more `From` impls to avoid inference failures ac8b121 Support `no_rc`, `no_sync`, and `no_global_oom_handling` f84f570 Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100 427d60b Implement `ByteStr` and `ByteString` types 39f3629 Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut` f69f613 Library: Finalize dyn compatibility renaming 962b63e Remove test panic from File::open d14a543 fix OsString::from_encoded_bytes_unchecked description 26a1665 Add an example of using `carrying_mul_add` to write wider multiplication ac29059 Outline panicking code for `LocalKey::with` f0b087f core: `#[allow(unreachable_pub)]` on unreachable `pub use` f3c8222 core: add `#![warn(unreachable_pub)]` 4784e6d rtstartup: add `#![warn(unreachable_pub)]` 0efea71 panic_unwind: add `#![warn(unreachable_pub)]` b7dc82d Recognise new IPv6 documentation range from RFC9637 565cb69 1. Removed 'rustc_nounwind' 2. Rewording of comments 3527011 Export likely(), unlikely() and cold_path() in std::hint ea48e49 Correct counting to four in cell module docs 82056ef doc: Point to methods on `Command` as alternatives to `set/remove_var` 4587e75 wasi/io: remove dead files 8ce42ed remove unnecessary rustc_allowed_through_unstable_modules 7ae50ed further improve panic_immediate_abort by removing rtprintpanic messages 42ec27d cargo update d73144b Rewrap following accepting review suggestions from @ibraheemdev 63856da Update library/core/src/slice/mod.rs 97ce761 Update library/core/src/slice/mod.rs 5acf89c Update library/core/src/slice/mod.rs 1eebc10 Update library/core/src/slice/mod.rs e793036 Update library/core/src/slice/mod.rs e1d3671 Update library/core/src/slice/mod.rs 1f38fea Update library/core/src/slice/mod.rs 2e9f94b Update library/core/src/slice/mod.rs d94e194 Update library/core/src/slice/mod.rs 6caff7a Update library/core/src/slice/mod.rs efe2d29 `then be` -> `be` based on feedback from @ibraheemdev 6b98b36 Improve `select_nth_unstable` documentation clarity bd01524 Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper" 12b573a Add references to the IEEE functions for `float_next_up_down` 8154a69 Stabilize `float_next_up_down` abae208 Fix import of pipe in kernel_copy.rs 5245e71 Move `std::pipe::*` into `std::io` 1696956 Clarify note in `std::sync::LazyLock` example 4099054 fix typo in library/alloc/src/sync.rs 445a433 Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count' 110b5cc Adjust syntax 02145ec Less unsafe in `dangling`/`without_provenance` 1cde12f fix typo in typenames of pin documentation 3a1ca31 intrinsics: deprecate calling them via the unstable std::intrinsics path 6c5d4ed add comments explaining main thread identification 91de0c9 std: lazily allocate the main thread handle 2a0a7f8 Revert "Remove the Arc rt::init allocation for thread info" b5eca5f Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`. d76c7c8 Update compiler-builtins to 0.1.143 27fc6e1 Rename `pos` to `position` 8f12d12 Convert `struct FromBytesWithNulError` into enum 14b6ac1 Enforce syntactical stability of const traits in HIR 2c6b9c6 Update compiler-builtins to 0.1.141 4ea9ec5 Add another `Vec::splice` example 1a30208 avoid nesting the user-defined main so deeply on the stack 87773bd use a single large catch_unwind in lang_start bde6354 uefi: helpers: Introduce OwnedDevicePath 83edfbb path: Move is_absolute check to sys::path c0b3faf Update the explanation for why we use box_new in vec! 46ab784 Add #[inline] to copy_from_slice fb1a3ca Add inherent versions of MaybeUninit methods for slices f432d05 Make UniqueRc invariant for soundness 2cb59f7 update and clarify StructuralPartialEq docs 51e75d7 Use `NonNull::without_provenance` within the standard library 6b2f148 Initial fs module for uefi 23e3266 Improve the safety documentation on new_unchecked 0bc2b65 Update a bunch of library types for MCP807 5c8b6a3 alloc: remove unsound `IsZero` for raw pointers 32c7937 Fix `proc_macro::quote!` for raw ident 56fb8d6 Append `TokenTree` with `ToTokens` in `proc_macro::quote!` d3833ce Rename the internal simpler `quote` macro to `minimal_quote` 8ec204c Used pthread name functions returning result for FreeBSD and DragonFly 01d0589 Fix ptr::from_ref documentation example comment 545abfe Improve prose around `as_slice` example of IterMut 0980def fmt 9569b28 update cfg(bootstrap) 8a27708 update version placeholders d5afd73 Remove some unnecessary `.into()` calls 59ff2fd add missing provenance APIs on NonNull 8c95755 More compelling env_clear() examples 6d642b8 Implement Condvar::wait_timeout for targets without threads 91f70dd Impl String::into_chars 2555b12 Avoid naming variables `str` 56b404f [generic_assert] Constify methods used by the formatting system 1dc8807 Add support for wasm exception handling to Emscripten target 657b264 chore: remove redundant words in comment 1b8ea82 Add doc aliases for `libm` and IEEE names 7e4e774 Mark `slice::reverse` unstably const 01ae1e3 Clarified the documentation on core::iter::from_fn and core::iter::successors d4501a4 library: fix adler{-> 2}.debug cfeffeb add regression test for unsound Flatten/FlatMap specialization 94db04b do not in-place-iterate over flatmap/flatten df0f409 Fix UWP build a4ae476 Bump backtrace to 0.3.75 bbc353f sync to actual dep verions of backtrace e627b84 turn rustc_box into an intrinsic 501de77 core: use public method instead of instrinsic 1d1e5c2 core: improve comments 97f1eb8 core: implement `bool::select_unpredictable` a40d763 Switch rtems target to panic unwind d6c33a2 path in detail 8c79dfe Move some things to `std::sync::poison` and reexport them in `std::sync` 84b4f2b Bump backtrace to rust-lang/backtrace-rs@4d7906b 2cb3a20 Try to write the panic message with a single `write_all` call 1082114 fix doc for missing Box allocator consistency cc2508f Remove qualification of `std::cmp::Ordering` in `Ord` doc 79605fa std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten ebdc5ee Avoid use of LFS64 symbols on Emscripten 36ad2f2 char to_digit: avoid unnecessary casts to u64 8414507 Remove allowing static_mut_refs lint db36729 Tidy up bigint mul methods f3416b7 fix doc for read write unaligned in zst operation 667cc2c Avoid short writes in LineWriter 28ec2d1 ptr docs: make it clear that we are talking only about memory accesses 16f6b7f Make slice::as_flattened_mut unstably const e1bdd8c rename typed_swap → typed_swap_nonoverlapping 598f5ac stabilize const_swap 90498ad fix: typos b48a519 Fix sentence fragment in `pin` module docs 0870f27 docs: inline `alloc::ffi::c_str` types to `alloc::ffi` 24e3fc3 Fix compilation issues on other unixes 3f384c3 Eliminate redundant statx syscalls 51251b7 Unify fs::copy and io::copy 691ebac Update `compiler-builtins` to 0.1.140 4b97838 Update library/alloc/tests/sort/tests.rs 3c4779d Fix typos abbf845 Override `carrying_mul_add` in cg_llvm 168dbf1 Move `{widening, carrying}_mul` to an intrinsic with fallback MIR 9c8216c Fix mistake in windows file open 17b5aa8 Windows: Use WriteFile to write to a UTF-8 console 43366c3 ptr::copy: fix docs for the overlapping case 24faf39 Fix renaming symlinks on Windows 7d7c6ca docs: inline `core::ffi::c_str` types to `core::ffi` a3b0b32 docs: inline `std::ffi::c_str` types to `std::ffi` 37c37bf unwinding: bump version to fix asm 5f12b8f docs: update code example for Iterator#rposition f0dc061 Use scoped threads in `std::sync::Barrier` examples 07acf02 Fix forgetting to save statx availability on success c5f8add Specify only that duplicates are discarded, not the order. 1f862a9 Document collection `From` and `FromIterator` impls that drop duplicate keys. adb29d7 Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc'; 7a18fee Impl FromIterator for tuples with arity 1-12 900c72c Fix formatting c1b27b2 stabilize const_alloc_layout c2ee372 chore: fix typos 986e93f Windows: Use FILE_ALLOCATION_INFO for truncation d869bd6 Bump `stdarch` c07cd10 core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type cacda1c Fixes safety docs for `dyn Any + Send {+ Sync}` c04bda7 Use `#[derive(Default)]` instead of manually implementing it f571bfe Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" 6b0f0c0 Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`. 7b4478e docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code c0d63a1 docs: Permissions.readonly() also ignores root user special permissions 4634edd cargo update 6f3807b Delete `Rvalue::Len` dcabcc8 Asserts the maximum value that can be returned from `Vec::len` c98069c Document `PointerLike` implementation restrictions. 26aa727 Use `&raw` for `ptr` primitive docs 65454d7 Add `is_ascii` function optimized for x86-64 for [u8] 1d643c7 Add new implementation benchmark 357667f Document CTFE behavior of methods that call is_null d3f5cd6 Correctly document is_null CTFE behavior. 327632c Win: rename: Use offset_of! in struct size calculation 0dcd865 Win: Remove special casing of the win7 target for `std::fs::rename` ae9352f Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory 5b304b2 Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available 3d87fd2 Less unwrap() in documentation 9ce6800 Improve prose around into_slice example of IterMut 5c33aa9 Improve prose around `as_slice` example of Iter 3be2931 Improve prose around basic examples of Iter and IterMut b0dee67 Abstract `ProcThreadAttributeList` into its own struct 33dff0e fix `PointerLike` docs 62a6b75 unimplement `PointerLike` for trait objects b1db22e split up `#[rustc_deny_explicit_impl]` attribute 631f334 remove reference to dangling from slice::Iter 84b6ada mri: add track_caller to thread spawning methods for better backtraces d95fcf3 fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()` 2c6c353 Improve documentation of `element_offset` and related methods cd4a0aa Rename `elem_offset` to `element_offset` 16270d4 docs: Mention `spare_capacity_mut()` in `Vec::set_len` 914b1f6 build: Update libc version f7ae7f9 fix typo in ptr/mod.rs 7783522 Stabilize `#[diagnostic::do_not_recommend]` 6764f83 Use field init shorthand where possible 1fb7c7e fix(LazyCell): documentation of get[_mut] was wrong 1dcf374 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 967013a Fix typo in uint_macros.rs 5a7131d remove obsolete comment and pub(super) visibility 5fe85e4 remove bounds from vec and linkedlist ExtractIf 7eed2f9 Add a range argument to vec.extract_if 72a8e51 Stabilize #[coverage] attribute e452ecc Remove `rustc::existing_doc_keyword` lint. 78460a0 Move `doc(keyword = "while")`. cf50d2f rustdoc-search: let From and Into be unboxed adc800a Replace i32 by char in `split_at` & `_unchecked` facbff2 Add clarity to the "greater" of `VecDeque::insert` cb38349 Replace i32 by char to add clarity 433ec5e Add value accessor methods to `Mutex` and `RwLock` 44bde49 std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. adf32f0 UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc d754b41 UniqueRc: PinCoerceUnsized and DerefPure eeee276 UniqueRc: comparisons and Hash 0c303bc UniqueRc: Add more trait impls. 771d90e Remove support for specializing ToString outside the standard library 3a466d9 Correct spelling of CURRENT_RUSTC_VERSION 43a3d59 Add documentation for anonymous pipe module 2cca97d feat: clarify how to use `black_box()` 78a5190 Update includes in '/library/core/src/error.rs'; 5cc7379 Fix building `std` for Hermit after `c_char` change a87332e Fix `Path::is_absolute` on Hermit 3d1d54a Fix typos in docs on provenance 6850e7d Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators 46e56a2 Switch inline(always) in core/src/fmt/rt.rs to plain inline dac66e6 Reword prelude for AsyncFn stabilization 90edbe4 Stabilize async closures 5f633a9 Remove consteval note from <*mut T>::align_offset docs. e49bfa6 Stabilize the Rust 2024 prelude e15932c Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files 43c0a18 Move some alloc tests to the alloctests crate 2977655 control libunwind linkage mode via `crt-static` on gnullvm targets 77c79ac Change `GetManyMutError` to match T-libs-api decision d08ffaa Add references to the specific ABI documents 38e1523 Remove l4re from the unsigned char operating system list 18b8e66 De-duplicate and improve definition of core::ffi::c_char 996dd98 Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless 0f03d97 stabilize const_nonnull_new ba442b2 Remove rustc_const_stable attribute on const NOOP e128341 Add libc funcitons only for wasm32-wasip1-threads. c0a681b Fix compilation for wasm32-wasip1 (without threads). 27bfa1a Use UNIX thread_local implementation for WASI. 1b64387 Run TLS destructors for wasm32-wasip1-threads dfce6e3 Downgrade cc a322e0e Run `cargo update` and update licenses b655ec7 chore: Improve doc comments e35875d Refactor ReadDir into a state machine 2402903 wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next 5f5bb4f docs: better examples for `std::ops::ControlFlow` 2753b10 Expand home_dir docs 0196d8c Add doc alias 'then_with' for `then` method on `bool` d7adaa3 Adds new intrinsic declaration a822c03 Define acronym for thread local storage af8f23b Add a `collect_into` tuple test case 5e0f6ba Don't impl Extend for 13-tuples aeac17a Simplify documentation for Extend impl for tuples 634b71a Add Extend impls for tuples of arity 1 through 12 3aeb486 Unbreak tidy 515c0a3 Stabilize `std::io::ErrorKind::QuotaExceeded` f2f52b6 Stabilize `std::io::ErrorKind::CrossesDevices` 2e70ae1 Access members of `FormattingOptions` directly instead of via getters/setters a8730ac Removed constness for methods receiving a `&mut` parameter 3789c27 Added better reason for exposing `flags` and `get_flags` as unstable 49b9b24 Formatted 1c36afd Refactored FormattingOptions to use a bitmask for storing flags dc17e16 Revert "Turned public+unstable+hidden functions into private functions" 686f906 Turned public+unstable+hidden functions into private functions 7f65cfa Made all fns const 07a8419 impl Default for fmt::FormattingOptions 6df545c Fixed copy+paste error in comment c7c3868 fmt::FormattingOptions: Renamed `alignment` to `align` 0234f60 Formatter::with_options: Use different lifetimes 58bb384 Fixed another broken test 51853b7 Added struct `fmt::FormattingOptions` 2fa6ef5 Formatter: Access members via getter methods wherever possible cdf164c Stabilize noop_waker 44f4e56 Improve documentation 4112efb Reformat Python code with `ruff` 23bc16e Improve comments for the default backtrace printer 3cc8687 clarify simd_relaxed_fma non-determinism 098ab6e Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. 631600c Rename `core_pattern_type` and `core_pattern_types` lib feature gates to `pattern_type_macro` f1ec3fd Allow fn pointers comparisons lint in library 78dbaa1 Update `NonZero` and `NonNull` to not field-project (per MCP807) 246e2dc Add `core::arch::breakpoint` and test b516741 a release operation synchronizes with an acquire operation 3d1959b Update the definition of `borrowing_sub` 17e76b3 stabilize const_{size,align}_of_val 8466dd9 ./x miri: fix sysroot build a986f38 stabilize const_collections_with_hasher and build_hasher_default_const_new 764b08b Match simd_relaxed_fma documentation to fmuladd intrinsic bedd63c Add simd_relaxed_fma intrinsic a835902 Fix `f16::midpoint` const feature gate d1c9629 Use c"lit" for CStrings without unwrap a6dcdc1 Stabilize `const_maybe_uninit_write` b16b393 Fix docs for '<[T]>::as_array'; cab5799 Stabilize `ptr::fn_addr_eq` 02afcda rustc_allow_const_fn_unstable is not used in proc_macro 3513ad4 get rid of a bunch of unnecessary rustc_const_unstable 7f72554 remove a whole bunch of unnecessary const feature gates 4cbe264 add isatty alias for is_terminal 6949ce1 Stabilize unsigned `num_midpoint` feature 62cca39 Mark `slice::copy_from_slice` unstably const 47f5497 Fix chaining `carrying_add`s c99f71d add test for bytewise ptr::swap of a pointer 111df4e move swap_nonoverlapping constness to separate feature gate 74a5eef move slice::swap_unchecked constness to slice_swap_unchecked feature gate defad3f Add diagnostic item for `std::ops::ControlFlow` dd7c619 update link to "C++ Exceptions under the hood" blog 6f42b66 fix: fix codeblocks in `PathBuf` example 2d84873 fix: hurd build, stat64.st_fsid was renamed to st_dev cc30a5c std: clarify comments about initialization b1981f2 std: refactor `pthread`-based synchronization bf1571b bump hashbrown version 9544e8a Fill in a `BTreeSet::entry` example d93c951 Add a tracking issue for `btree_set_entry` b4b42da Add `BTreeSet` entry APIs to match `HashSet` bcbe6d7 Implement code review d12229b thread::available_parallelism for wasm32-wasip1-threads 6a93c75 changes old intrinsic declaration to new declaration 63a1cec Fix and undeprecate home_dir() 8ecbafc refine mir debuginfo docs 7b75f0a Doc comment custom MIR debuginfo. 23bb349 Stabilize `extended_varargs_abi_support` e13c2f5 update cfgs 45980cf replace placeholder version b25ac68 Also use zero when referencing to capacity or length bfe1509 Use consistent wording in docs, use zero instead of 0 243f463 Fix typos in pin.rs adc9925 Share inline(never) generics across crates 4dda752 fmt 0514f6b aix: create shim for lgammaf_r 50b8f24 Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods; df74eed Remove one stray space. 6246096 Update chown help with a link and adding cap warning 46f5c51 Expand std::os::unix::fs::chown() doc with a warning 6492542 Add missing code examples on `LocalKey` 8a5dc16 Make profiler_builtins `#![no_core]` instead of just `#![no_std]` dadfdb4 Remove unnecessary `#![allow(unused_features)]` 19146e4 Sort and separate lint/feature attributes in `profiler_builtins` 11531a0 std: update internal uses of `io::const_error!` 8c8d5ec std: expose `const_io_error!` as `const_error!` a0eeefe Constify Drop and Destruct e5d5091 miri: disable test_downgrade_observe test on macOS 0119d60 Shorten the `MaybeUninit` `Debug` implementation 16eafe3 Support ranges in `<[T]>::get_many_mut()` f1fb91c btree: add `{Entry,VacantEntry}::insert_entry` 52e5628 std::thread: avoid leading whitespace in some panic messages 1f3b03d Added a doc test for std::path::strip_prefix git-subtree-dir: library git-subtree-split: b522de4
0b9e7db [create-pull-request] automated change f059e7f Rustfmt 29017b4 occured -> occurred f805788 Allow Rust to use a number of libc filesystem calls 014a4f7 Windows: Test that deleting a running binary fails 288094f Update platform information for remove_file 1cbc70e Windows: remove readonly files 419fb5a Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` fa42c72 Document `Sum::sum` returns additive identities for `[]` caa8321 Clean up 'HashMap' and 'HashSet' docs; 0d7271a Optimize `Rc::<str>::default()` implementation 59c1ce8 std: get rid of `sys_common::io` b762461 std: move `io` module out of `pal` 9e723f2 Move two windows process tests to tests/ui effecb5 tests(std/net): remove outdated `base_port` calculation 499fd71 sys: net: Add UEFI stubs 7960886 Remove some unnecessary parens in `assert!` conditions f5cf4cc remove use of `feature(trait_upcasting)` from core tests 3f9c9a5 Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios; 5a3b4b6 Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` 38d4193 tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes` 153a114 Fix unreachable_pub lint for hermit target 7984f24 Fix link in from_fn.rs a4c3372 Use `widening_mul` b017b75 Add OneSidedRangeBound to eliminate panic in `split_point_of` ce263a9 Rename slice::take methods to split_off 4dfb103 Update `compiler-builtins` to 0.1.145 dd3d28a specify a prim@slice in docs f549186 implement inherent str constructors 454ac7a std: move network code into `sys` 830d4ad uefi: process: Add support for command environment variables b2bd55d Mark `std::fmt::from_fn` as `#[must_use]` 667bd76 Rename rustc_contract to contract 0d5c81f Improve contracts intrisics and remove wrapper function 2fe37e3 Separate contract feature gates for the internal machinery b404184 Desugars contract into the internal AST extensions 2e62562 Express contracts as part of function header and lower it to the contract lang items 9c3c339 contracts: added lang items that act as hooks for rustc-injected code to invoke. 3a72fe1 Contracts core intrinsics. b57cfcf More PR feedback b4d438a PR feedback 953a621 Add `unchecked_disjoint_bitor` with fallback intrinsic implementation 939e4bb Add note about `FnPtr` being exposed as public bound 9e85484 Add `cast_signed` and `cast_unsigned` methods for `NonZero` types 01e4bd7 For NonZero impl macros, give unsigned impls access to the corresponding signed type 3145ee6 std::fs: further simplify dirent64 handling 8dafc28 add UnsafeCell direct access APIs 682a575 primitive type migration from mod.rs to primitives.rs 2ec42e4 implement unstable `new_range` feature 4072f33 std::range cdd8d4e Remove stabilized feature gate 350545d Move env modifying tests to a separate integration test 11b6c6a Fix for SGX 334c705 Fix benchmarking of libstd 78f6fc7 Move std::sync unit tests to integration tests 60c3720 Move std::thread_local unit tests to integration tests 179bb75 Move std::time unit tests to integration tests e26eb65 Move std::path unit tests to integration tests fcbf7a3 Move std::panic unit tests to integration tests 6f8c5c7 Move std::num unit tests to integration tests df99531 Move std float unit tests to integration tests cb75c03 Move std::error unit tests to integration tests 08d046c Move std::env unit tests to integration tests db46a3b no unsafe pointer and no overflowing_literals in fmt::Display of integers 129af80 black_box integer-input on fmt benches ab1177f OnceCell & OnceLock docs: Using (un)initialized consistently f945007 Docs for f16 and f128: correct a typo and add details ba5ff80 rustc_allowed_through_unstable_modules: require deprecation message 4c7a1b5 Update encode_utf16 to mention it is native endian 2a5ceb7 remove Rustc{En,De}codable from library and compiler c7a5b34 make rustc_encodable_decodable feature properly unstable 3866288 Fix sentence in process::abort d45e877 document ptr comparison being by address e9388ea stabilize `once_wait` c3bd3dd implement all min/max fns in terms of `<`/`is_lt` 9537f68 improve doc tests for (min/max/minmax).* functions b9a984a docs: Documented Send and Sync requirements for Mutex + MutexGuard 0764fa5 Add documentation for derive(CoercePointee) c5f1867 Fix off-by-one error causing driftsort to crash 7bfe9c9 Insert null checks for pointer dereferences when debug assertions are enabled 8564335 atomic: extend compare_and_swap migration docs c95ac30 float::min/max: mention the non-determinism around signed 0 ce31fd9 Stabilize `const_black_box` 7fbae89 Improve documentation for file locking fd6c67e Remove minor future footgun in `impl Debug for MaybeUninit` 1a3fc3e Add `AsyncFn*` to core prelude 778b886 uefi: Implement path 7f3d223 Implement `int_from_ascii` (rust-lang#134821) c48b602 Cleanup docs for Allocator 2072889 btree/node.rs: pop_internal_level: does not invalidate other handles 2e09211 btree/node.rs: remove incorrect comment from pop_internal_level docs 54e4132 add inline attribute and codegen test ae4ab8d split slice::ptr_rotate into three separate algorithms, to hopefully help inlining 4b82818 optimize slice::ptr_rotate for compile-time-constant small rotates 6127357 Test pipes also when not running on Windows and Linux simultaneously f744234 uefi: process: Fix args 2426aa2 [cfg_match] Document the use of expressions 386689a Update comments and sort target_arch in c_char_definition a2da226 [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items d70d068 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent 3ff6a84 Document powf and powi calls that always return 1.0 c712283 Document purpose of closure in from_fn.rs more clearly 62aef6a add missing allocator safety in alloc crate c045cb9 alloc: add `#![warn(unreachable_pub)]` 6fec5e2 Implement `AtomicT::update` & `AtomicT::try_update` 8c6a8ef fix doc for std::sync::mpmc bb2367b Implement phantom variance markers 1887e8b Clarify WindowsMut (Lending)Iterator f82e364 compiler_fence: fix example 328866d Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location 73169e3 Move `std::io::pipe` code into its own file 4b3b41d Actually run the bstr test 6ca64ff Update comment cd2b90a Put all coretests in a separate crate 2fe2be8 Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls 2d4d2cd add nto80 x86-64 and aarch64 target 1f5f5a6 Add support for QNX 7.1 with io-sock on x64 e3249e7 Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64 df89792 Update a bunch of comments from before wasi support was added 5998db2 Remove a bunch of emscripten test ignores 9919521 Fix testing of the standard library with Emscripten a27c059 fix(libtest): Deprecate '--logfile' d64e054 docs: fix typo in std::pin overview 9aeac8c ports last few library files to new intrinsic style b2ec24f Improve and expand documentation of pipes e81a9b7 Fix set_name in thread mod for NuttX 067e77e Fix `FormattingOptions` instantiation with `Default` c847e44 Update library/core/src/num/nonzero.rs ea8c3cd Add memory layout documentation to generic NonZero<T> c85dcdf Fix whitespace a7685f1 document order of items in iterator from drain d8c1039 Add `File already exists` error doc to `hard_link` function b170e81 Doc difference between extend and extend_from_slice 098d0a3 Make `Vec::pop_if` a bit more presentable c7491b0 Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if` e5bad03 remove pointless allowed_through_unstable_modules on TryFromSliceError e1b82ec test: add `#![warn(unreachable_pub)]` e26f831 proc_macro: add `#![warn(unreachable_pub)]` 6817ff0 Implement `CloneToUninit` for `ByteStr` b5355d9 Add doc aliases for BStr and BString 05755b6 Omit some more `From` impls to avoid inference failures d8a009a Support `no_rc`, `no_sync`, and `no_global_oom_handling` afa439f Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100 03b25cb Implement `ByteStr` and `ByteString` types 687094a Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut` 16620b9 Library: Finalize dyn compatibility renaming 437c97c Remove test panic from File::open 299e014 fix OsString::from_encoded_bytes_unchecked description b41b9a9 Add an example of using `carrying_mul_add` to write wider multiplication fca61b1 Outline panicking code for `LocalKey::with` da43443 core: `#[allow(unreachable_pub)]` on unreachable `pub use` e61b304 core: add `#![warn(unreachable_pub)]` 5cffae3 rtstartup: add `#![warn(unreachable_pub)]` 325bc46 panic_unwind: add `#![warn(unreachable_pub)]` 0d1ed84 Recognise new IPv6 documentation range from RFC9637 def732c 1. Removed 'rustc_nounwind' 2. Rewording of comments 2721b88 Export likely(), unlikely() and cold_path() in std::hint d663fae Correct counting to four in cell module docs 109002f doc: Point to methods on `Command` as alternatives to `set/remove_var` 8cd5f62 wasi/io: remove dead files 7761adb remove unnecessary rustc_allowed_through_unstable_modules f05c8ed further improve panic_immediate_abort by removing rtprintpanic messages 32dd115 cargo update 2fc6443 Rewrap following accepting review suggestions from @ibraheemdev 1a5db82 Update library/core/src/slice/mod.rs 0ae3097 Update library/core/src/slice/mod.rs 462fdbe Update library/core/src/slice/mod.rs 0614fb0 Update library/core/src/slice/mod.rs 5b97407 Update library/core/src/slice/mod.rs 022b497 Update library/core/src/slice/mod.rs 3a94fae Update library/core/src/slice/mod.rs e580ead Update library/core/src/slice/mod.rs be633eb Update library/core/src/slice/mod.rs abf598e Update library/core/src/slice/mod.rs f053fc4 `then be` -> `be` based on feedback from @ibraheemdev e25fb35 Improve `select_nth_unstable` documentation clarity 23a42dc Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper" cf73ee0 Add references to the IEEE functions for `float_next_up_down` e1b34be Stabilize `float_next_up_down` bdb6b9c Fix import of pipe in kernel_copy.rs 635777b Move `std::pipe::*` into `std::io` c4c099e Clarify note in `std::sync::LazyLock` example 4138f0f fix typo in library/alloc/src/sync.rs e84d1ed Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count' 6913a98 Adjust syntax 7d7fce0 Less unsafe in `dangling`/`without_provenance` 55e633d fix typo in typenames of pin documentation d8f420f intrinsics: deprecate calling them via the unstable std::intrinsics path 93a4ed4 add comments explaining main thread identification b510797 std: lazily allocate the main thread handle 15b8539 Revert "Remove the Arc rt::init allocation for thread info" 1ed2d58 Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`. ba3bc2f Update compiler-builtins to 0.1.143 c341a47 Rename `pos` to `position` 809d626 Convert `struct FromBytesWithNulError` into enum fd23a66 Enforce syntactical stability of const traits in HIR 26b1e1e Update compiler-builtins to 0.1.141 01e1781 Add another `Vec::splice` example b0d4ae7 avoid nesting the user-defined main so deeply on the stack bccd406 use a single large catch_unwind in lang_start 1abc128 uefi: helpers: Introduce OwnedDevicePath 0951f12 path: Move is_absolute check to sys::path ca99942 Update the explanation for why we use box_new in vec! 06e96a5 Add #[inline] to copy_from_slice f3d4a4e Add inherent versions of MaybeUninit methods for slices d01e0c8 Make UniqueRc invariant for soundness debcb38 update and clarify StructuralPartialEq docs e158c6a Use `NonNull::without_provenance` within the standard library 5054a17 Initial fs module for uefi 36f3dfc Improve the safety documentation on new_unchecked 5b8ac3d Update a bunch of library types for MCP807 e4d894a alloc: remove unsound `IsZero` for raw pointers 3d9dd4e Fix `proc_macro::quote!` for raw ident 3b536f1 Append `TokenTree` with `ToTokens` in `proc_macro::quote!` 14f03c7 Rename the internal simpler `quote` macro to `minimal_quote` 196be4e Used pthread name functions returning result for FreeBSD and DragonFly 45dbc07 Fix ptr::from_ref documentation example comment 34d7ff8 Improve prose around `as_slice` example of IterMut 31c3cd2 fmt 8c7eee1 update cfg(bootstrap) 57b242a update version placeholders f72435b Remove some unnecessary `.into()` calls ae0d07e add missing provenance APIs on NonNull ce0646c More compelling env_clear() examples 0b18c05 Implement Condvar::wait_timeout for targets without threads 6f6f711 Impl String::into_chars 01acc35 Avoid naming variables `str` 42c746f [generic_assert] Constify methods used by the formatting system 367da05 Add support for wasm exception handling to Emscripten target a4abafe chore: remove redundant words in comment 290c47e Add doc aliases for `libm` and IEEE names af0b52e Mark `slice::reverse` unstably const 9450e58 Clarified the documentation on core::iter::from_fn and core::iter::successors 33dbeb0 library: fix adler{-> 2}.debug ae03076 add regression test for unsound Flatten/FlatMap specialization 1d9a7b5 do not in-place-iterate over flatmap/flatten 277fe76 Fix UWP build a8fc346 Bump backtrace to 0.3.75 87320a9 sync to actual dep verions of backtrace f3304cd turn rustc_box into an intrinsic 35eeef9 core: use public method instead of instrinsic 0016e59 core: improve comments f33ea4b core: implement `bool::select_unpredictable` 0a9c541 Switch rtems target to panic unwind 20a0630 path in detail 7d16d90 Move some things to `std::sync::poison` and reexport them in `std::sync` 3cbf713 Bump backtrace to rust-lang/backtrace-rs@4d7906b fa7a493 Try to write the panic message with a single `write_all` call 2e008d6 fix doc for missing Box allocator consistency 46a0479 Remove qualification of `std::cmp::Ordering` in `Ord` doc 01fcc39 std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten ce148e6 Avoid use of LFS64 symbols on Emscripten 38f97ec char to_digit: avoid unnecessary casts to u64 9b6bf23 Remove allowing static_mut_refs lint 9c0eb4e Tidy up bigint mul methods 4b26493 fix doc for read write unaligned in zst operation 6243582 Avoid short writes in LineWriter d44006f ptr docs: make it clear that we are talking only about memory accesses 35ec41a Make slice::as_flattened_mut unstably const 11db185 rename typed_swap → typed_swap_nonoverlapping d636681 stabilize const_swap 5d3ad9a fix: typos 62c5c26 Fix sentence fragment in `pin` module docs 9a934c1 docs: inline `alloc::ffi::c_str` types to `alloc::ffi` a6b3f09 Fix compilation issues on other unixes d0f1af9 Eliminate redundant statx syscalls be3774f Unify fs::copy and io::copy 20e3c58 Update `compiler-builtins` to 0.1.140 0eebba5 Update library/alloc/tests/sort/tests.rs 757571e Fix typos 0398164 Override `carrying_mul_add` in cg_llvm 4748524 Move `{widening, carrying}_mul` to an intrinsic with fallback MIR 718f7b2 Fix mistake in windows file open 733408a Windows: Use WriteFile to write to a UTF-8 console 80dfbf1 ptr::copy: fix docs for the overlapping case 5b41e79 Fix renaming symlinks on Windows 21fd94e docs: inline `core::ffi::c_str` types to `core::ffi` 14b4a44 docs: inline `std::ffi::c_str` types to `std::ffi` 4e70568 unwinding: bump version to fix asm 8e2254c docs: update code example for Iterator#rposition 3f1dd8f Use scoped threads in `std::sync::Barrier` examples a536bc6 Fix forgetting to save statx availability on success 0e00943 Specify only that duplicates are discarded, not the order. aca9dc1 Document collection `From` and `FromIterator` impls that drop duplicate keys. 92ad20f Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc'; 149fcf9 Impl FromIterator for tuples with arity 1-12 bff596c Fix formatting b65ce37 stabilize const_alloc_layout 95b8f8d chore: fix typos 1065b32 Windows: Use FILE_ALLOCATION_INFO for truncation 7124a6e Bump `stdarch` 48f4c8e core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type a086f15 Fixes safety docs for `dyn Any + Send {+ Sync}` ba57b16 Use `#[derive(Default)]` instead of manually implementing it fb6e914 Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" da4d985 Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`. f6d97a5 docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code 6fe097d docs: Permissions.readonly() also ignores root user special permissions db86977 cargo update 307ebab Delete `Rvalue::Len` 2f2c17f Asserts the maximum value that can be returned from `Vec::len` 79ab9db Document `PointerLike` implementation restrictions. 3ee2730 Use `&raw` for `ptr` primitive docs 57096ff Add `is_ascii` function optimized for x86-64 for [u8] 5c5bf83 Add new implementation benchmark 790fc9a Document CTFE behavior of methods that call is_null 6822f3f Correctly document is_null CTFE behavior. 76cb181 Win: rename: Use offset_of! in struct size calculation d7ec7cf Win: Remove special casing of the win7 target for `std::fs::rename` 07430bf Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory 64f5201 Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available da73525 Less unwrap() in documentation 6b44775 Improve prose around into_slice example of IterMut 2e36c44 Improve prose around `as_slice` example of Iter 5140d3c Improve prose around basic examples of Iter and IterMut 949d89d Abstract `ProcThreadAttributeList` into its own struct c14564c fix `PointerLike` docs b940268 unimplement `PointerLike` for trait objects 086fa9c split up `#[rustc_deny_explicit_impl]` attribute 6b77fc6 remove reference to dangling from slice::Iter 721e98b mri: add track_caller to thread spawning methods for better backtraces 7d2cf55 fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()` b0c0bf1 Improve documentation of `element_offset` and related methods a59f3c7 Rename `elem_offset` to `element_offset` 4b1b88d docs: Mention `spare_capacity_mut()` in `Vec::set_len` ed7c545 build: Update libc version 9468563 fix typo in ptr/mod.rs 96f1502 Stabilize `#[diagnostic::do_not_recommend]` 6adf47a Use field init shorthand where possible 9e58ae5 fix(LazyCell): documentation of get[_mut] was wrong 07e0a8f 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 387771b Fix typo in uint_macros.rs e484ea7 remove obsolete comment and pub(super) visibility 9f99881 remove bounds from vec and linkedlist ExtractIf 27e1ff9 Add a range argument to vec.extract_if 8f4975c Stabilize #[coverage] attribute 1b6d528 Remove `rustc::existing_doc_keyword` lint. eb7543d Move `doc(keyword = "while")`. 35fd5c8 rustdoc-search: let From and Into be unboxed 2dea5e9 Replace i32 by char in `split_at` & `_unchecked` 1a7d114 Add clarity to the "greater" of `VecDeque::insert` 9a3b8ec Replace i32 by char to add clarity 5857574 Add value accessor methods to `Mutex` and `RwLock` 44673db std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. bf95fb3 UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc 8d42c1c UniqueRc: PinCoerceUnsized and DerefPure 50d1219 UniqueRc: comparisons and Hash beee1d6 UniqueRc: Add more trait impls. 9abb5f4 Remove support for specializing ToString outside the standard library 6a01fcc Correct spelling of CURRENT_RUSTC_VERSION 8a54b12 Add documentation for anonymous pipe module b232073 feat: clarify how to use `black_box()` e20aad1 Update includes in '/library/core/src/error.rs'; 8a6245a Fix building `std` for Hermit after `c_char` change 2814149 Fix `Path::is_absolute` on Hermit 3cd0c58 Fix typos in docs on provenance 0f11be7 Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators fedd63a Switch inline(always) in core/src/fmt/rt.rs to plain inline ad6d695 Reword prelude for AsyncFn stabilization fa41712 Stabilize async closures 6e17ac2 Remove consteval note from <*mut T>::align_offset docs. 1ca3b29 Stabilize the Rust 2024 prelude 04589bf Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files 6936a3a Move some alloc tests to the alloctests crate 17e0b25 control libunwind linkage mode via `crt-static` on gnullvm targets a0662fc Change `GetManyMutError` to match T-libs-api decision 0652319 Add references to the specific ABI documents 5950abe Remove l4re from the unsigned char operating system list 3d8ce62 De-duplicate and improve definition of core::ffi::c_char 269ff73 Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless 4b7c62a stabilize const_nonnull_new 1785724 Remove rustc_const_stable attribute on const NOOP 3657a2f Add libc funcitons only for wasm32-wasip1-threads. 7b6a5e3 Fix compilation for wasm32-wasip1 (without threads). 4e5022f Use UNIX thread_local implementation for WASI. 14614ca Run TLS destructors for wasm32-wasip1-threads ce6887f Downgrade cc 07cd76f Run `cargo update` and update licenses 4b97609 chore: Improve doc comments eac5d8e Refactor ReadDir into a state machine 05eed01 wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next 7a61684 docs: better examples for `std::ops::ControlFlow` 00006b3 Expand home_dir docs abc978e Add doc alias 'then_with' for `then` method on `bool` 43a1dd2 Adds new intrinsic declaration 64589b0 Define acronym for thread local storage 712dda5 Add a `collect_into` tuple test case ed37aa7 Don't impl Extend for 13-tuples a92ee38 Simplify documentation for Extend impl for tuples 77bc478 Add Extend impls for tuples of arity 1 through 12 78daa85 Unbreak tidy e29e39c Stabilize `std::io::ErrorKind::QuotaExceeded` 443f50e Stabilize `std::io::ErrorKind::CrossesDevices` 827daef Access members of `FormattingOptions` directly instead of via getters/setters 3fdc4c5 Removed constness for methods receiving a `&mut` parameter d28905f Added better reason for exposing `flags` and `get_flags` as unstable bad6617 Formatted 91b3404 Refactored FormattingOptions to use a bitmask for storing flags 21d3717 Revert "Turned public+unstable+hidden functions into private functions" 253cd52 Turned public+unstable+hidden functions into private functions a9ae91d Made all fns const a5074bc impl Default for fmt::FormattingOptions fd1eca3 Fixed copy+paste error in comment 32a02c5 fmt::FormattingOptions: Renamed `alignment` to `align` 7f29285 Formatter::with_options: Use different lifetimes 98913fe Fixed another broken test 66ce53a Added struct `fmt::FormattingOptions` 9d392bc Formatter: Access members via getter methods wherever possible 0702ebd Stabilize noop_waker 72edc45 Improve documentation 2e03030 Reformat Python code with `ruff` c5c2a51 Improve comments for the default backtrace printer ab2cbd9 clarify simd_relaxed_fma non-determinism a800a05 Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. be1d244 Rename `core_pattern_type` and `core_pattern_types` lib feature gates to `pattern_type_macro` 258dab4 Allow fn pointers comparisons lint in library e0b40eb Update `NonZero` and `NonNull` to not field-project (per MCP807) 6583dcc Add `core::arch::breakpoint` and test b7c6ad0 a release operation synchronizes with an acquire operation 86f0820 Update the definition of `borrowing_sub` bb323d6 stabilize const_{size,align}_of_val ecd9b26 ./x miri: fix sysroot build e450fe4 stabilize const_collections_with_hasher and build_hasher_default_const_new 025019d Match simd_relaxed_fma documentation to fmuladd intrinsic 91d7f95 Add simd_relaxed_fma intrinsic cd8867f Fix `f16::midpoint` const feature gate 2e01971 Use c"lit" for CStrings without unwrap d6ba798 Stabilize `const_maybe_uninit_write` 3f1c59a Fix docs for '<[T]>::as_array'; 0a2ae54 Stabilize `ptr::fn_addr_eq` 25fa15b rustc_allow_const_fn_unstable is not used in proc_macro bb786e4 get rid of a bunch of unnecessary rustc_const_unstable fd4b044 remove a whole bunch of unnecessary const feature gates ee8986b add isatty alias for is_terminal 70dae27 Stabilize unsigned `num_midpoint` feature b37b958 Mark `slice::copy_from_slice` unstably const c6aef10 Fix chaining `carrying_add`s 19db697 add test for bytewise ptr::swap of a pointer 9c30ff2 move swap_nonoverlapping constness to separate feature gate 9b3c313 move slice::swap_unchecked constness to slice_swap_unchecked feature gate a513619 Add diagnostic item for `std::ops::ControlFlow` 5f4a51c update link to "C++ Exceptions under the hood" blog 468ae7a fix: fix codeblocks in `PathBuf` example 3cddab3 fix: hurd build, stat64.st_fsid was renamed to st_dev 9750511 std: clarify comments about initialization 95b00fe std: refactor `pthread`-based synchronization aaa4c27 bump hashbrown version 3a9be70 Fill in a `BTreeSet::entry` example eabfb8d Add a tracking issue for `btree_set_entry` a955bed Add `BTreeSet` entry APIs to match `HashSet` a0e2eee Implement code review 3eda322 thread::available_parallelism for wasm32-wasip1-threads 2d85b33 changes old intrinsic declaration to new declaration 0a909b6 Fix and undeprecate home_dir() 0809b3f refine mir debuginfo docs fcb2927 Doc comment custom MIR debuginfo. ba3ecc8 Stabilize `extended_varargs_abi_support` 6295df0 update cfgs cd20f45 replace placeholder version 7b4cce7 Also use zero when referencing to capacity or length 14f81c5 Use consistent wording in docs, use zero instead of 0 754725a Fix typos in pin.rs fa5ddf8 Share inline(never) generics across crates 21ff4b4 fmt 7071ec8 aix: create shim for lgammaf_r 8df302f Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods; 542a3a9 Remove one stray space. 497ac2b Update chown help with a link and adding cap warning d0226cf Expand std::os::unix::fs::chown() doc with a warning 9aee14e Add missing code examples on `LocalKey` f8bb14c Make profiler_builtins `#![no_core]` instead of just `#![no_std]` 872a1ec Remove unnecessary `#![allow(unused_features)]` 6db9b58 Sort and separate lint/feature attributes in `profiler_builtins` f5e8953 std: update internal uses of `io::const_error!` 9d14ed9 std: expose `const_io_error!` as `const_error!` 3c99eaa Constify Drop and Destruct 9461af1 miri: disable test_downgrade_observe test on macOS 8204ce2 Shorten the `MaybeUninit` `Debug` implementation 0707d4f Support ranges in `<[T]>::get_many_mut()` 602117a btree: add `{Entry,VacantEntry}::insert_entry` 70f614d std::thread: avoid leading whitespace in some panic messages ce70169 Added a doc test for std::path::strip_prefix git-subtree-dir: library git-subtree-split: 0b9e7db
0b9e7db [create-pull-request] automated change f059e7f Rustfmt 29017b4 occured -> occurred f805788 Allow Rust to use a number of libc filesystem calls 014a4f7 Windows: Test that deleting a running binary fails 288094f Update platform information for remove_file 1cbc70e Windows: remove readonly files 419fb5a Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` fa42c72 Document `Sum::sum` returns additive identities for `[]` caa8321 Clean up 'HashMap' and 'HashSet' docs; 0d7271a Optimize `Rc::<str>::default()` implementation 59c1ce8 std: get rid of `sys_common::io` b762461 std: move `io` module out of `pal` 9e723f2 Move two windows process tests to tests/ui effecb5 tests(std/net): remove outdated `base_port` calculation 499fd71 sys: net: Add UEFI stubs 7960886 Remove some unnecessary parens in `assert!` conditions f5cf4cc remove use of `feature(trait_upcasting)` from core tests 3f9c9a5 Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios; 5a3b4b6 Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` 38d4193 tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes` 153a114 Fix unreachable_pub lint for hermit target 7984f24 Fix link in from_fn.rs a4c3372 Use `widening_mul` b017b75 Add OneSidedRangeBound to eliminate panic in `split_point_of` ce263a9 Rename slice::take methods to split_off 4dfb103 Update `compiler-builtins` to 0.1.145 dd3d28a specify a prim@slice in docs f549186 implement inherent str constructors 454ac7a std: move network code into `sys` 830d4ad uefi: process: Add support for command environment variables b2bd55d Mark `std::fmt::from_fn` as `#[must_use]` 667bd76 Rename rustc_contract to contract 0d5c81f Improve contracts intrisics and remove wrapper function 2fe37e3 Separate contract feature gates for the internal machinery b404184 Desugars contract into the internal AST extensions 2e62562 Express contracts as part of function header and lower it to the contract lang items 9c3c339 contracts: added lang items that act as hooks for rustc-injected code to invoke. 3a72fe1 Contracts core intrinsics. b57cfcf More PR feedback b4d438a PR feedback 953a621 Add `unchecked_disjoint_bitor` with fallback intrinsic implementation 939e4bb Add note about `FnPtr` being exposed as public bound 9e85484 Add `cast_signed` and `cast_unsigned` methods for `NonZero` types 01e4bd7 For NonZero impl macros, give unsigned impls access to the corresponding signed type 3145ee6 std::fs: further simplify dirent64 handling 8dafc28 add UnsafeCell direct access APIs 682a575 primitive type migration from mod.rs to primitives.rs 2ec42e4 implement unstable `new_range` feature 4072f33 std::range cdd8d4e Remove stabilized feature gate 350545d Move env modifying tests to a separate integration test 11b6c6a Fix for SGX 334c705 Fix benchmarking of libstd 78f6fc7 Move std::sync unit tests to integration tests 60c3720 Move std::thread_local unit tests to integration tests 179bb75 Move std::time unit tests to integration tests e26eb65 Move std::path unit tests to integration tests fcbf7a3 Move std::panic unit tests to integration tests 6f8c5c7 Move std::num unit tests to integration tests df99531 Move std float unit tests to integration tests cb75c03 Move std::error unit tests to integration tests 08d046c Move std::env unit tests to integration tests db46a3b no unsafe pointer and no overflowing_literals in fmt::Display of integers 129af80 black_box integer-input on fmt benches ab1177f OnceCell & OnceLock docs: Using (un)initialized consistently f945007 Docs for f16 and f128: correct a typo and add details ba5ff80 rustc_allowed_through_unstable_modules: require deprecation message 4c7a1b5 Update encode_utf16 to mention it is native endian 2a5ceb7 remove Rustc{En,De}codable from library and compiler c7a5b34 make rustc_encodable_decodable feature properly unstable 3866288 Fix sentence in process::abort d45e877 document ptr comparison being by address e9388ea stabilize `once_wait` c3bd3dd implement all min/max fns in terms of `<`/`is_lt` 9537f68 improve doc tests for (min/max/minmax).* functions b9a984a docs: Documented Send and Sync requirements for Mutex + MutexGuard 0764fa5 Add documentation for derive(CoercePointee) c5f1867 Fix off-by-one error causing driftsort to crash 7bfe9c9 Insert null checks for pointer dereferences when debug assertions are enabled 8564335 atomic: extend compare_and_swap migration docs c95ac30 float::min/max: mention the non-determinism around signed 0 ce31fd9 Stabilize `const_black_box` 7fbae89 Improve documentation for file locking fd6c67e Remove minor future footgun in `impl Debug for MaybeUninit` 1a3fc3e Add `AsyncFn*` to core prelude 778b886 uefi: Implement path 7f3d223 Implement `int_from_ascii` (rust-lang#134821) c48b602 Cleanup docs for Allocator 2072889 btree/node.rs: pop_internal_level: does not invalidate other handles 2e09211 btree/node.rs: remove incorrect comment from pop_internal_level docs 54e4132 add inline attribute and codegen test ae4ab8d split slice::ptr_rotate into three separate algorithms, to hopefully help inlining 4b82818 optimize slice::ptr_rotate for compile-time-constant small rotates 6127357 Test pipes also when not running on Windows and Linux simultaneously f744234 uefi: process: Fix args 2426aa2 [cfg_match] Document the use of expressions 386689a Update comments and sort target_arch in c_char_definition a2da226 [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items d70d068 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent 3ff6a84 Document powf and powi calls that always return 1.0 c712283 Document purpose of closure in from_fn.rs more clearly 62aef6a add missing allocator safety in alloc crate c045cb9 alloc: add `#![warn(unreachable_pub)]` 6fec5e2 Implement `AtomicT::update` & `AtomicT::try_update` 8c6a8ef fix doc for std::sync::mpmc bb2367b Implement phantom variance markers 1887e8b Clarify WindowsMut (Lending)Iterator f82e364 compiler_fence: fix example 328866d Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location 73169e3 Move `std::io::pipe` code into its own file 4b3b41d Actually run the bstr test 6ca64ff Update comment cd2b90a Put all coretests in a separate crate 2fe2be8 Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls 2d4d2cd add nto80 x86-64 and aarch64 target 1f5f5a6 Add support for QNX 7.1 with io-sock on x64 e3249e7 Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64 df89792 Update a bunch of comments from before wasi support was added 5998db2 Remove a bunch of emscripten test ignores 9919521 Fix testing of the standard library with Emscripten a27c059 fix(libtest): Deprecate '--logfile' d64e054 docs: fix typo in std::pin overview 9aeac8c ports last few library files to new intrinsic style b2ec24f Improve and expand documentation of pipes e81a9b7 Fix set_name in thread mod for NuttX 067e77e Fix `FormattingOptions` instantiation with `Default` c847e44 Update library/core/src/num/nonzero.rs ea8c3cd Add memory layout documentation to generic NonZero<T> c85dcdf Fix whitespace a7685f1 document order of items in iterator from drain d8c1039 Add `File already exists` error doc to `hard_link` function b170e81 Doc difference between extend and extend_from_slice 098d0a3 Make `Vec::pop_if` a bit more presentable c7491b0 Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if` e5bad03 remove pointless allowed_through_unstable_modules on TryFromSliceError e1b82ec test: add `#![warn(unreachable_pub)]` e26f831 proc_macro: add `#![warn(unreachable_pub)]` 6817ff0 Implement `CloneToUninit` for `ByteStr` b5355d9 Add doc aliases for BStr and BString 05755b6 Omit some more `From` impls to avoid inference failures d8a009a Support `no_rc`, `no_sync`, and `no_global_oom_handling` afa439f Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100 03b25cb Implement `ByteStr` and `ByteString` types 687094a Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut` 16620b9 Library: Finalize dyn compatibility renaming 437c97c Remove test panic from File::open 299e014 fix OsString::from_encoded_bytes_unchecked description b41b9a9 Add an example of using `carrying_mul_add` to write wider multiplication fca61b1 Outline panicking code for `LocalKey::with` da43443 core: `#[allow(unreachable_pub)]` on unreachable `pub use` e61b304 core: add `#![warn(unreachable_pub)]` 5cffae3 rtstartup: add `#![warn(unreachable_pub)]` 325bc46 panic_unwind: add `#![warn(unreachable_pub)]` 0d1ed84 Recognise new IPv6 documentation range from RFC9637 def732c 1. Removed 'rustc_nounwind' 2. Rewording of comments 2721b88 Export likely(), unlikely() and cold_path() in std::hint d663fae Correct counting to four in cell module docs 109002f doc: Point to methods on `Command` as alternatives to `set/remove_var` 8cd5f62 wasi/io: remove dead files 7761adb remove unnecessary rustc_allowed_through_unstable_modules f05c8ed further improve panic_immediate_abort by removing rtprintpanic messages 32dd115 cargo update 2fc6443 Rewrap following accepting review suggestions from @ibraheemdev 1a5db82 Update library/core/src/slice/mod.rs 0ae3097 Update library/core/src/slice/mod.rs 462fdbe Update library/core/src/slice/mod.rs 0614fb0 Update library/core/src/slice/mod.rs 5b97407 Update library/core/src/slice/mod.rs 022b497 Update library/core/src/slice/mod.rs 3a94fae Update library/core/src/slice/mod.rs e580ead Update library/core/src/slice/mod.rs be633eb Update library/core/src/slice/mod.rs abf598e Update library/core/src/slice/mod.rs f053fc4 `then be` -> `be` based on feedback from @ibraheemdev e25fb35 Improve `select_nth_unstable` documentation clarity 23a42dc Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper" cf73ee0 Add references to the IEEE functions for `float_next_up_down` e1b34be Stabilize `float_next_up_down` bdb6b9c Fix import of pipe in kernel_copy.rs 635777b Move `std::pipe::*` into `std::io` c4c099e Clarify note in `std::sync::LazyLock` example 4138f0f fix typo in library/alloc/src/sync.rs e84d1ed Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count' 6913a98 Adjust syntax 7d7fce0 Less unsafe in `dangling`/`without_provenance` 55e633d fix typo in typenames of pin documentation d8f420f intrinsics: deprecate calling them via the unstable std::intrinsics path 93a4ed4 add comments explaining main thread identification b510797 std: lazily allocate the main thread handle 15b8539 Revert "Remove the Arc rt::init allocation for thread info" 1ed2d58 Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`. ba3bc2f Update compiler-builtins to 0.1.143 c341a47 Rename `pos` to `position` 809d626 Convert `struct FromBytesWithNulError` into enum fd23a66 Enforce syntactical stability of const traits in HIR 26b1e1e Update compiler-builtins to 0.1.141 01e1781 Add another `Vec::splice` example b0d4ae7 avoid nesting the user-defined main so deeply on the stack bccd406 use a single large catch_unwind in lang_start 1abc128 uefi: helpers: Introduce OwnedDevicePath 0951f12 path: Move is_absolute check to sys::path ca99942 Update the explanation for why we use box_new in vec! 06e96a5 Add #[inline] to copy_from_slice f3d4a4e Add inherent versions of MaybeUninit methods for slices d01e0c8 Make UniqueRc invariant for soundness debcb38 update and clarify StructuralPartialEq docs e158c6a Use `NonNull::without_provenance` within the standard library 5054a17 Initial fs module for uefi 36f3dfc Improve the safety documentation on new_unchecked 5b8ac3d Update a bunch of library types for MCP807 e4d894a alloc: remove unsound `IsZero` for raw pointers 3d9dd4e Fix `proc_macro::quote!` for raw ident 3b536f1 Append `TokenTree` with `ToTokens` in `proc_macro::quote!` 14f03c7 Rename the internal simpler `quote` macro to `minimal_quote` 196be4e Used pthread name functions returning result for FreeBSD and DragonFly 45dbc07 Fix ptr::from_ref documentation example comment 34d7ff8 Improve prose around `as_slice` example of IterMut 31c3cd2 fmt 8c7eee1 update cfg(bootstrap) 57b242a update version placeholders f72435b Remove some unnecessary `.into()` calls ae0d07e add missing provenance APIs on NonNull ce0646c More compelling env_clear() examples 0b18c05 Implement Condvar::wait_timeout for targets without threads 6f6f711 Impl String::into_chars 01acc35 Avoid naming variables `str` 42c746f [generic_assert] Constify methods used by the formatting system 367da05 Add support for wasm exception handling to Emscripten target a4abafe chore: remove redundant words in comment 290c47e Add doc aliases for `libm` and IEEE names af0b52e Mark `slice::reverse` unstably const 9450e58 Clarified the documentation on core::iter::from_fn and core::iter::successors 33dbeb0 library: fix adler{-> 2}.debug ae03076 add regression test for unsound Flatten/FlatMap specialization 1d9a7b5 do not in-place-iterate over flatmap/flatten 277fe76 Fix UWP build a8fc346 Bump backtrace to 0.3.75 87320a9 sync to actual dep verions of backtrace f3304cd turn rustc_box into an intrinsic 35eeef9 core: use public method instead of instrinsic 0016e59 core: improve comments f33ea4b core: implement `bool::select_unpredictable` 0a9c541 Switch rtems target to panic unwind 20a0630 path in detail 7d16d90 Move some things to `std::sync::poison` and reexport them in `std::sync` 3cbf713 Bump backtrace to rust-lang/backtrace-rs@4d7906b fa7a493 Try to write the panic message with a single `write_all` call 2e008d6 fix doc for missing Box allocator consistency 46a0479 Remove qualification of `std::cmp::Ordering` in `Ord` doc 01fcc39 std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten ce148e6 Avoid use of LFS64 symbols on Emscripten 38f97ec char to_digit: avoid unnecessary casts to u64 9b6bf23 Remove allowing static_mut_refs lint 9c0eb4e Tidy up bigint mul methods 4b26493 fix doc for read write unaligned in zst operation 6243582 Avoid short writes in LineWriter d44006f ptr docs: make it clear that we are talking only about memory accesses 35ec41a Make slice::as_flattened_mut unstably const 11db185 rename typed_swap → typed_swap_nonoverlapping d636681 stabilize const_swap 5d3ad9a fix: typos 62c5c26 Fix sentence fragment in `pin` module docs 9a934c1 docs: inline `alloc::ffi::c_str` types to `alloc::ffi` a6b3f09 Fix compilation issues on other unixes d0f1af9 Eliminate redundant statx syscalls be3774f Unify fs::copy and io::copy 20e3c58 Update `compiler-builtins` to 0.1.140 0eebba5 Update library/alloc/tests/sort/tests.rs 757571e Fix typos 0398164 Override `carrying_mul_add` in cg_llvm 4748524 Move `{widening, carrying}_mul` to an intrinsic with fallback MIR 718f7b2 Fix mistake in windows file open 733408a Windows: Use WriteFile to write to a UTF-8 console 80dfbf1 ptr::copy: fix docs for the overlapping case 5b41e79 Fix renaming symlinks on Windows 21fd94e docs: inline `core::ffi::c_str` types to `core::ffi` 14b4a44 docs: inline `std::ffi::c_str` types to `std::ffi` 4e70568 unwinding: bump version to fix asm 8e2254c docs: update code example for Iterator#rposition 3f1dd8f Use scoped threads in `std::sync::Barrier` examples a536bc6 Fix forgetting to save statx availability on success 0e00943 Specify only that duplicates are discarded, not the order. aca9dc1 Document collection `From` and `FromIterator` impls that drop duplicate keys. 92ad20f Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc'; 149fcf9 Impl FromIterator for tuples with arity 1-12 bff596c Fix formatting b65ce37 stabilize const_alloc_layout 95b8f8d chore: fix typos 1065b32 Windows: Use FILE_ALLOCATION_INFO for truncation 7124a6e Bump `stdarch` 48f4c8e core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type a086f15 Fixes safety docs for `dyn Any + Send {+ Sync}` ba57b16 Use `#[derive(Default)]` instead of manually implementing it fb6e914 Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" da4d985 Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`. f6d97a5 docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code 6fe097d docs: Permissions.readonly() also ignores root user special permissions db86977 cargo update 307ebab Delete `Rvalue::Len` 2f2c17f Asserts the maximum value that can be returned from `Vec::len` 79ab9db Document `PointerLike` implementation restrictions. 3ee2730 Use `&raw` for `ptr` primitive docs 57096ff Add `is_ascii` function optimized for x86-64 for [u8] 5c5bf83 Add new implementation benchmark 790fc9a Document CTFE behavior of methods that call is_null 6822f3f Correctly document is_null CTFE behavior. 76cb181 Win: rename: Use offset_of! in struct size calculation d7ec7cf Win: Remove special casing of the win7 target for `std::fs::rename` 07430bf Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory 64f5201 Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available da73525 Less unwrap() in documentation 6b44775 Improve prose around into_slice example of IterMut 2e36c44 Improve prose around `as_slice` example of Iter 5140d3c Improve prose around basic examples of Iter and IterMut 949d89d Abstract `ProcThreadAttributeList` into its own struct c14564c fix `PointerLike` docs b940268 unimplement `PointerLike` for trait objects 086fa9c split up `#[rustc_deny_explicit_impl]` attribute 6b77fc6 remove reference to dangling from slice::Iter 721e98b mri: add track_caller to thread spawning methods for better backtraces 7d2cf55 fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()` b0c0bf1 Improve documentation of `element_offset` and related methods a59f3c7 Rename `elem_offset` to `element_offset` 4b1b88d docs: Mention `spare_capacity_mut()` in `Vec::set_len` ed7c545 build: Update libc version 9468563 fix typo in ptr/mod.rs 96f1502 Stabilize `#[diagnostic::do_not_recommend]` 6adf47a Use field init shorthand where possible 9e58ae5 fix(LazyCell): documentation of get[_mut] was wrong 07e0a8f 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 387771b Fix typo in uint_macros.rs e484ea7 remove obsolete comment and pub(super) visibility 9f99881 remove bounds from vec and linkedlist ExtractIf 27e1ff9 Add a range argument to vec.extract_if 8f4975c Stabilize #[coverage] attribute 1b6d528 Remove `rustc::existing_doc_keyword` lint. eb7543d Move `doc(keyword = "while")`. 35fd5c8 rustdoc-search: let From and Into be unboxed 2dea5e9 Replace i32 by char in `split_at` & `_unchecked` 1a7d114 Add clarity to the "greater" of `VecDeque::insert` 9a3b8ec Replace i32 by char to add clarity 5857574 Add value accessor methods to `Mutex` and `RwLock` 44673db std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. bf95fb3 UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc 8d42c1c UniqueRc: PinCoerceUnsized and DerefPure 50d1219 UniqueRc: comparisons and Hash beee1d6 UniqueRc: Add more trait impls. 9abb5f4 Remove support for specializing ToString outside the standard library 6a01fcc Correct spelling of CURRENT_RUSTC_VERSION 8a54b12 Add documentation for anonymous pipe module b232073 feat: clarify how to use `black_box()` e20aad1 Update includes in '/library/core/src/error.rs'; 8a6245a Fix building `std` for Hermit after `c_char` change 2814149 Fix `Path::is_absolute` on Hermit 3cd0c58 Fix typos in docs on provenance 0f11be7 Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators fedd63a Switch inline(always) in core/src/fmt/rt.rs to plain inline ad6d695 Reword prelude for AsyncFn stabilization fa41712 Stabilize async closures 6e17ac2 Remove consteval note from <*mut T>::align_offset docs. 1ca3b29 Stabilize the Rust 2024 prelude 04589bf Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files 6936a3a Move some alloc tests to the alloctests crate 17e0b25 control libunwind linkage mode via `crt-static` on gnullvm targets a0662fc Change `GetManyMutError` to match T-libs-api decision 0652319 Add references to the specific ABI documents 5950abe Remove l4re from the unsigned char operating system list 3d8ce62 De-duplicate and improve definition of core::ffi::c_char 269ff73 Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless 4b7c62a stabilize const_nonnull_new 1785724 Remove rustc_const_stable attribute on const NOOP 3657a2f Add libc funcitons only for wasm32-wasip1-threads. 7b6a5e3 Fix compilation for wasm32-wasip1 (without threads). 4e5022f Use UNIX thread_local implementation for WASI. 14614ca Run TLS destructors for wasm32-wasip1-threads ce6887f Downgrade cc 07cd76f Run `cargo update` and update licenses 4b97609 chore: Improve doc comments eac5d8e Refactor ReadDir into a state machine 05eed01 wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next 7a61684 docs: better examples for `std::ops::ControlFlow` 00006b3 Expand home_dir docs abc978e Add doc alias 'then_with' for `then` method on `bool` 43a1dd2 Adds new intrinsic declaration 64589b0 Define acronym for thread local storage 712dda5 Add a `collect_into` tuple test case ed37aa7 Don't impl Extend for 13-tuples a92ee38 Simplify documentation for Extend impl for tuples 77bc478 Add Extend impls for tuples of arity 1 through 12 78daa85 Unbreak tidy e29e39c Stabilize `std::io::ErrorKind::QuotaExceeded` 443f50e Stabilize `std::io::ErrorKind::CrossesDevices` 827daef Access members of `FormattingOptions` directly instead of via getters/setters 3fdc4c5 Removed constness for methods receiving a `&mut` parameter d28905f Added better reason for exposing `flags` and `get_flags` as unstable bad6617 Formatted 91b3404 Refactored FormattingOptions to use a bitmask for storing flags 21d3717 Revert "Turned public+unstable+hidden functions into private functions" 253cd52 Turned public+unstable+hidden functions into private functions a9ae91d Made all fns const a5074bc impl Default for fmt::FormattingOptions fd1eca3 Fixed copy+paste error in comment 32a02c5 fmt::FormattingOptions: Renamed `alignment` to `align` 7f29285 Formatter::with_options: Use different lifetimes 98913fe Fixed another broken test 66ce53a Added struct `fmt::FormattingOptions` 9d392bc Formatter: Access members via getter methods wherever possible 0702ebd Stabilize noop_waker 72edc45 Improve documentation 2e03030 Reformat Python code with `ruff` c5c2a51 Improve comments for the default backtrace printer ab2cbd9 clarify simd_relaxed_fma non-determinism a800a05 Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. be1d244 Rename `core_pattern_type` and `core_pattern_types` lib feature gates to `pattern_type_macro` 258dab4 Allow fn pointers comparisons lint in library e0b40eb Update `NonZero` and `NonNull` to not field-project (per MCP807) 6583dcc Add `core::arch::breakpoint` and test b7c6ad0 a release operation synchronizes with an acquire operation 86f0820 Update the definition of `borrowing_sub` bb323d6 stabilize const_{size,align}_of_val ecd9b26 ./x miri: fix sysroot build e450fe4 stabilize const_collections_with_hasher and build_hasher_default_const_new 025019d Match simd_relaxed_fma documentation to fmuladd intrinsic 91d7f95 Add simd_relaxed_fma intrinsic cd8867f Fix `f16::midpoint` const feature gate 2e01971 Use c"lit" for CStrings without unwrap d6ba798 Stabilize `const_maybe_uninit_write` 3f1c59a Fix docs for '<[T]>::as_array'; 0a2ae54 Stabilize `ptr::fn_addr_eq` 25fa15b rustc_allow_const_fn_unstable is not used in proc_macro bb786e4 get rid of a bunch of unnecessary rustc_const_unstable fd4b044 remove a whole bunch of unnecessary const feature gates ee8986b add isatty alias for is_terminal 70dae27 Stabilize unsigned `num_midpoint` feature b37b958 Mark `slice::copy_from_slice` unstably const c6aef10 Fix chaining `carrying_add`s 19db697 add test for bytewise ptr::swap of a pointer 9c30ff2 move swap_nonoverlapping constness to separate feature gate 9b3c313 move slice::swap_unchecked constness to slice_swap_unchecked feature gate a513619 Add diagnostic item for `std::ops::ControlFlow` 5f4a51c update link to "C++ Exceptions under the hood" blog 468ae7a fix: fix codeblocks in `PathBuf` example 3cddab3 fix: hurd build, stat64.st_fsid was renamed to st_dev 9750511 std: clarify comments about initialization 95b00fe std: refactor `pthread`-based synchronization aaa4c27 bump hashbrown version 3a9be70 Fill in a `BTreeSet::entry` example eabfb8d Add a tracking issue for `btree_set_entry` a955bed Add `BTreeSet` entry APIs to match `HashSet` a0e2eee Implement code review 3eda322 thread::available_parallelism for wasm32-wasip1-threads 2d85b33 changes old intrinsic declaration to new declaration 0a909b6 Fix and undeprecate home_dir() 0809b3f refine mir debuginfo docs fcb2927 Doc comment custom MIR debuginfo. ba3ecc8 Stabilize `extended_varargs_abi_support` 6295df0 update cfgs cd20f45 replace placeholder version 7b4cce7 Also use zero when referencing to capacity or length 14f81c5 Use consistent wording in docs, use zero instead of 0 754725a Fix typos in pin.rs fa5ddf8 Share inline(never) generics across crates 21ff4b4 fmt 7071ec8 aix: create shim for lgammaf_r 8df302f Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods; 542a3a9 Remove one stray space. 497ac2b Update chown help with a link and adding cap warning d0226cf Expand std::os::unix::fs::chown() doc with a warning 9aee14e Add missing code examples on `LocalKey` f8bb14c Make profiler_builtins `#![no_core]` instead of just `#![no_std]` 872a1ec Remove unnecessary `#![allow(unused_features)]` 6db9b58 Sort and separate lint/feature attributes in `profiler_builtins` f5e8953 std: update internal uses of `io::const_error!` 9d14ed9 std: expose `const_io_error!` as `const_error!` 3c99eaa Constify Drop and Destruct 9461af1 miri: disable test_downgrade_observe test on macOS 8204ce2 Shorten the `MaybeUninit` `Debug` implementation 0707d4f Support ranges in `<[T]>::get_many_mut()` 602117a btree: add `{Entry,VacantEntry}::insert_entry` 70f614d std::thread: avoid leading whitespace in some panic messages ce70169 Added a doc test for std::path::strip_prefix git-subtree-dir: library git-subtree-split: 0b9e7db
0b9e7db [create-pull-request] automated change f059e7f Rustfmt 29017b4 occured -> occurred f805788 Allow Rust to use a number of libc filesystem calls 014a4f7 Windows: Test that deleting a running binary fails 288094f Update platform information for remove_file 1cbc70e Windows: remove readonly files 419fb5a Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` fa42c72 Document `Sum::sum` returns additive identities for `[]` caa8321 Clean up 'HashMap' and 'HashSet' docs; 0d7271a Optimize `Rc::<str>::default()` implementation 59c1ce8 std: get rid of `sys_common::io` b762461 std: move `io` module out of `pal` 9e723f2 Move two windows process tests to tests/ui effecb5 tests(std/net): remove outdated `base_port` calculation 499fd71 sys: net: Add UEFI stubs 7960886 Remove some unnecessary parens in `assert!` conditions f5cf4cc remove use of `feature(trait_upcasting)` from core tests 3f9c9a5 Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios; 5a3b4b6 Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` 38d4193 tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes` 153a114 Fix unreachable_pub lint for hermit target 7984f24 Fix link in from_fn.rs a4c3372 Use `widening_mul` b017b75 Add OneSidedRangeBound to eliminate panic in `split_point_of` ce263a9 Rename slice::take methods to split_off 4dfb103 Update `compiler-builtins` to 0.1.145 dd3d28a specify a prim@slice in docs f549186 implement inherent str constructors 454ac7a std: move network code into `sys` 830d4ad uefi: process: Add support for command environment variables b2bd55d Mark `std::fmt::from_fn` as `#[must_use]` 667bd76 Rename rustc_contract to contract 0d5c81f Improve contracts intrisics and remove wrapper function 2fe37e3 Separate contract feature gates for the internal machinery b404184 Desugars contract into the internal AST extensions 2e62562 Express contracts as part of function header and lower it to the contract lang items 9c3c339 contracts: added lang items that act as hooks for rustc-injected code to invoke. 3a72fe1 Contracts core intrinsics. b57cfcf More PR feedback b4d438a PR feedback 953a621 Add `unchecked_disjoint_bitor` with fallback intrinsic implementation 939e4bb Add note about `FnPtr` being exposed as public bound 9e85484 Add `cast_signed` and `cast_unsigned` methods for `NonZero` types 01e4bd7 For NonZero impl macros, give unsigned impls access to the corresponding signed type 3145ee6 std::fs: further simplify dirent64 handling 8dafc28 add UnsafeCell direct access APIs 682a575 primitive type migration from mod.rs to primitives.rs 2ec42e4 implement unstable `new_range` feature 4072f33 std::range cdd8d4e Remove stabilized feature gate 350545d Move env modifying tests to a separate integration test 11b6c6a Fix for SGX 334c705 Fix benchmarking of libstd 78f6fc7 Move std::sync unit tests to integration tests 60c3720 Move std::thread_local unit tests to integration tests 179bb75 Move std::time unit tests to integration tests e26eb65 Move std::path unit tests to integration tests fcbf7a3 Move std::panic unit tests to integration tests 6f8c5c7 Move std::num unit tests to integration tests df99531 Move std float unit tests to integration tests cb75c03 Move std::error unit tests to integration tests 08d046c Move std::env unit tests to integration tests db46a3b no unsafe pointer and no overflowing_literals in fmt::Display of integers 129af80 black_box integer-input on fmt benches ab1177f OnceCell & OnceLock docs: Using (un)initialized consistently f945007 Docs for f16 and f128: correct a typo and add details ba5ff80 rustc_allowed_through_unstable_modules: require deprecation message 4c7a1b5 Update encode_utf16 to mention it is native endian 2a5ceb7 remove Rustc{En,De}codable from library and compiler c7a5b34 make rustc_encodable_decodable feature properly unstable 3866288 Fix sentence in process::abort d45e877 document ptr comparison being by address e9388ea stabilize `once_wait` c3bd3dd implement all min/max fns in terms of `<`/`is_lt` 9537f68 improve doc tests for (min/max/minmax).* functions b9a984a docs: Documented Send and Sync requirements for Mutex + MutexGuard 0764fa5 Add documentation for derive(CoercePointee) c5f1867 Fix off-by-one error causing driftsort to crash 7bfe9c9 Insert null checks for pointer dereferences when debug assertions are enabled 8564335 atomic: extend compare_and_swap migration docs c95ac30 float::min/max: mention the non-determinism around signed 0 ce31fd9 Stabilize `const_black_box` 7fbae89 Improve documentation for file locking fd6c67e Remove minor future footgun in `impl Debug for MaybeUninit` 1a3fc3e Add `AsyncFn*` to core prelude 778b886 uefi: Implement path 7f3d223 Implement `int_from_ascii` (rust-lang#134821) c48b602 Cleanup docs for Allocator 2072889 btree/node.rs: pop_internal_level: does not invalidate other handles 2e09211 btree/node.rs: remove incorrect comment from pop_internal_level docs 54e4132 add inline attribute and codegen test ae4ab8d split slice::ptr_rotate into three separate algorithms, to hopefully help inlining 4b82818 optimize slice::ptr_rotate for compile-time-constant small rotates 6127357 Test pipes also when not running on Windows and Linux simultaneously f744234 uefi: process: Fix args 2426aa2 [cfg_match] Document the use of expressions 386689a Update comments and sort target_arch in c_char_definition a2da226 [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items d70d068 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent 3ff6a84 Document powf and powi calls that always return 1.0 c712283 Document purpose of closure in from_fn.rs more clearly 62aef6a add missing allocator safety in alloc crate c045cb9 alloc: add `#![warn(unreachable_pub)]` 6fec5e2 Implement `AtomicT::update` & `AtomicT::try_update` 8c6a8ef fix doc for std::sync::mpmc bb2367b Implement phantom variance markers 1887e8b Clarify WindowsMut (Lending)Iterator f82e364 compiler_fence: fix example 328866d Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location 73169e3 Move `std::io::pipe` code into its own file 4b3b41d Actually run the bstr test 6ca64ff Update comment cd2b90a Put all coretests in a separate crate 2fe2be8 Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls 2d4d2cd add nto80 x86-64 and aarch64 target 1f5f5a6 Add support for QNX 7.1 with io-sock on x64 e3249e7 Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64 df89792 Update a bunch of comments from before wasi support was added 5998db2 Remove a bunch of emscripten test ignores 9919521 Fix testing of the standard library with Emscripten a27c059 fix(libtest): Deprecate '--logfile' d64e054 docs: fix typo in std::pin overview 9aeac8c ports last few library files to new intrinsic style b2ec24f Improve and expand documentation of pipes e81a9b7 Fix set_name in thread mod for NuttX 067e77e Fix `FormattingOptions` instantiation with `Default` c847e44 Update library/core/src/num/nonzero.rs ea8c3cd Add memory layout documentation to generic NonZero<T> c85dcdf Fix whitespace a7685f1 document order of items in iterator from drain d8c1039 Add `File already exists` error doc to `hard_link` function b170e81 Doc difference between extend and extend_from_slice 098d0a3 Make `Vec::pop_if` a bit more presentable c7491b0 Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if` e5bad03 remove pointless allowed_through_unstable_modules on TryFromSliceError e1b82ec test: add `#![warn(unreachable_pub)]` e26f831 proc_macro: add `#![warn(unreachable_pub)]` 6817ff0 Implement `CloneToUninit` for `ByteStr` b5355d9 Add doc aliases for BStr and BString 05755b6 Omit some more `From` impls to avoid inference failures d8a009a Support `no_rc`, `no_sync`, and `no_global_oom_handling` afa439f Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100 03b25cb Implement `ByteStr` and `ByteString` types 687094a Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut` 16620b9 Library: Finalize dyn compatibility renaming 437c97c Remove test panic from File::open 299e014 fix OsString::from_encoded_bytes_unchecked description b41b9a9 Add an example of using `carrying_mul_add` to write wider multiplication fca61b1 Outline panicking code for `LocalKey::with` da43443 core: `#[allow(unreachable_pub)]` on unreachable `pub use` e61b304 core: add `#![warn(unreachable_pub)]` 5cffae3 rtstartup: add `#![warn(unreachable_pub)]` 325bc46 panic_unwind: add `#![warn(unreachable_pub)]` 0d1ed84 Recognise new IPv6 documentation range from RFC9637 def732c 1. Removed 'rustc_nounwind' 2. Rewording of comments 2721b88 Export likely(), unlikely() and cold_path() in std::hint d663fae Correct counting to four in cell module docs 109002f doc: Point to methods on `Command` as alternatives to `set/remove_var` 8cd5f62 wasi/io: remove dead files 7761adb remove unnecessary rustc_allowed_through_unstable_modules f05c8ed further improve panic_immediate_abort by removing rtprintpanic messages 32dd115 cargo update 2fc6443 Rewrap following accepting review suggestions from @ibraheemdev 1a5db82 Update library/core/src/slice/mod.rs 0ae3097 Update library/core/src/slice/mod.rs 462fdbe Update library/core/src/slice/mod.rs 0614fb0 Update library/core/src/slice/mod.rs 5b97407 Update library/core/src/slice/mod.rs 022b497 Update library/core/src/slice/mod.rs 3a94fae Update library/core/src/slice/mod.rs e580ead Update library/core/src/slice/mod.rs be633eb Update library/core/src/slice/mod.rs abf598e Update library/core/src/slice/mod.rs f053fc4 `then be` -> `be` based on feedback from @ibraheemdev e25fb35 Improve `select_nth_unstable` documentation clarity 23a42dc Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper" cf73ee0 Add references to the IEEE functions for `float_next_up_down` e1b34be Stabilize `float_next_up_down` bdb6b9c Fix import of pipe in kernel_copy.rs 635777b Move `std::pipe::*` into `std::io` c4c099e Clarify note in `std::sync::LazyLock` example 4138f0f fix typo in library/alloc/src/sync.rs e84d1ed Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count' 6913a98 Adjust syntax 7d7fce0 Less unsafe in `dangling`/`without_provenance` 55e633d fix typo in typenames of pin documentation d8f420f intrinsics: deprecate calling them via the unstable std::intrinsics path 93a4ed4 add comments explaining main thread identification b510797 std: lazily allocate the main thread handle 15b8539 Revert "Remove the Arc rt::init allocation for thread info" 1ed2d58 Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`. ba3bc2f Update compiler-builtins to 0.1.143 c341a47 Rename `pos` to `position` 809d626 Convert `struct FromBytesWithNulError` into enum fd23a66 Enforce syntactical stability of const traits in HIR 26b1e1e Update compiler-builtins to 0.1.141 01e1781 Add another `Vec::splice` example b0d4ae7 avoid nesting the user-defined main so deeply on the stack bccd406 use a single large catch_unwind in lang_start 1abc128 uefi: helpers: Introduce OwnedDevicePath 0951f12 path: Move is_absolute check to sys::path ca99942 Update the explanation for why we use box_new in vec! 06e96a5 Add #[inline] to copy_from_slice f3d4a4e Add inherent versions of MaybeUninit methods for slices d01e0c8 Make UniqueRc invariant for soundness debcb38 update and clarify StructuralPartialEq docs e158c6a Use `NonNull::without_provenance` within the standard library 5054a17 Initial fs module for uefi 36f3dfc Improve the safety documentation on new_unchecked 5b8ac3d Update a bunch of library types for MCP807 e4d894a alloc: remove unsound `IsZero` for raw pointers 3d9dd4e Fix `proc_macro::quote!` for raw ident 3b536f1 Append `TokenTree` with `ToTokens` in `proc_macro::quote!` 14f03c7 Rename the internal simpler `quote` macro to `minimal_quote` 196be4e Used pthread name functions returning result for FreeBSD and DragonFly 45dbc07 Fix ptr::from_ref documentation example comment 34d7ff8 Improve prose around `as_slice` example of IterMut 31c3cd2 fmt 8c7eee1 update cfg(bootstrap) 57b242a update version placeholders f72435b Remove some unnecessary `.into()` calls ae0d07e add missing provenance APIs on NonNull ce0646c More compelling env_clear() examples 0b18c05 Implement Condvar::wait_timeout for targets without threads 6f6f711 Impl String::into_chars 01acc35 Avoid naming variables `str` 42c746f [generic_assert] Constify methods used by the formatting system 367da05 Add support for wasm exception handling to Emscripten target a4abafe chore: remove redundant words in comment 290c47e Add doc aliases for `libm` and IEEE names af0b52e Mark `slice::reverse` unstably const 9450e58 Clarified the documentation on core::iter::from_fn and core::iter::successors 33dbeb0 library: fix adler{-> 2}.debug ae03076 add regression test for unsound Flatten/FlatMap specialization 1d9a7b5 do not in-place-iterate over flatmap/flatten 277fe76 Fix UWP build a8fc346 Bump backtrace to 0.3.75 87320a9 sync to actual dep verions of backtrace f3304cd turn rustc_box into an intrinsic 35eeef9 core: use public method instead of instrinsic 0016e59 core: improve comments f33ea4b core: implement `bool::select_unpredictable` 0a9c541 Switch rtems target to panic unwind 20a0630 path in detail 7d16d90 Move some things to `std::sync::poison` and reexport them in `std::sync` 3cbf713 Bump backtrace to rust-lang/backtrace-rs@4d7906b fa7a493 Try to write the panic message with a single `write_all` call 2e008d6 fix doc for missing Box allocator consistency 46a0479 Remove qualification of `std::cmp::Ordering` in `Ord` doc 01fcc39 std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten ce148e6 Avoid use of LFS64 symbols on Emscripten 38f97ec char to_digit: avoid unnecessary casts to u64 9b6bf23 Remove allowing static_mut_refs lint 9c0eb4e Tidy up bigint mul methods 4b26493 fix doc for read write unaligned in zst operation 6243582 Avoid short writes in LineWriter d44006f ptr docs: make it clear that we are talking only about memory accesses 35ec41a Make slice::as_flattened_mut unstably const 11db185 rename typed_swap → typed_swap_nonoverlapping d636681 stabilize const_swap 5d3ad9a fix: typos 62c5c26 Fix sentence fragment in `pin` module docs 9a934c1 docs: inline `alloc::ffi::c_str` types to `alloc::ffi` a6b3f09 Fix compilation issues on other unixes d0f1af9 Eliminate redundant statx syscalls be3774f Unify fs::copy and io::copy 20e3c58 Update `compiler-builtins` to 0.1.140 0eebba5 Update library/alloc/tests/sort/tests.rs 757571e Fix typos 0398164 Override `carrying_mul_add` in cg_llvm 4748524 Move `{widening, carrying}_mul` to an intrinsic with fallback MIR 718f7b2 Fix mistake in windows file open 733408a Windows: Use WriteFile to write to a UTF-8 console 80dfbf1 ptr::copy: fix docs for the overlapping case 5b41e79 Fix renaming symlinks on Windows 21fd94e docs: inline `core::ffi::c_str` types to `core::ffi` 14b4a44 docs: inline `std::ffi::c_str` types to `std::ffi` 4e70568 unwinding: bump version to fix asm 8e2254c docs: update code example for Iterator#rposition 3f1dd8f Use scoped threads in `std::sync::Barrier` examples a536bc6 Fix forgetting to save statx availability on success 0e00943 Specify only that duplicates are discarded, not the order. aca9dc1 Document collection `From` and `FromIterator` impls that drop duplicate keys. 92ad20f Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc'; 149fcf9 Impl FromIterator for tuples with arity 1-12 bff596c Fix formatting b65ce37 stabilize const_alloc_layout 95b8f8d chore: fix typos 1065b32 Windows: Use FILE_ALLOCATION_INFO for truncation 7124a6e Bump `stdarch` 48f4c8e core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type a086f15 Fixes safety docs for `dyn Any + Send {+ Sync}` ba57b16 Use `#[derive(Default)]` instead of manually implementing it fb6e914 Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" da4d985 Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`. f6d97a5 docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code 6fe097d docs: Permissions.readonly() also ignores root user special permissions db86977 cargo update 307ebab Delete `Rvalue::Len` 2f2c17f Asserts the maximum value that can be returned from `Vec::len` 79ab9db Document `PointerLike` implementation restrictions. 3ee2730 Use `&raw` for `ptr` primitive docs 57096ff Add `is_ascii` function optimized for x86-64 for [u8] 5c5bf83 Add new implementation benchmark 790fc9a Document CTFE behavior of methods that call is_null 6822f3f Correctly document is_null CTFE behavior. 76cb181 Win: rename: Use offset_of! in struct size calculation d7ec7cf Win: Remove special casing of the win7 target for `std::fs::rename` 07430bf Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory 64f5201 Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available da73525 Less unwrap() in documentation 6b44775 Improve prose around into_slice example of IterMut 2e36c44 Improve prose around `as_slice` example of Iter 5140d3c Improve prose around basic examples of Iter and IterMut 949d89d Abstract `ProcThreadAttributeList` into its own struct c14564c fix `PointerLike` docs b940268 unimplement `PointerLike` for trait objects 086fa9c split up `#[rustc_deny_explicit_impl]` attribute 6b77fc6 remove reference to dangling from slice::Iter 721e98b mri: add track_caller to thread spawning methods for better backtraces 7d2cf55 fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()` b0c0bf1 Improve documentation of `element_offset` and related methods a59f3c7 Rename `elem_offset` to `element_offset` 4b1b88d docs: Mention `spare_capacity_mut()` in `Vec::set_len` ed7c545 build: Update libc version 9468563 fix typo in ptr/mod.rs 96f1502 Stabilize `#[diagnostic::do_not_recommend]` 6adf47a Use field init shorthand where possible 9e58ae5 fix(LazyCell): documentation of get[_mut] was wrong 07e0a8f 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 387771b Fix typo in uint_macros.rs e484ea7 remove obsolete comment and pub(super) visibility 9f99881 remove bounds from vec and linkedlist ExtractIf 27e1ff9 Add a range argument to vec.extract_if 8f4975c Stabilize #[coverage] attribute 1b6d528 Remove `rustc::existing_doc_keyword` lint. eb7543d Move `doc(keyword = "while")`. 35fd5c8 rustdoc-search: let From and Into be unboxed 2dea5e9 Replace i32 by char in `split_at` & `_unchecked` 1a7d114 Add clarity to the "greater" of `VecDeque::insert` 9a3b8ec Replace i32 by char to add clarity 5857574 Add value accessor methods to `Mutex` and `RwLock` 44673db std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. bf95fb3 UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc 8d42c1c UniqueRc: PinCoerceUnsized and DerefPure 50d1219 UniqueRc: comparisons and Hash beee1d6 UniqueRc: Add more trait impls. 9abb5f4 Remove support for specializing ToString outside the standard library 6a01fcc Correct spelling of CURRENT_RUSTC_VERSION 8a54b12 Add documentation for anonymous pipe module b232073 feat: clarify how to use `black_box()` e20aad1 Update includes in '/library/core/src/error.rs'; 8a6245a Fix building `std` for Hermit after `c_char` change 2814149 Fix `Path::is_absolute` on Hermit 3cd0c58 Fix typos in docs on provenance 0f11be7 Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators fedd63a Switch inline(always) in core/src/fmt/rt.rs to plain inline ad6d695 Reword prelude for AsyncFn stabilization fa41712 Stabilize async closures 6e17ac2 Remove consteval note from <*mut T>::align_offset docs. 1ca3b29 Stabilize the Rust 2024 prelude 04589bf Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files 6936a3a Move some alloc tests to the alloctests crate 17e0b25 control libunwind linkage mode via `crt-static` on gnullvm targets a0662fc Change `GetManyMutError` to match T-libs-api decision 0652319 Add references to the specific ABI documents 5950abe Remove l4re from the unsigned char operating system list 3d8ce62 De-duplicate and improve definition of core::ffi::c_char 269ff73 Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless 4b7c62a stabilize const_nonnull_new 1785724 Remove rustc_const_stable attribute on const NOOP 3657a2f Add libc funcitons only for wasm32-wasip1-threads. 7b6a5e3 Fix compilation for wasm32-wasip1 (without threads). 4e5022f Use UNIX thread_local implementation for WASI. 14614ca Run TLS destructors for wasm32-wasip1-threads ce6887f Downgrade cc 07cd76f Run `cargo update` and update licenses 4b97609 chore: Improve doc comments eac5d8e Refactor ReadDir into a state machine 05eed01 wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next 7a61684 docs: better examples for `std::ops::ControlFlow` 00006b3 Expand home_dir docs abc978e Add doc alias 'then_with' for `then` method on `bool` 43a1dd2 Adds new intrinsic declaration 64589b0 Define acronym for thread local storage 712dda5 Add a `collect_into` tuple test case ed37aa7 Don't impl Extend for 13-tuples a92ee38 Simplify documentation for Extend impl for tuples 77bc478 Add Extend impls for tuples of arity 1 through 12 78daa85 Unbreak tidy e29e39c Stabilize `std::io::ErrorKind::QuotaExceeded` 443f50e Stabilize `std::io::ErrorKind::CrossesDevices` 827daef Access members of `FormattingOptions` directly instead of via getters/setters 3fdc4c5 Removed constness for methods receiving a `&mut` parameter d28905f Added better reason for exposing `flags` and `get_flags` as unstable bad6617 Formatted 91b3404 Refactored FormattingOptions to use a bitmask for storing flags 21d3717 Revert "Turned public+unstable+hidden functions into private functions" 253cd52 Turned public+unstable+hidden functions into private functions a9ae91d Made all fns const a5074bc impl Default for fmt::FormattingOptions fd1eca3 Fixed copy+paste error in comment 32a02c5 fmt::FormattingOptions: Renamed `alignment` to `align` 7f29285 Formatter::with_options: Use different lifetimes 98913fe Fixed another broken test 66ce53a Added struct `fmt::FormattingOptions` 9d392bc Formatter: Access members via getter methods wherever possible 0702ebd Stabilize noop_waker 72edc45 Improve documentation 2e03030 Reformat Python code with `ruff` c5c2a51 Improve comments for the default backtrace printer ab2cbd9 clarify simd_relaxed_fma non-determinism a800a05 Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. be1d244 Rename `core_pattern_type` and `core_pattern_types` lib feature gates to `pattern_type_macro` 258dab4 Allow fn pointers comparisons lint in library e0b40eb Update `NonZero` and `NonNull` to not field-project (per MCP807) 6583dcc Add `core::arch::breakpoint` and test b7c6ad0 a release operation synchronizes with an acquire operation 86f0820 Update the definition of `borrowing_sub` bb323d6 stabilize const_{size,align}_of_val ecd9b26 ./x miri: fix sysroot build e450fe4 stabilize const_collections_with_hasher and build_hasher_default_const_new 025019d Match simd_relaxed_fma documentation to fmuladd intrinsic 91d7f95 Add simd_relaxed_fma intrinsic cd8867f Fix `f16::midpoint` const feature gate 2e01971 Use c"lit" for CStrings without unwrap d6ba798 Stabilize `const_maybe_uninit_write` 3f1c59a Fix docs for '<[T]>::as_array'; 0a2ae54 Stabilize `ptr::fn_addr_eq` 25fa15b rustc_allow_const_fn_unstable is not used in proc_macro bb786e4 get rid of a bunch of unnecessary rustc_const_unstable fd4b044 remove a whole bunch of unnecessary const feature gates ee8986b add isatty alias for is_terminal 70dae27 Stabilize unsigned `num_midpoint` feature b37b958 Mark `slice::copy_from_slice` unstably const c6aef10 Fix chaining `carrying_add`s 19db697 add test for bytewise ptr::swap of a pointer 9c30ff2 move swap_nonoverlapping constness to separate feature gate 9b3c313 move slice::swap_unchecked constness to slice_swap_unchecked feature gate a513619 Add diagnostic item for `std::ops::ControlFlow` 5f4a51c update link to "C++ Exceptions under the hood" blog 468ae7a fix: fix codeblocks in `PathBuf` example 3cddab3 fix: hurd build, stat64.st_fsid was renamed to st_dev 9750511 std: clarify comments about initialization 95b00fe std: refactor `pthread`-based synchronization aaa4c27 bump hashbrown version 3a9be70 Fill in a `BTreeSet::entry` example eabfb8d Add a tracking issue for `btree_set_entry` a955bed Add `BTreeSet` entry APIs to match `HashSet` a0e2eee Implement code review 3eda322 thread::available_parallelism for wasm32-wasip1-threads 2d85b33 changes old intrinsic declaration to new declaration 0a909b6 Fix and undeprecate home_dir() 0809b3f refine mir debuginfo docs fcb2927 Doc comment custom MIR debuginfo. ba3ecc8 Stabilize `extended_varargs_abi_support` 6295df0 update cfgs cd20f45 replace placeholder version 7b4cce7 Also use zero when referencing to capacity or length 14f81c5 Use consistent wording in docs, use zero instead of 0 754725a Fix typos in pin.rs fa5ddf8 Share inline(never) generics across crates 21ff4b4 fmt 7071ec8 aix: create shim for lgammaf_r 8df302f Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods; 542a3a9 Remove one stray space. 497ac2b Update chown help with a link and adding cap warning d0226cf Expand std::os::unix::fs::chown() doc with a warning 9aee14e Add missing code examples on `LocalKey` f8bb14c Make profiler_builtins `#![no_core]` instead of just `#![no_std]` 872a1ec Remove unnecessary `#![allow(unused_features)]` 6db9b58 Sort and separate lint/feature attributes in `profiler_builtins` f5e8953 std: update internal uses of `io::const_error!` 9d14ed9 std: expose `const_io_error!` as `const_error!` 3c99eaa Constify Drop and Destruct 9461af1 miri: disable test_downgrade_observe test on macOS 8204ce2 Shorten the `MaybeUninit` `Debug` implementation 0707d4f Support ranges in `<[T]>::get_many_mut()` 602117a btree: add `{Entry,VacantEntry}::insert_entry` 70f614d std::thread: avoid leading whitespace in some panic messages ce70169 Added a doc test for std::path::strip_prefix git-subtree-dir: library git-subtree-split: 0b9e7db
0b9e7db [create-pull-request] automated change f059e7f Rustfmt 29017b4 occured -> occurred f805788 Allow Rust to use a number of libc filesystem calls 014a4f7 Windows: Test that deleting a running binary fails 288094f Update platform information for remove_file 1cbc70e Windows: remove readonly files 419fb5a Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` fa42c72 Document `Sum::sum` returns additive identities for `[]` caa8321 Clean up 'HashMap' and 'HashSet' docs; 0d7271a Optimize `Rc::<str>::default()` implementation 59c1ce8 std: get rid of `sys_common::io` b762461 std: move `io` module out of `pal` 9e723f2 Move two windows process tests to tests/ui effecb5 tests(std/net): remove outdated `base_port` calculation 499fd71 sys: net: Add UEFI stubs 7960886 Remove some unnecessary parens in `assert!` conditions f5cf4cc remove use of `feature(trait_upcasting)` from core tests 3f9c9a5 Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios; 5a3b4b6 Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` 38d4193 tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes` 153a114 Fix unreachable_pub lint for hermit target 7984f24 Fix link in from_fn.rs a4c3372 Use `widening_mul` b017b75 Add OneSidedRangeBound to eliminate panic in `split_point_of` ce263a9 Rename slice::take methods to split_off 4dfb103 Update `compiler-builtins` to 0.1.145 dd3d28a specify a prim@slice in docs f549186 implement inherent str constructors 454ac7a std: move network code into `sys` 830d4ad uefi: process: Add support for command environment variables b2bd55d Mark `std::fmt::from_fn` as `#[must_use]` 667bd76 Rename rustc_contract to contract 0d5c81f Improve contracts intrisics and remove wrapper function 2fe37e3 Separate contract feature gates for the internal machinery b404184 Desugars contract into the internal AST extensions 2e62562 Express contracts as part of function header and lower it to the contract lang items 9c3c339 contracts: added lang items that act as hooks for rustc-injected code to invoke. 3a72fe1 Contracts core intrinsics. b57cfcf More PR feedback b4d438a PR feedback 953a621 Add `unchecked_disjoint_bitor` with fallback intrinsic implementation 939e4bb Add note about `FnPtr` being exposed as public bound 9e85484 Add `cast_signed` and `cast_unsigned` methods for `NonZero` types 01e4bd7 For NonZero impl macros, give unsigned impls access to the corresponding signed type 3145ee6 std::fs: further simplify dirent64 handling 8dafc28 add UnsafeCell direct access APIs 682a575 primitive type migration from mod.rs to primitives.rs 2ec42e4 implement unstable `new_range` feature 4072f33 std::range cdd8d4e Remove stabilized feature gate 350545d Move env modifying tests to a separate integration test 11b6c6a Fix for SGX 334c705 Fix benchmarking of libstd 78f6fc7 Move std::sync unit tests to integration tests 60c3720 Move std::thread_local unit tests to integration tests 179bb75 Move std::time unit tests to integration tests e26eb65 Move std::path unit tests to integration tests fcbf7a3 Move std::panic unit tests to integration tests 6f8c5c7 Move std::num unit tests to integration tests df99531 Move std float unit tests to integration tests cb75c03 Move std::error unit tests to integration tests 08d046c Move std::env unit tests to integration tests db46a3b no unsafe pointer and no overflowing_literals in fmt::Display of integers 129af80 black_box integer-input on fmt benches ab1177f OnceCell & OnceLock docs: Using (un)initialized consistently f945007 Docs for f16 and f128: correct a typo and add details ba5ff80 rustc_allowed_through_unstable_modules: require deprecation message 4c7a1b5 Update encode_utf16 to mention it is native endian 2a5ceb7 remove Rustc{En,De}codable from library and compiler c7a5b34 make rustc_encodable_decodable feature properly unstable 3866288 Fix sentence in process::abort d45e877 document ptr comparison being by address e9388ea stabilize `once_wait` c3bd3dd implement all min/max fns in terms of `<`/`is_lt` 9537f68 improve doc tests for (min/max/minmax).* functions b9a984a docs: Documented Send and Sync requirements for Mutex + MutexGuard 0764fa5 Add documentation for derive(CoercePointee) c5f1867 Fix off-by-one error causing driftsort to crash 7bfe9c9 Insert null checks for pointer dereferences when debug assertions are enabled 8564335 atomic: extend compare_and_swap migration docs c95ac30 float::min/max: mention the non-determinism around signed 0 ce31fd9 Stabilize `const_black_box` 7fbae89 Improve documentation for file locking fd6c67e Remove minor future footgun in `impl Debug for MaybeUninit` 1a3fc3e Add `AsyncFn*` to core prelude 778b886 uefi: Implement path 7f3d223 Implement `int_from_ascii` (rust-lang#134821) c48b602 Cleanup docs for Allocator 2072889 btree/node.rs: pop_internal_level: does not invalidate other handles 2e09211 btree/node.rs: remove incorrect comment from pop_internal_level docs 54e4132 add inline attribute and codegen test ae4ab8d split slice::ptr_rotate into three separate algorithms, to hopefully help inlining 4b82818 optimize slice::ptr_rotate for compile-time-constant small rotates 6127357 Test pipes also when not running on Windows and Linux simultaneously f744234 uefi: process: Fix args 2426aa2 [cfg_match] Document the use of expressions 386689a Update comments and sort target_arch in c_char_definition a2da226 [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items d70d068 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent 3ff6a84 Document powf and powi calls that always return 1.0 c712283 Document purpose of closure in from_fn.rs more clearly 62aef6a add missing allocator safety in alloc crate c045cb9 alloc: add `#![warn(unreachable_pub)]` 6fec5e2 Implement `AtomicT::update` & `AtomicT::try_update` 8c6a8ef fix doc for std::sync::mpmc bb2367b Implement phantom variance markers 1887e8b Clarify WindowsMut (Lending)Iterator f82e364 compiler_fence: fix example 328866d Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location 73169e3 Move `std::io::pipe` code into its own file 4b3b41d Actually run the bstr test 6ca64ff Update comment cd2b90a Put all coretests in a separate crate 2fe2be8 Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls 2d4d2cd add nto80 x86-64 and aarch64 target 1f5f5a6 Add support for QNX 7.1 with io-sock on x64 e3249e7 Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64 df89792 Update a bunch of comments from before wasi support was added 5998db2 Remove a bunch of emscripten test ignores 9919521 Fix testing of the standard library with Emscripten a27c059 fix(libtest): Deprecate '--logfile' d64e054 docs: fix typo in std::pin overview 9aeac8c ports last few library files to new intrinsic style b2ec24f Improve and expand documentation of pipes e81a9b7 Fix set_name in thread mod for NuttX 067e77e Fix `FormattingOptions` instantiation with `Default` c847e44 Update library/core/src/num/nonzero.rs ea8c3cd Add memory layout documentation to generic NonZero<T> c85dcdf Fix whitespace a7685f1 document order of items in iterator from drain d8c1039 Add `File already exists` error doc to `hard_link` function b170e81 Doc difference between extend and extend_from_slice 098d0a3 Make `Vec::pop_if` a bit more presentable c7491b0 Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if` e5bad03 remove pointless allowed_through_unstable_modules on TryFromSliceError e1b82ec test: add `#![warn(unreachable_pub)]` e26f831 proc_macro: add `#![warn(unreachable_pub)]` 6817ff0 Implement `CloneToUninit` for `ByteStr` b5355d9 Add doc aliases for BStr and BString 05755b6 Omit some more `From` impls to avoid inference failures d8a009a Support `no_rc`, `no_sync`, and `no_global_oom_handling` afa439f Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100 03b25cb Implement `ByteStr` and `ByteString` types 687094a Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut` 16620b9 Library: Finalize dyn compatibility renaming 437c97c Remove test panic from File::open 299e014 fix OsString::from_encoded_bytes_unchecked description b41b9a9 Add an example of using `carrying_mul_add` to write wider multiplication fca61b1 Outline panicking code for `LocalKey::with` da43443 core: `#[allow(unreachable_pub)]` on unreachable `pub use` e61b304 core: add `#![warn(unreachable_pub)]` 5cffae3 rtstartup: add `#![warn(unreachable_pub)]` 325bc46 panic_unwind: add `#![warn(unreachable_pub)]` 0d1ed84 Recognise new IPv6 documentation range from RFC9637 def732c 1. Removed 'rustc_nounwind' 2. Rewording of comments 2721b88 Export likely(), unlikely() and cold_path() in std::hint d663fae Correct counting to four in cell module docs 109002f doc: Point to methods on `Command` as alternatives to `set/remove_var` 8cd5f62 wasi/io: remove dead files 7761adb remove unnecessary rustc_allowed_through_unstable_modules f05c8ed further improve panic_immediate_abort by removing rtprintpanic messages 32dd115 cargo update 2fc6443 Rewrap following accepting review suggestions from @ibraheemdev 1a5db82 Update library/core/src/slice/mod.rs 0ae3097 Update library/core/src/slice/mod.rs 462fdbe Update library/core/src/slice/mod.rs 0614fb0 Update library/core/src/slice/mod.rs 5b97407 Update library/core/src/slice/mod.rs 022b497 Update library/core/src/slice/mod.rs 3a94fae Update library/core/src/slice/mod.rs e580ead Update library/core/src/slice/mod.rs be633eb Update library/core/src/slice/mod.rs abf598e Update library/core/src/slice/mod.rs f053fc4 `then be` -> `be` based on feedback from @ibraheemdev e25fb35 Improve `select_nth_unstable` documentation clarity 23a42dc Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper" cf73ee0 Add references to the IEEE functions for `float_next_up_down` e1b34be Stabilize `float_next_up_down` bdb6b9c Fix import of pipe in kernel_copy.rs 635777b Move `std::pipe::*` into `std::io` c4c099e Clarify note in `std::sync::LazyLock` example 4138f0f fix typo in library/alloc/src/sync.rs e84d1ed Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count' 6913a98 Adjust syntax 7d7fce0 Less unsafe in `dangling`/`without_provenance` 55e633d fix typo in typenames of pin documentation d8f420f intrinsics: deprecate calling them via the unstable std::intrinsics path 93a4ed4 add comments explaining main thread identification b510797 std: lazily allocate the main thread handle 15b8539 Revert "Remove the Arc rt::init allocation for thread info" 1ed2d58 Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`. ba3bc2f Update compiler-builtins to 0.1.143 c341a47 Rename `pos` to `position` 809d626 Convert `struct FromBytesWithNulError` into enum fd23a66 Enforce syntactical stability of const traits in HIR 26b1e1e Update compiler-builtins to 0.1.141 01e1781 Add another `Vec::splice` example b0d4ae7 avoid nesting the user-defined main so deeply on the stack bccd406 use a single large catch_unwind in lang_start 1abc128 uefi: helpers: Introduce OwnedDevicePath 0951f12 path: Move is_absolute check to sys::path ca99942 Update the explanation for why we use box_new in vec! 06e96a5 Add #[inline] to copy_from_slice f3d4a4e Add inherent versions of MaybeUninit methods for slices d01e0c8 Make UniqueRc invariant for soundness debcb38 update and clarify StructuralPartialEq docs e158c6a Use `NonNull::without_provenance` within the standard library 5054a17 Initial fs module for uefi 36f3dfc Improve the safety documentation on new_unchecked 5b8ac3d Update a bunch of library types for MCP807 e4d894a alloc: remove unsound `IsZero` for raw pointers 3d9dd4e Fix `proc_macro::quote!` for raw ident 3b536f1 Append `TokenTree` with `ToTokens` in `proc_macro::quote!` 14f03c7 Rename the internal simpler `quote` macro to `minimal_quote` 196be4e Used pthread name functions returning result for FreeBSD and DragonFly 45dbc07 Fix ptr::from_ref documentation example comment 34d7ff8 Improve prose around `as_slice` example of IterMut 31c3cd2 fmt 8c7eee1 update cfg(bootstrap) 57b242a update version placeholders f72435b Remove some unnecessary `.into()` calls ae0d07e add missing provenance APIs on NonNull ce0646c More compelling env_clear() examples 0b18c05 Implement Condvar::wait_timeout for targets without threads 6f6f711 Impl String::into_chars 01acc35 Avoid naming variables `str` 42c746f [generic_assert] Constify methods used by the formatting system 367da05 Add support for wasm exception handling to Emscripten target a4abafe chore: remove redundant words in comment 290c47e Add doc aliases for `libm` and IEEE names af0b52e Mark `slice::reverse` unstably const 9450e58 Clarified the documentation on core::iter::from_fn and core::iter::successors 33dbeb0 library: fix adler{-> 2}.debug ae03076 add regression test for unsound Flatten/FlatMap specialization 1d9a7b5 do not in-place-iterate over flatmap/flatten 277fe76 Fix UWP build a8fc346 Bump backtrace to 0.3.75 87320a9 sync to actual dep verions of backtrace f3304cd turn rustc_box into an intrinsic 35eeef9 core: use public method instead of instrinsic 0016e59 core: improve comments f33ea4b core: implement `bool::select_unpredictable` 0a9c541 Switch rtems target to panic unwind 20a0630 path in detail 7d16d90 Move some things to `std::sync::poison` and reexport them in `std::sync` 3cbf713 Bump backtrace to rust-lang/backtrace-rs@4d7906b fa7a493 Try to write the panic message with a single `write_all` call 2e008d6 fix doc for missing Box allocator consistency 46a0479 Remove qualification of `std::cmp::Ordering` in `Ord` doc 01fcc39 std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten ce148e6 Avoid use of LFS64 symbols on Emscripten 38f97ec char to_digit: avoid unnecessary casts to u64 9b6bf23 Remove allowing static_mut_refs lint 9c0eb4e Tidy up bigint mul methods 4b26493 fix doc for read write unaligned in zst operation 6243582 Avoid short writes in LineWriter d44006f ptr docs: make it clear that we are talking only about memory accesses 35ec41a Make slice::as_flattened_mut unstably const 11db185 rename typed_swap → typed_swap_nonoverlapping d636681 stabilize const_swap 5d3ad9a fix: typos 62c5c26 Fix sentence fragment in `pin` module docs 9a934c1 docs: inline `alloc::ffi::c_str` types to `alloc::ffi` a6b3f09 Fix compilation issues on other unixes d0f1af9 Eliminate redundant statx syscalls be3774f Unify fs::copy and io::copy 20e3c58 Update `compiler-builtins` to 0.1.140 0eebba5 Update library/alloc/tests/sort/tests.rs 757571e Fix typos 0398164 Override `carrying_mul_add` in cg_llvm 4748524 Move `{widening, carrying}_mul` to an intrinsic with fallback MIR 718f7b2 Fix mistake in windows file open 733408a Windows: Use WriteFile to write to a UTF-8 console 80dfbf1 ptr::copy: fix docs for the overlapping case 5b41e79 Fix renaming symlinks on Windows 21fd94e docs: inline `core::ffi::c_str` types to `core::ffi` 14b4a44 docs: inline `std::ffi::c_str` types to `std::ffi` 4e70568 unwinding: bump version to fix asm 8e2254c docs: update code example for Iterator#rposition 3f1dd8f Use scoped threads in `std::sync::Barrier` examples a536bc6 Fix forgetting to save statx availability on success 0e00943 Specify only that duplicates are discarded, not the order. aca9dc1 Document collection `From` and `FromIterator` impls that drop duplicate keys. 92ad20f Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc'; 149fcf9 Impl FromIterator for tuples with arity 1-12 bff596c Fix formatting b65ce37 stabilize const_alloc_layout 95b8f8d chore: fix typos 1065b32 Windows: Use FILE_ALLOCATION_INFO for truncation 7124a6e Bump `stdarch` 48f4c8e core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type a086f15 Fixes safety docs for `dyn Any + Send {+ Sync}` ba57b16 Use `#[derive(Default)]` instead of manually implementing it fb6e914 Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" da4d985 Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`. f6d97a5 docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code 6fe097d docs: Permissions.readonly() also ignores root user special permissions db86977 cargo update 307ebab Delete `Rvalue::Len` 2f2c17f Asserts the maximum value that can be returned from `Vec::len` 79ab9db Document `PointerLike` implementation restrictions. 3ee2730 Use `&raw` for `ptr` primitive docs 57096ff Add `is_ascii` function optimized for x86-64 for [u8] 5c5bf83 Add new implementation benchmark 790fc9a Document CTFE behavior of methods that call is_null 6822f3f Correctly document is_null CTFE behavior. 76cb181 Win: rename: Use offset_of! in struct size calculation d7ec7cf Win: Remove special casing of the win7 target for `std::fs::rename` 07430bf Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory 64f5201 Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available da73525 Less unwrap() in documentation 6b44775 Improve prose around into_slice example of IterMut 2e36c44 Improve prose around `as_slice` example of Iter 5140d3c Improve prose around basic examples of Iter and IterMut 949d89d Abstract `ProcThreadAttributeList` into its own struct c14564c fix `PointerLike` docs b940268 unimplement `PointerLike` for trait objects 086fa9c split up `#[rustc_deny_explicit_impl]` attribute 6b77fc6 remove reference to dangling from slice::Iter 721e98b mri: add track_caller to thread spawning methods for better backtraces 7d2cf55 fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()` b0c0bf1 Improve documentation of `element_offset` and related methods a59f3c7 Rename `elem_offset` to `element_offset` 4b1b88d docs: Mention `spare_capacity_mut()` in `Vec::set_len` ed7c545 build: Update libc version 9468563 fix typo in ptr/mod.rs 96f1502 Stabilize `#[diagnostic::do_not_recommend]` 6adf47a Use field init shorthand where possible 9e58ae5 fix(LazyCell): documentation of get[_mut] was wrong 07e0a8f 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 387771b Fix typo in uint_macros.rs e484ea7 remove obsolete comment and pub(super) visibility 9f99881 remove bounds from vec and linkedlist ExtractIf 27e1ff9 Add a range argument to vec.extract_if 8f4975c Stabilize #[coverage] attribute 1b6d528 Remove `rustc::existing_doc_keyword` lint. eb7543d Move `doc(keyword = "while")`. 35fd5c8 rustdoc-search: let From and Into be unboxed 2dea5e9 Replace i32 by char in `split_at` & `_unchecked` 1a7d114 Add clarity to the "greater" of `VecDeque::insert` 9a3b8ec Replace i32 by char to add clarity 5857574 Add value accessor methods to `Mutex` and `RwLock` 44673db std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. bf95fb3 UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc 8d42c1c UniqueRc: PinCoerceUnsized and DerefPure 50d1219 UniqueRc: comparisons and Hash beee1d6 UniqueRc: Add more trait impls. 9abb5f4 Remove support for specializing ToString outside the standard library 6a01fcc Correct spelling of CURRENT_RUSTC_VERSION 8a54b12 Add documentation for anonymous pipe module b232073 feat: clarify how to use `black_box()` e20aad1 Update includes in '/library/core/src/error.rs'; 8a6245a Fix building `std` for Hermit after `c_char` change 2814149 Fix `Path::is_absolute` on Hermit 3cd0c58 Fix typos in docs on provenance 0f11be7 Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators fedd63a Switch inline(always) in core/src/fmt/rt.rs to plain inline ad6d695 Reword prelude for AsyncFn stabilization fa41712 Stabilize async closures 6e17ac2 Remove consteval note from <*mut T>::align_offset docs. 1ca3b29 Stabilize the Rust 2024 prelude 04589bf Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files 6936a3a Move some alloc tests to the alloctests crate 17e0b25 control libunwind linkage mode via `crt-static` on gnullvm targets a0662fc Change `GetManyMutError` to match T-libs-api decision 0652319 Add references to the specific ABI documents 5950abe Remove l4re from the unsigned char operating system list 3d8ce62 De-duplicate and improve definition of core::ffi::c_char 269ff73 Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless 4b7c62a stabilize const_nonnull_new 1785724 Remove rustc_const_stable attribute on const NOOP 3657a2f Add libc funcitons only for wasm32-wasip1-threads. 7b6a5e3 Fix compilation for wasm32-wasip1 (without threads). 4e5022f Use UNIX thread_local implementation for WASI. 14614ca Run TLS destructors for wasm32-wasip1-threads ce6887f Downgrade cc 07cd76f Run `cargo update` and update licenses 4b97609 chore: Improve doc comments eac5d8e Refactor ReadDir into a state machine 05eed01 wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next 7a61684 docs: better examples for `std::ops::ControlFlow` 00006b3 Expand home_dir docs abc978e Add doc alias 'then_with' for `then` method on `bool` 43a1dd2 Adds new intrinsic declaration 64589b0 Define acronym for thread local storage 712dda5 Add a `collect_into` tuple test case ed37aa7 Don't impl Extend for 13-tuples a92ee38 Simplify documentation for Extend impl for tuples 77bc478 Add Extend impls for tuples of arity 1 through 12 78daa85 Unbreak tidy e29e39c Stabilize `std::io::ErrorKind::QuotaExceeded` 443f50e Stabilize `std::io::ErrorKind::CrossesDevices` 827daef Access members of `FormattingOptions` directly instead of via getters/setters 3fdc4c5 Removed constness for methods receiving a `&mut` parameter d28905f Added better reason for exposing `flags` and `get_flags` as unstable bad6617 Formatted 91b3404 Refactored FormattingOptions to use a bitmask for storing flags 21d3717 Revert "Turned public+unstable+hidden functions into private functions" 253cd52 Turned public+unstable+hidden functions into private functions a9ae91d Made all fns const a5074bc impl Default for fmt::FormattingOptions fd1eca3 Fixed copy+paste error in comment 32a02c5 fmt::FormattingOptions: Renamed `alignment` to `align` 7f29285 Formatter::with_options: Use different lifetimes 98913fe Fixed another broken test 66ce53a Added struct `fmt::FormattingOptions` 9d392bc Formatter: Access members via getter methods wherever possible 0702ebd Stabilize noop_waker 72edc45 Improve documentation 2e03030 Reformat Python code with `ruff` c5c2a51 Improve comments for the default backtrace printer ab2cbd9 clarify simd_relaxed_fma non-determinism a800a05 Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. be1d244 Rename `core_pattern_type` and `core_pattern_types` lib feature gates to `pattern_type_macro` 258dab4 Allow fn pointers comparisons lint in library e0b40eb Update `NonZero` and `NonNull` to not field-project (per MCP807) 6583dcc Add `core::arch::breakpoint` and test b7c6ad0 a release operation synchronizes with an acquire operation 86f0820 Update the definition of `borrowing_sub` bb323d6 stabilize const_{size,align}_of_val ecd9b26 ./x miri: fix sysroot build e450fe4 stabilize const_collections_with_hasher and build_hasher_default_const_new 025019d Match simd_relaxed_fma documentation to fmuladd intrinsic 91d7f95 Add simd_relaxed_fma intrinsic cd8867f Fix `f16::midpoint` const feature gate 2e01971 Use c"lit" for CStrings without unwrap d6ba798 Stabilize `const_maybe_uninit_write` 3f1c59a Fix docs for '<[T]>::as_array'; 0a2ae54 Stabilize `ptr::fn_addr_eq` 25fa15b rustc_allow_const_fn_unstable is not used in proc_macro bb786e4 get rid of a bunch of unnecessary rustc_const_unstable fd4b044 remove a whole bunch of unnecessary const feature gates ee8986b add isatty alias for is_terminal 70dae27 Stabilize unsigned `num_midpoint` feature b37b958 Mark `slice::copy_from_slice` unstably const c6aef10 Fix chaining `carrying_add`s 19db697 add test for bytewise ptr::swap of a pointer 9c30ff2 move swap_nonoverlapping constness to separate feature gate 9b3c313 move slice::swap_unchecked constness to slice_swap_unchecked feature gate a513619 Add diagnostic item for `std::ops::ControlFlow` 5f4a51c update link to "C++ Exceptions under the hood" blog 468ae7a fix: fix codeblocks in `PathBuf` example 3cddab3 fix: hurd build, stat64.st_fsid was renamed to st_dev 9750511 std: clarify comments about initialization 95b00fe std: refactor `pthread`-based synchronization aaa4c27 bump hashbrown version 3a9be70 Fill in a `BTreeSet::entry` example eabfb8d Add a tracking issue for `btree_set_entry` a955bed Add `BTreeSet` entry APIs to match `HashSet` a0e2eee Implement code review 3eda322 thread::available_parallelism for wasm32-wasip1-threads 2d85b33 changes old intrinsic declaration to new declaration 0a909b6 Fix and undeprecate home_dir() 0809b3f refine mir debuginfo docs fcb2927 Doc comment custom MIR debuginfo. ba3ecc8 Stabilize `extended_varargs_abi_support` 6295df0 update cfgs cd20f45 replace placeholder version 7b4cce7 Also use zero when referencing to capacity or length 14f81c5 Use consistent wording in docs, use zero instead of 0 754725a Fix typos in pin.rs fa5ddf8 Share inline(never) generics across crates 21ff4b4 fmt 7071ec8 aix: create shim for lgammaf_r 8df302f Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods; 542a3a9 Remove one stray space. 497ac2b Update chown help with a link and adding cap warning d0226cf Expand std::os::unix::fs::chown() doc with a warning 9aee14e Add missing code examples on `LocalKey` f8bb14c Make profiler_builtins `#![no_core]` instead of just `#![no_std]` 872a1ec Remove unnecessary `#![allow(unused_features)]` 6db9b58 Sort and separate lint/feature attributes in `profiler_builtins` f5e8953 std: update internal uses of `io::const_error!` 9d14ed9 std: expose `const_io_error!` as `const_error!` 3c99eaa Constify Drop and Destruct 9461af1 miri: disable test_downgrade_observe test on macOS 8204ce2 Shorten the `MaybeUninit` `Debug` implementation 0707d4f Support ranges in `<[T]>::get_many_mut()` 602117a btree: add `{Entry,VacantEntry}::insert_entry` 70f614d std::thread: avoid leading whitespace in some panic messages ce70169 Added a doc test for std::path::strip_prefix git-subtree-dir: library git-subtree-split: 0b9e7db
fb940b2 [create-pull-request] automated change 5315a10 Rustfmt 00b957a occured -> occurred 6aba468 Allow Rust to use a number of libc filesystem calls 43d2be3 Windows: Test that deleting a running binary fails 5105b9d Update platform information for remove_file 3cdbde4 Windows: remove readonly files 60c7dc3 Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` 084eb8c Document `Sum::sum` returns additive identities for `[]` 037071c Clean up 'HashMap' and 'HashSet' docs; b8aaaab Optimize `Rc::<str>::default()` implementation 3d4fd97 std: get rid of `sys_common::io` 66a398d std: move `io` module out of `pal` f935957 Move two windows process tests to tests/ui dbb9599 tests(std/net): remove outdated `base_port` calculation 005b648 sys: net: Add UEFI stubs 1a0b116 Remove some unnecessary parens in `assert!` conditions 79e9c9c remove use of `feature(trait_upcasting)` from core tests dfbead9 Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios; c74941b Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` bfc517c tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes` 1cda7a3 Fix unreachable_pub lint for hermit target 44909d6 Fix link in from_fn.rs dc1dbc2 Use `widening_mul` 3895220 Add OneSidedRangeBound to eliminate panic in `split_point_of` 4fb94e0 Rename slice::take methods to split_off 25153a7 Update `compiler-builtins` to 0.1.145 d702bd6 specify a prim@slice in docs 4203c4e implement inherent str constructors 3ec4981 std: move network code into `sys` 6c16060 uefi: process: Add support for command environment variables d9200a2 Mark `std::fmt::from_fn` as `#[must_use]` 4ea09c2 Rename rustc_contract to contract c830dce Improve contracts intrisics and remove wrapper function fa69801 Separate contract feature gates for the internal machinery 45af03c Desugars contract into the internal AST extensions d317430 Express contracts as part of function header and lower it to the contract lang items 1d461d0 contracts: added lang items that act as hooks for rustc-injected code to invoke. 2cb9f38 Contracts core intrinsics. a1abbbf More PR feedback cf3d55b PR feedback 10112c1 Add `unchecked_disjoint_bitor` with fallback intrinsic implementation e70ccdf Add note about `FnPtr` being exposed as public bound ebbccd8 Add `cast_signed` and `cast_unsigned` methods for `NonZero` types b57fbff For NonZero impl macros, give unsigned impls access to the corresponding signed type d5ddef8 std::fs: further simplify dirent64 handling eea9504 add UnsafeCell direct access APIs 0358fc6 primitive type migration from mod.rs to primitives.rs 5f3a8c6 implement unstable `new_range` feature 3b626e4 std::range 6ece567 Remove stabilized feature gate 9c7b2db Move env modifying tests to a separate integration test 9ede70a Fix for SGX 633e60c Fix benchmarking of libstd 89394bf Move std::sync unit tests to integration tests e2e3170 Move std::thread_local unit tests to integration tests e5f318b Move std::time unit tests to integration tests aac00bb Move std::path unit tests to integration tests 41671e2 Move std::panic unit tests to integration tests a8be4d4 Move std::num unit tests to integration tests d600e45 Move std float unit tests to integration tests 4cf5e5e Move std::error unit tests to integration tests 7f5620c Move std::env unit tests to integration tests 9c9ae70 no unsafe pointer and no overflowing_literals in fmt::Display of integers 475ac25 black_box integer-input on fmt benches 752d95f OnceCell & OnceLock docs: Using (un)initialized consistently 5b4b6ef Docs for f16 and f128: correct a typo and add details 8570c08 rustc_allowed_through_unstable_modules: require deprecation message eed1db7 Update encode_utf16 to mention it is native endian 6547b2f remove Rustc{En,De}codable from library and compiler fa88ed2 make rustc_encodable_decodable feature properly unstable a46e4db Fix sentence in process::abort 03b1069 document ptr comparison being by address 28cf5db stabilize `once_wait` 2317bdb implement all min/max fns in terms of `<`/`is_lt` 9c4bcd2 improve doc tests for (min/max/minmax).* functions 56706c6 docs: Documented Send and Sync requirements for Mutex + MutexGuard 0e23c5f Add documentation for derive(CoercePointee) 2ad5676 Fix off-by-one error causing driftsort to crash e5ca833 Insert null checks for pointer dereferences when debug assertions are enabled 5e4cfda atomic: extend compare_and_swap migration docs 06e2aa9 float::min/max: mention the non-determinism around signed 0 7f89641 Stabilize `const_black_box` 84eb74f Improve documentation for file locking f7758ac Remove minor future footgun in `impl Debug for MaybeUninit` 6d7cd66 Add `AsyncFn*` to core prelude 04c0485 uefi: Implement path f058e6f Implement `int_from_ascii` (rust-lang#134821) 6e7d1d8 Cleanup docs for Allocator 4b5fb81 btree/node.rs: pop_internal_level: does not invalidate other handles 9a288d9 btree/node.rs: remove incorrect comment from pop_internal_level docs ed98191 add inline attribute and codegen test c49a2c3 split slice::ptr_rotate into three separate algorithms, to hopefully help inlining 0851815 optimize slice::ptr_rotate for compile-time-constant small rotates f575955 Test pipes also when not running on Windows and Linux simultaneously c032899 uefi: process: Fix args 74bf5d9 [cfg_match] Document the use of expressions 21f52fd Update comments and sort target_arch in c_char_definition d5576f2 [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items b8a9621 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent 1931e07 Document powf and powi calls that always return 1.0 eef6596 Document purpose of closure in from_fn.rs more clearly 6a46153 add missing allocator safety in alloc crate 238ee1d alloc: add `#![warn(unreachable_pub)]` d35a120 Implement `AtomicT::update` & `AtomicT::try_update` 8907df0 fix doc for std::sync::mpmc f9db01b Implement phantom variance markers b989e96 Clarify WindowsMut (Lending)Iterator d8cd66f compiler_fence: fix example 8bbff9a Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location 2e81d87 Move `std::io::pipe` code into its own file cb36f36 Actually run the bstr test 08c8df1 Update comment 0472fb9 Put all coretests in a separate crate f4a54ce Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls ce8a878 add nto80 x86-64 and aarch64 target f347bb0 Add support for QNX 7.1 with io-sock on x64 c7f28cb Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64 78c5136 Update a bunch of comments from before wasi support was added 2020bfa Remove a bunch of emscripten test ignores a9edef8 Fix testing of the standard library with Emscripten 2ae4427 fix(libtest): Deprecate '--logfile' 4ff2571 docs: fix typo in std::pin overview d800b15 ports last few library files to new intrinsic style 5387d34 Improve and expand documentation of pipes 6da4a36 Fix set_name in thread mod for NuttX 1a5d14c Fix `FormattingOptions` instantiation with `Default` 528295a Update library/core/src/num/nonzero.rs 2addb79 Add memory layout documentation to generic NonZero<T> 28a9af1 Fix whitespace 91bc6fb document order of items in iterator from drain 3823051 Add `File already exists` error doc to `hard_link` function 58e6731 Doc difference between extend and extend_from_slice cbdf743 Make `Vec::pop_if` a bit more presentable 23b6b11 Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if` 5304127 remove pointless allowed_through_unstable_modules on TryFromSliceError 4953e04 test: add `#![warn(unreachable_pub)]` 75d4484 proc_macro: add `#![warn(unreachable_pub)]` 899459d Implement `CloneToUninit` for `ByteStr` d51a68b Add doc aliases for BStr and BString 1d36a36 Omit some more `From` impls to avoid inference failures b1fa20a Support `no_rc`, `no_sync`, and `no_global_oom_handling` 296f8f0 Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100 dc57d70 Implement `ByteStr` and `ByteString` types 9325dc2 Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut` a0bb8e9 Library: Finalize dyn compatibility renaming 3783130 Remove test panic from File::open ee63277 fix OsString::from_encoded_bytes_unchecked description 8b4e726 Add an example of using `carrying_mul_add` to write wider multiplication 58bd9c6 Outline panicking code for `LocalKey::with` 38c4fe5 core: `#[allow(unreachable_pub)]` on unreachable `pub use` 9c70db0 core: add `#![warn(unreachable_pub)]` 8e833ae rtstartup: add `#![warn(unreachable_pub)]` 66397a2 panic_unwind: add `#![warn(unreachable_pub)]` 74fe7ce Recognise new IPv6 documentation range from RFC9637 b127f47 1. Removed 'rustc_nounwind' 2. Rewording of comments 4b1b64b Export likely(), unlikely() and cold_path() in std::hint 36d7d91 Correct counting to four in cell module docs 648b011 doc: Point to methods on `Command` as alternatives to `set/remove_var` 620b4ae wasi/io: remove dead files 80cf5fa remove unnecessary rustc_allowed_through_unstable_modules aeb8fba further improve panic_immediate_abort by removing rtprintpanic messages fe26dab cargo update 8ff3823 Rewrap following accepting review suggestions from @ibraheemdev 01bfa77 Update library/core/src/slice/mod.rs f6725a3 Update library/core/src/slice/mod.rs 02f1178 Update library/core/src/slice/mod.rs b378077 Update library/core/src/slice/mod.rs 2d00b27 Update library/core/src/slice/mod.rs 03b69bb Update library/core/src/slice/mod.rs a0e8389 Update library/core/src/slice/mod.rs 2e4a130 Update library/core/src/slice/mod.rs 6d683af Update library/core/src/slice/mod.rs e5aac6d Update library/core/src/slice/mod.rs 5fcd5f1 `then be` -> `be` based on feedback from @ibraheemdev b645984 Improve `select_nth_unstable` documentation clarity 0cd2052 Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper" 53db592 Add references to the IEEE functions for `float_next_up_down` 254b5a5 Stabilize `float_next_up_down` ce067fc Fix import of pipe in kernel_copy.rs d46e787 Move `std::pipe::*` into `std::io` c1cb743 Clarify note in `std::sync::LazyLock` example baf95f5 fix typo in library/alloc/src/sync.rs 3cb210e Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count' 6ae3855 Adjust syntax e68b17a Less unsafe in `dangling`/`without_provenance` 7f634a8 fix typo in typenames of pin documentation c8f5cf5 intrinsics: deprecate calling them via the unstable std::intrinsics path abf1e47 add comments explaining main thread identification f1de75c std: lazily allocate the main thread handle 1b33103 Revert "Remove the Arc rt::init allocation for thread info" d18398a Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`. 6f20552 Update compiler-builtins to 0.1.143 d84c54a Rename `pos` to `position` 271650f Convert `struct FromBytesWithNulError` into enum a487c5b Enforce syntactical stability of const traits in HIR 29b2d16 Update compiler-builtins to 0.1.141 9c64fdb Add another `Vec::splice` example fa08333 avoid nesting the user-defined main so deeply on the stack 614c89e use a single large catch_unwind in lang_start 474f53b uefi: helpers: Introduce OwnedDevicePath b22229f path: Move is_absolute check to sys::path 2d8f9b4 Update the explanation for why we use box_new in vec! 1088f7b Add #[inline] to copy_from_slice 7266d53 Add inherent versions of MaybeUninit methods for slices be0e6e7 Make UniqueRc invariant for soundness 279d703 update and clarify StructuralPartialEq docs 25e847a Use `NonNull::without_provenance` within the standard library f920561 Initial fs module for uefi 5a54af2 Improve the safety documentation on new_unchecked 1d2a381 Update a bunch of library types for MCP807 dac14f2 alloc: remove unsound `IsZero` for raw pointers a0edfb7 Fix `proc_macro::quote!` for raw ident 2b3bfbd Append `TokenTree` with `ToTokens` in `proc_macro::quote!` 7d3dc06 Rename the internal simpler `quote` macro to `minimal_quote` 7e2ae35 Used pthread name functions returning result for FreeBSD and DragonFly 183510d Fix ptr::from_ref documentation example comment 9e6ca7c Improve prose around `as_slice` example of IterMut 6a5b462 fmt ed2fd8a update cfg(bootstrap) fbd1be8 update version placeholders 0826751 Remove some unnecessary `.into()` calls 1b35f3c add missing provenance APIs on NonNull 62a1acb More compelling env_clear() examples ab5cbd7 Implement Condvar::wait_timeout for targets without threads ebc3a4e Impl String::into_chars 91d36bc Avoid naming variables `str` f56a9c3 [generic_assert] Constify methods used by the formatting system fddd801 Add support for wasm exception handling to Emscripten target a5df901 chore: remove redundant words in comment 5847b30 Add doc aliases for `libm` and IEEE names 19f81f0 Mark `slice::reverse` unstably const 638e950 Clarified the documentation on core::iter::from_fn and core::iter::successors 6d5a15f library: fix adler{-> 2}.debug f7fdb20 add regression test for unsound Flatten/FlatMap specialization 0e95294 do not in-place-iterate over flatmap/flatten 82a601f Fix UWP build d6617cb Bump backtrace to 0.3.75 b7b61c0 sync to actual dep verions of backtrace a5f78e0 turn rustc_box into an intrinsic efd72ae core: use public method instead of instrinsic c576f41 core: improve comments 863f925 core: implement `bool::select_unpredictable` 48b3399 Switch rtems target to panic unwind e7d76d9 path in detail ee6faf1 Move some things to `std::sync::poison` and reexport them in `std::sync` e861eac Bump backtrace to rust-lang/backtrace-rs@4d7906b b197ed6 Try to write the panic message with a single `write_all` call 78cb87a fix doc for missing Box allocator consistency 5185280 Remove qualification of `std::cmp::Ordering` in `Ord` doc 48e065a std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten 4b5abfd Avoid use of LFS64 symbols on Emscripten 9489757 char to_digit: avoid unnecessary casts to u64 f75f6a2 Remove allowing static_mut_refs lint 7004071 Tidy up bigint mul methods 8dc10e5 fix doc for read write unaligned in zst operation 563f7d3 Avoid short writes in LineWriter 5026505 ptr docs: make it clear that we are talking only about memory accesses abc910a Make slice::as_flattened_mut unstably const 7b5e590 rename typed_swap → typed_swap_nonoverlapping d690fe4 stabilize const_swap b4d8b19 fix: typos 09ca9e3 Fix sentence fragment in `pin` module docs b67a358 docs: inline `alloc::ffi::c_str` types to `alloc::ffi` 6e5d5ba Fix compilation issues on other unixes 7c42423 Eliminate redundant statx syscalls 866418b Unify fs::copy and io::copy 5e3c742 Update `compiler-builtins` to 0.1.140 a0798b7 Update library/alloc/tests/sort/tests.rs c240617 Fix typos 929ca0c Override `carrying_mul_add` in cg_llvm 17ab595 Move `{widening, carrying}_mul` to an intrinsic with fallback MIR 326447d Fix mistake in windows file open 94e1781 Windows: Use WriteFile to write to a UTF-8 console e70a5c6 ptr::copy: fix docs for the overlapping case 48cf112 Fix renaming symlinks on Windows 6927f91 docs: inline `core::ffi::c_str` types to `core::ffi` 41de340 docs: inline `std::ffi::c_str` types to `std::ffi` 172cbee unwinding: bump version to fix asm 229451f docs: update code example for Iterator#rposition fc22b41 Use scoped threads in `std::sync::Barrier` examples f011d1f Fix forgetting to save statx availability on success a73fc08 Specify only that duplicates are discarded, not the order. da026ab Document collection `From` and `FromIterator` impls that drop duplicate keys. 9adb459 Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc'; 050023d Impl FromIterator for tuples with arity 1-12 0f368dd Fix formatting 7c549af stabilize const_alloc_layout dcf5358 chore: fix typos 9af0ae9 Windows: Use FILE_ALLOCATION_INFO for truncation 3e8e636 Bump `stdarch` 4cf5da8 core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type ce0e54d Fixes safety docs for `dyn Any + Send {+ Sync}` 0d4114a Use `#[derive(Default)]` instead of manually implementing it fe8f336 Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" 82a9ed2 Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`. 988584e docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code 0a053fb docs: Permissions.readonly() also ignores root user special permissions 5ac0967 cargo update 371f8b2 Delete `Rvalue::Len` 2c291ec Asserts the maximum value that can be returned from `Vec::len` e2c9a84 Document `PointerLike` implementation restrictions. 55ea001 Use `&raw` for `ptr` primitive docs f68acbc Add `is_ascii` function optimized for x86-64 for [u8] 51a50a0 Add new implementation benchmark 7f4fd22 Document CTFE behavior of methods that call is_null f1fc46c Correctly document is_null CTFE behavior. 85d170a Win: rename: Use offset_of! in struct size calculation c1a5c06 Win: Remove special casing of the win7 target for `std::fs::rename` f7c9244 Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory 0a5aaaf Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available 7f5885d Less unwrap() in documentation ce79cee Improve prose around into_slice example of IterMut b531715 Improve prose around `as_slice` example of Iter 577d653 Improve prose around basic examples of Iter and IterMut 56e449c Abstract `ProcThreadAttributeList` into its own struct d11de7d fix `PointerLike` docs 12b1b9b unimplement `PointerLike` for trait objects ba4b32a split up `#[rustc_deny_explicit_impl]` attribute 87f046e remove reference to dangling from slice::Iter 4760e33 mri: add track_caller to thread spawning methods for better backtraces 2f3db85 fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()` 7c14ce2 Improve documentation of `element_offset` and related methods 3f1b9ed Rename `elem_offset` to `element_offset` dbcfe5e docs: Mention `spare_capacity_mut()` in `Vec::set_len` 4ec77a4 build: Update libc version 7fd3f03 fix typo in ptr/mod.rs 270ee92 Stabilize `#[diagnostic::do_not_recommend]` e9ba48f Use field init shorthand where possible 03fc354 fix(LazyCell): documentation of get[_mut] was wrong a0c4457 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 8411955 Fix typo in uint_macros.rs 45a13cd remove obsolete comment and pub(super) visibility b148190 remove bounds from vec and linkedlist ExtractIf 2ef2a55 Add a range argument to vec.extract_if 01153a3 Stabilize #[coverage] attribute 8d53a00 Remove `rustc::existing_doc_keyword` lint. adaf1bb Move `doc(keyword = "while")`. a25cc81 rustdoc-search: let From and Into be unboxed cf0742f Replace i32 by char in `split_at` & `_unchecked` e733581 Add clarity to the "greater" of `VecDeque::insert` b799c0a Replace i32 by char to add clarity 7c4d9cf Add value accessor methods to `Mutex` and `RwLock` 3378a35 std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. 92eb12c UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc 15b3fc6 UniqueRc: PinCoerceUnsized and DerefPure fb6a31f UniqueRc: comparisons and Hash 1c02f23 UniqueRc: Add more trait impls. 80cf707 Remove support for specializing ToString outside the standard library fa9906d Correct spelling of CURRENT_RUSTC_VERSION 1c45c41 Add documentation for anonymous pipe module 56cb0d4 feat: clarify how to use `black_box()` 178075d Update includes in '/library/core/src/error.rs'; 2ba2e5a Fix building `std` for Hermit after `c_char` change b2f7fe9 Fix `Path::is_absolute` on Hermit 9b0bcbd Fix typos in docs on provenance 035835d Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators 6488538 Switch inline(always) in core/src/fmt/rt.rs to plain inline 057441a Reword prelude for AsyncFn stabilization 6cf6efa Stabilize async closures e14f1a6 Remove consteval note from <*mut T>::align_offset docs. ad5d6d3 Stabilize the Rust 2024 prelude 3689a95 Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files edab76c Move some alloc tests to the alloctests crate 680b18f control libunwind linkage mode via `crt-static` on gnullvm targets 968d088 Change `GetManyMutError` to match T-libs-api decision 6a874da Add references to the specific ABI documents cd34d19 Remove l4re from the unsigned char operating system list 978bb9e De-duplicate and improve definition of core::ffi::c_char ff91a70 Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless ea25199 stabilize const_nonnull_new 804d582 Remove rustc_const_stable attribute on const NOOP 97c1141 Add libc funcitons only for wasm32-wasip1-threads. b61a080 Fix compilation for wasm32-wasip1 (without threads). 4da0710 Use UNIX thread_local implementation for WASI. 0a803ac Run TLS destructors for wasm32-wasip1-threads aed6b94 Downgrade cc 452f956 Run `cargo update` and update licenses dafdb58 chore: Improve doc comments 9ad9917 Refactor ReadDir into a state machine bdc421a wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next 59a10c7 docs: better examples for `std::ops::ControlFlow` bc70bfd Expand home_dir docs b27dcfc Add doc alias 'then_with' for `then` method on `bool` f84d2b7 Adds new intrinsic declaration f2934d1 Define acronym for thread local storage 542dd8a Add a `collect_into` tuple test case c726326 Don't impl Extend for 13-tuples 59c6a1c Simplify documentation for Extend impl for tuples 0bbe893 Add Extend impls for tuples of arity 1 through 12 b371f64 Unbreak tidy 25e1df6 Stabilize `std::io::ErrorKind::QuotaExceeded` 9e8a160 Stabilize `std::io::ErrorKind::CrossesDevices` bddc90a Access members of `FormattingOptions` directly instead of via getters/setters 5974a43 Removed constness for methods receiving a `&mut` parameter 2d7072e Added better reason for exposing `flags` and `get_flags` as unstable 8a6c970 Formatted d037750 Refactored FormattingOptions to use a bitmask for storing flags 3bfd3e3 Revert "Turned public+unstable+hidden functions into private functions" f76d0af Turned public+unstable+hidden functions into private functions 0dad34e Made all fns const bf38923 impl Default for fmt::FormattingOptions 999dfb0 Fixed copy+paste error in comment 7d3b6e5 fmt::FormattingOptions: Renamed `alignment` to `align` 3a545cb Formatter::with_options: Use different lifetimes 6848163 Fixed another broken test 9cf4ef3 Added struct `fmt::FormattingOptions` 1907032 Formatter: Access members via getter methods wherever possible ea5600d Stabilize noop_waker 3d2e59f Improve documentation 49e7d6b Reformat Python code with `ruff` ed541f4 Improve comments for the default backtrace printer 5724d53 clarify simd_relaxed_fma non-determinism 72447a1 Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. df8010c Rename `core_pattern_type` and `core_pattern_types` lib feature gates to `pattern_type_macro` 289a225 Allow fn pointers comparisons lint in library 43009ea Update `NonZero` and `NonNull` to not field-project (per MCP807) 57eb0c5 Add `core::arch::breakpoint` and test 58cc828 a release operation synchronizes with an acquire operation 597435c Update the definition of `borrowing_sub` 58ade88 stabilize const_{size,align}_of_val fecd61a ./x miri: fix sysroot build cd42b05 stabilize const_collections_with_hasher and build_hasher_default_const_new 16d0a8b Match simd_relaxed_fma documentation to fmuladd intrinsic 8bcd888 Add simd_relaxed_fma intrinsic 42fdee3 Fix `f16::midpoint` const feature gate cdd440d Use c"lit" for CStrings without unwrap 8d8b195 Stabilize `const_maybe_uninit_write` 962ffc4 Fix docs for '<[T]>::as_array'; 43ccbef Stabilize `ptr::fn_addr_eq` 3d02196 rustc_allow_const_fn_unstable is not used in proc_macro 8bc24c8 get rid of a bunch of unnecessary rustc_const_unstable 057ed4c remove a whole bunch of unnecessary const feature gates 370442e add isatty alias for is_terminal 85106bd Stabilize unsigned `num_midpoint` feature a84f5e1 Mark `slice::copy_from_slice` unstably const f5eb807 Fix chaining `carrying_add`s 84191e9 add test for bytewise ptr::swap of a pointer 11d662a move swap_nonoverlapping constness to separate feature gate eaa284c move slice::swap_unchecked constness to slice_swap_unchecked feature gate 815e486 Add diagnostic item for `std::ops::ControlFlow` 1ca41f8 update link to "C++ Exceptions under the hood" blog 545f874 fix: fix codeblocks in `PathBuf` example b322e5f fix: hurd build, stat64.st_fsid was renamed to st_dev fd83854 std: clarify comments about initialization 3ce6669 std: refactor `pthread`-based synchronization 4d937e0 bump hashbrown version 50b4bbc Fill in a `BTreeSet::entry` example 38fd18a Add a tracking issue for `btree_set_entry` 9378cd1 Add `BTreeSet` entry APIs to match `HashSet` 9c3a093 Implement code review a66dcf5 thread::available_parallelism for wasm32-wasip1-threads a1570ee changes old intrinsic declaration to new declaration ccb9050 Fix and undeprecate home_dir() f9ebed6 refine mir debuginfo docs 39ab79c Doc comment custom MIR debuginfo. de77086 Stabilize `extended_varargs_abi_support` 61a5a18 update cfgs 5a6ddd1 replace placeholder version 7cd9d04 Also use zero when referencing to capacity or length 4304f34 Use consistent wording in docs, use zero instead of 0 3bd2839 Fix typos in pin.rs 37c6bef Share inline(never) generics across crates 46c519a fmt b867ade aix: create shim for lgammaf_r 161d903 Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods; 6d27ab2 Remove one stray space. 232b7f6 Update chown help with a link and adding cap warning 98568ee Expand std::os::unix::fs::chown() doc with a warning 2e391db Add missing code examples on `LocalKey` ff271d9 Make profiler_builtins `#![no_core]` instead of just `#![no_std]` 0bf1cee Remove unnecessary `#![allow(unused_features)]` 83411be Sort and separate lint/feature attributes in `profiler_builtins` fa49342 std: update internal uses of `io::const_error!` a6f3f18 std: expose `const_io_error!` as `const_error!` ef0c227 Constify Drop and Destruct f94853d miri: disable test_downgrade_observe test on macOS 5403e91 Shorten the `MaybeUninit` `Debug` implementation 4d51914 Support ranges in `<[T]>::get_many_mut()` cf313e2 btree: add `{Entry,VacantEntry}::insert_entry` a311198 std::thread: avoid leading whitespace in some panic messages 726a134 Added a doc test for std::path::strip_prefix git-subtree-dir: library git-subtree-split: fb940b2
library/alloc/src/ffi/c_str.rs
has:As far as I can tell,
#[cfg(not(test))]
is a workaround for something like #87534, as evidenced by error messages like:note: the crate `alloc` is compiled multiple times, possibly with different configurations
alloc
is being compiled a second time as part of tests, and the two compilations are conflicting.This workaround shouldn't be necessary.
This should be much better documented, so it doesn't send people on multi-hour debugging adventures when they try to write new trait impls in
alloc
.The text was updated successfully, but these errors were encountered: