Skip to content

Commit 1b5c00f

Browse files
author
gitbot
committed
Squashed 'library/' changes from 78fc550..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
1 parent 8fe8f56 commit 1b5c00f

File tree

645 files changed

+17810
-9380
lines changed

Some content is hidden

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

645 files changed

+17810
-9380
lines changed

Cargo.lock

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

Cargo.toml

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

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

alloc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2021"
1010

1111
[dependencies]
1212
core = { path = "../core" }
13-
compiler_builtins = { version = "=0.1.138", features = ['rustc-dep-of-std'] }
13+
compiler_builtins = { version = "=0.1.145", features = ['rustc-dep-of-std'] }
1414

1515
[dev-dependencies]
1616
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }

alloc/benches/btree/map.rs

+1
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ pub fn iter_10k(b: &mut Bencher) {
353353
}
354354

355355
#[bench]
356+
#[cfg_attr(target_os = "emscripten", ignore)] // hits an OOM
356357
pub fn iter_1m(b: &mut Bencher) {
357358
bench_iter(b, 1_000, 1_000_000);
358359
}

alloc/benches/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
#![feature(iter_next_chunk)]
55
#![feature(repr_simd)]
66
#![feature(slice_partition_dedup)]
7-
#![cfg_attr(bootstrap, feature(strict_provenance))]
8-
#![cfg_attr(not(bootstrap), feature(strict_provenance_lints))]
7+
#![feature(strict_provenance_lints)]
98
#![feature(test)]
109
#![deny(fuzzy_provenance_casts)]
1110

alloc/benches/slice.rs

+11
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,25 @@ rotate!(rotate_medium_half, gen_random, 9158, 9158 / 2);
366366
rotate!(rotate_medium_half_plus_one, gen_random, 9158, 9158 / 2 + 1);
367367

368368
// Intended to use more RAM than the machine has cache
369+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
369370
rotate!(rotate_huge_by1, gen_random, 5 * 1024 * 1024, 1);
371+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
370372
rotate!(rotate_huge_by9199_u64, gen_random, 5 * 1024 * 1024, 9199);
373+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
371374
rotate!(rotate_huge_by9199_bytes, gen_random_bytes, 5 * 1024 * 1024, 9199);
375+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
372376
rotate!(rotate_huge_by9199_strings, gen_strings, 5 * 1024 * 1024, 9199);
377+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
373378
rotate!(rotate_huge_by9199_big, gen_big_random, 5 * 1024 * 1024, 9199);
379+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
374380
rotate!(rotate_huge_by1234577_u64, gen_random, 5 * 1024 * 1024, 1234577);
381+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
375382
rotate!(rotate_huge_by1234577_bytes, gen_random_bytes, 5 * 1024 * 1024, 1234577);
383+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
376384
rotate!(rotate_huge_by1234577_strings, gen_strings, 5 * 1024 * 1024, 1234577);
385+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
377386
rotate!(rotate_huge_by1234577_big, gen_big_random, 5 * 1024 * 1024, 1234577);
387+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
378388
rotate!(rotate_huge_half, gen_random, 5 * 1024 * 1024, 5 * 1024 * 1024 / 2);
389+
#[cfg(not(target_os = "emscripten"))] // hits an OOM
379390
rotate!(rotate_huge_half_plus_one, gen_random, 5 * 1024 * 1024, 5 * 1024 * 1024 / 2 + 1);

alloc/benches/vec.rs

+5
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,11 @@ fn bench_in_place_collect_droppable(b: &mut Bencher) {
547547
})
548548
}
549549

550+
// node.js gives out of memory error to use with length 1_100_000
551+
#[cfg(target_os = "emscripten")]
552+
const LEN: usize = 4096;
553+
554+
#[cfg(not(target_os = "emscripten"))]
550555
const LEN: usize = 16384;
551556

552557
#[bench]

alloc/src/alloc.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ use core::hint;
1010
#[cfg(not(test))]
1111
use core::ptr::{self, NonNull};
1212

13-
#[cfg(test)]
14-
mod tests;
15-
1613
extern "Rust" {
1714
// These are the magic symbols to call the global allocator. rustc generates
1815
// them to call `__rg_alloc` etc. if there is a `#[global_allocator]` attribute
@@ -342,7 +339,7 @@ unsafe impl Allocator for Global {
342339
}
343340
}
344341

345-
/// The allocator for unique pointers.
342+
/// The allocator for `Box`.
346343
#[cfg(all(not(no_global_oom_handling), not(test)))]
347344
#[lang = "exchange_malloc"]
348345
#[inline]

0 commit comments

Comments
 (0)