Skip to content

Commit 612691e

Browse files
author
gitbot
committed
Squashed 'library/' changes from 78fc550..505c3c8
505c3c8 Rustfmt c3b10a4 occured -> occurred ad3cba5 Allow Rust to use a number of libc filesystem calls 93437cf Windows: Test that deleting a running binary fails 9f5b3e5 Update platform information for remove_file 11be887 Windows: remove readonly files 5f99f47 Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` a197bfd Document `Sum::sum` returns additive identities for `[]` 1ea5b61 Clean up 'HashMap' and 'HashSet' docs; 4c436f9 Optimize `Rc::<str>::default()` implementation 3a487d3 std: get rid of `sys_common::io` ddfee75 std: move `io` module out of `pal` cc39f5f Move two windows process tests to tests/ui 6bc5566 tests(std/net): remove outdated `base_port` calculation cff11b5 sys: net: Add UEFI stubs 683c5bd Remove some unnecessary parens in `assert!` conditions 566501e remove use of `feature(trait_upcasting)` from core tests 75a291d Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios; 7c46d15 Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` 521b3a1 tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes` 80df787 Fix unreachable_pub lint for hermit target 8f9eead Fix link in from_fn.rs 84b1c6b Use `widening_mul` 8c91286 Add OneSidedRangeBound to eliminate panic in `split_point_of` 615ac67 Rename slice::take methods to split_off e581f3d Update `compiler-builtins` to 0.1.145 bfb2b74 specify a prim@slice in docs 8c0e793 implement inherent str constructors dd109d3 std: move network code into `sys` 42aed2c uefi: process: Add support for command environment variables 19f6ff4 Mark `std::fmt::from_fn` as `#[must_use]` a405ef7 Rename rustc_contract to contract c1068b5 Improve contracts intrisics and remove wrapper function 44a468b Separate contract feature gates for the internal machinery 1c65514 Desugars contract into the internal AST extensions 6407c96 Express contracts as part of function header and lower it to the contract lang items 50d8cc3 contracts: added lang items that act as hooks for rustc-injected code to invoke. 45b8d2e Contracts core intrinsics. a041614 More PR feedback 57aa72f PR feedback 76b9c4a Add `unchecked_disjoint_bitor` with fallback intrinsic implementation 06eddc4 Add note about `FnPtr` being exposed as public bound fa3b863 Add `cast_signed` and `cast_unsigned` methods for `NonZero` types 00041c1 For NonZero impl macros, give unsigned impls access to the corresponding signed type 03c1ccc std::fs: further simplify dirent64 handling 3356ec9 add UnsafeCell direct access APIs 421117f primitive type migration from mod.rs to primitives.rs 07e2207 implement unstable `new_range` feature 3814421 std::range de1363e Remove stabilized feature gate 58b6f8a Move env modifying tests to a separate integration test 71d2a2a Fix for SGX ca8b409 Fix benchmarking of libstd 7d0ebf6 Move std::sync unit tests to integration tests c6a9e1d Move std::thread_local unit tests to integration tests dacacf8 Move std::time unit tests to integration tests 3e333a9 Move std::path unit tests to integration tests 9efded4 Move std::panic unit tests to integration tests c96035e Move std::num unit tests to integration tests f636948 Move std float unit tests to integration tests 151fa67 Move std::error unit tests to integration tests b428865 Move std::env unit tests to integration tests aeb35a3 no unsafe pointer and no overflowing_literals in fmt::Display of integers b3f7733 black_box integer-input on fmt benches 56b9550 OnceCell & OnceLock docs: Using (un)initialized consistently afd1ecf Docs for f16 and f128: correct a typo and add details 346f6b7 rustc_allowed_through_unstable_modules: require deprecation message 5eaaff8 Update encode_utf16 to mention it is native endian 14fa6ab remove Rustc{En,De}codable from library and compiler 27ed051 make rustc_encodable_decodable feature properly unstable ee0b5a2 Fix sentence in process::abort 71d62b7 document ptr comparison being by address 1566c46 stabilize `once_wait` d938809 implement all min/max fns in terms of `<`/`is_lt` 798f65c improve doc tests for (min/max/minmax).* functions 4e90b7a docs: Documented Send and Sync requirements for Mutex + MutexGuard 868ac70 Add documentation for derive(CoercePointee) e95d494 Fix off-by-one error causing driftsort to crash d3bea56 Insert null checks for pointer dereferences when debug assertions are enabled f1773c2 atomic: extend compare_and_swap migration docs 3f85d13 float::min/max: mention the non-determinism around signed 0 3e4aa44 Stabilize `const_black_box` 691da58 Improve documentation for file locking 0d78910 Remove minor future footgun in `impl Debug for MaybeUninit` e82cc84 Add `AsyncFn*` to core prelude 8921682 uefi: Implement path 0bf17b9 Implement `int_from_ascii` (rust-lang#134821) 646476d Cleanup docs for Allocator 7c394f8 btree/node.rs: pop_internal_level: does not invalidate other handles 526aa0f btree/node.rs: remove incorrect comment from pop_internal_level docs d05bdb4 add inline attribute and codegen test 0856ddd split slice::ptr_rotate into three separate algorithms, to hopefully help inlining f7c202f optimize slice::ptr_rotate for compile-time-constant small rotates b60ffa9 Test pipes also when not running on Windows and Linux simultaneously a3c5ef7 uefi: process: Fix args e567cd3 [cfg_match] Document the use of expressions 48057ed Update comments and sort target_arch in c_char_definition 00a6d73 [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items c857fa2 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent 8c55c11 Document powf and powi calls that always return 1.0 261a207 Document purpose of closure in from_fn.rs more clearly b2d6ca3 add missing allocator safety in alloc crate 5fa2aac alloc: add `#![warn(unreachable_pub)]` b7e7846 Implement `AtomicT::update` & `AtomicT::try_update` a3e955e fix doc for std::sync::mpmc 0fef9be Implement phantom variance markers 6f18a82 Clarify WindowsMut (Lending)Iterator 89af143 compiler_fence: fix example 3584874 Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location fc9314c Move `std::io::pipe` code into its own file 16e356d Actually run the bstr test 868b9b4 Update comment 5f3b89e Put all coretests in a separate crate 580d2f8 Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls 07ffa14 add nto80 x86-64 and aarch64 target 8bb6a3a Add support for QNX 7.1 with io-sock on x64 10558cf Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64 22f2962 Update a bunch of comments from before wasi support was added e814454 Remove a bunch of emscripten test ignores 50e05db Fix testing of the standard library with Emscripten 34655dd fix(libtest): Deprecate '--logfile' c1ad8b8 docs: fix typo in std::pin overview 6c960e1 ports last few library files to new intrinsic style 0f6e17b Improve and expand documentation of pipes 7846136 Fix set_name in thread mod for NuttX 39818db Fix `FormattingOptions` instantiation with `Default` 891d6c7 Update library/core/src/num/nonzero.rs 67e0fbe Add memory layout documentation to generic NonZero<T> 018d0e3 Fix whitespace 50f56cf document order of items in iterator from drain 96b5a8d Add `File already exists` error doc to `hard_link` function 7c12606 Doc difference between extend and extend_from_slice 4b83b43 Make `Vec::pop_if` a bit more presentable 7ebdac8 Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if` b2487ef remove pointless allowed_through_unstable_modules on TryFromSliceError bc7f965 test: add `#![warn(unreachable_pub)]` ac9cdc1 proc_macro: add `#![warn(unreachable_pub)]` 8cdb99e Implement `CloneToUninit` for `ByteStr` 12e2688 Add doc aliases for BStr and BString c1dd147 Omit some more `From` impls to avoid inference failures d63aa46 Support `no_rc`, `no_sync`, and `no_global_oom_handling` 9c52eb7 Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100 7c8c49b Implement `ByteStr` and `ByteString` types af75ed5 Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut` e51de5e Library: Finalize dyn compatibility renaming 9a470c4 Remove test panic from File::open 0c79274 fix OsString::from_encoded_bytes_unchecked description 96fdc4d Add an example of using `carrying_mul_add` to write wider multiplication ed4d2fe Outline panicking code for `LocalKey::with` d8dee9c core: `#[allow(unreachable_pub)]` on unreachable `pub use` b0da2be core: add `#![warn(unreachable_pub)]` 22aafaf rtstartup: add `#![warn(unreachable_pub)]` dabb0ec panic_unwind: add `#![warn(unreachable_pub)]` 33d7a1e Recognise new IPv6 documentation range from RFC9637 ddd0264 1. Removed 'rustc_nounwind' 2. Rewording of comments 1d4c7df Export likely(), unlikely() and cold_path() in std::hint 781d584 Correct counting to four in cell module docs 8f4a724 doc: Point to methods on `Command` as alternatives to `set/remove_var` 5ad6719 wasi/io: remove dead files b2080f1 remove unnecessary rustc_allowed_through_unstable_modules abe24a4 further improve panic_immediate_abort by removing rtprintpanic messages 033959d cargo update 6c89086 Rewrap following accepting review suggestions from @ibraheemdev 8f9757b Update library/core/src/slice/mod.rs 9da7fa8 Update library/core/src/slice/mod.rs c084093 Update library/core/src/slice/mod.rs 9dd4194 Update library/core/src/slice/mod.rs 8aaeaaf Update library/core/src/slice/mod.rs 87e9b12 Update library/core/src/slice/mod.rs 168aa42 Update library/core/src/slice/mod.rs 7ddc361 Update library/core/src/slice/mod.rs 0c1f472 Update library/core/src/slice/mod.rs e5cbc2e Update library/core/src/slice/mod.rs 05531aa `then be` -> `be` based on feedback from @ibraheemdev 7edf7ac Improve `select_nth_unstable` documentation clarity b362a8a Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper" 91d8f69 Add references to the IEEE functions for `float_next_up_down` c0e35fb Stabilize `float_next_up_down` 1be8f41 Fix import of pipe in kernel_copy.rs 5ed0b61 Move `std::pipe::*` into `std::io` 24e8166 Clarify note in `std::sync::LazyLock` example 8c92ba3 fix typo in library/alloc/src/sync.rs 2eb0f65 Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count' 550e025 Adjust syntax 331ab24 Less unsafe in `dangling`/`without_provenance` 5bde913 fix typo in typenames of pin documentation 18604c3 intrinsics: deprecate calling them via the unstable std::intrinsics path cdc4bb5 add comments explaining main thread identification c67a0eb std: lazily allocate the main thread handle b100192 Revert "Remove the Arc rt::init allocation for thread info" 1b38bb6 Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`. ef9c212 Update compiler-builtins to 0.1.143 7b7f046 Rename `pos` to `position` 4711dea Convert `struct FromBytesWithNulError` into enum eddc674 Enforce syntactical stability of const traits in HIR e00e3d2 Update compiler-builtins to 0.1.141 d20b074 Add another `Vec::splice` example 345cf52 avoid nesting the user-defined main so deeply on the stack e121ff5 use a single large catch_unwind in lang_start fe6d0ec uefi: helpers: Introduce OwnedDevicePath fe174d2 path: Move is_absolute check to sys::path f176ce7 Update the explanation for why we use box_new in vec! 2833697 Add #[inline] to copy_from_slice 571a3f3 Add inherent versions of MaybeUninit methods for slices 0f87820 Make UniqueRc invariant for soundness 5ee8912 update and clarify StructuralPartialEq docs 47cf67a Use `NonNull::without_provenance` within the standard library 9d2f4b1 Initial fs module for uefi c14f39f Improve the safety documentation on new_unchecked 7853da9 Update a bunch of library types for MCP807 0011f31 alloc: remove unsound `IsZero` for raw pointers b2b3ce3 Fix `proc_macro::quote!` for raw ident 0031f96 Append `TokenTree` with `ToTokens` in `proc_macro::quote!` 0547d43 Rename the internal simpler `quote` macro to `minimal_quote` 98915c2 Used pthread name functions returning result for FreeBSD and DragonFly ab9939e Fix ptr::from_ref documentation example comment 2b1ee7b Improve prose around `as_slice` example of IterMut 074cf49 fmt d29b933 update cfg(bootstrap) 151b2c0 update version placeholders 8db7053 Remove some unnecessary `.into()` calls 949c8c8 add missing provenance APIs on NonNull 631e092 More compelling env_clear() examples 14d7c49 Implement Condvar::wait_timeout for targets without threads 873445c Impl String::into_chars 3f1140b Avoid naming variables `str` 46af810 [generic_assert] Constify methods used by the formatting system 91be67d Add support for wasm exception handling to Emscripten target 3b8a17b chore: remove redundant words in comment 5d715f1 Add doc aliases for `libm` and IEEE names d0ff2fa Mark `slice::reverse` unstably const d1cc2ec Clarified the documentation on core::iter::from_fn and core::iter::successors 5308edd library: fix adler{-> 2}.debug 43409bd add regression test for unsound Flatten/FlatMap specialization 82894df do not in-place-iterate over flatmap/flatten 9550f1b Fix UWP build 8d3555b Bump backtrace to 0.3.75 01b68d2 sync to actual dep verions of backtrace 1ddf43a turn rustc_box into an intrinsic a087959 core: use public method instead of instrinsic 4c1d2e2 core: improve comments 6e243b1 core: implement `bool::select_unpredictable` 323b69c Switch rtems target to panic unwind ffa739f path in detail d645c94 Move some things to `std::sync::poison` and reexport them in `std::sync` 7ae5bbb Bump backtrace to rust-lang/backtrace-rs@4d7906b c00f1dc Try to write the panic message with a single `write_all` call f2972ff fix doc for missing Box allocator consistency c04aaed Remove qualification of `std::cmp::Ordering` in `Ord` doc 0996625 std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten 48dbac2 Avoid use of LFS64 symbols on Emscripten f58a9a0 char to_digit: avoid unnecessary casts to u64 1595d6c Remove allowing static_mut_refs lint 9df0bd0 Tidy up bigint mul methods 4278a8e fix doc for read write unaligned in zst operation c7739d6 Avoid short writes in LineWriter f7e7e34 ptr docs: make it clear that we are talking only about memory accesses aaa8143 Make slice::as_flattened_mut unstably const 27d3d4b rename typed_swap → typed_swap_nonoverlapping 37fe29d stabilize const_swap f4c8bb0 fix: typos feb96e4 Fix sentence fragment in `pin` module docs 24e3362 docs: inline `alloc::ffi::c_str` types to `alloc::ffi` 064250a Fix compilation issues on other unixes 62e20b7 Eliminate redundant statx syscalls 3c8051f Unify fs::copy and io::copy 33a200d Update `compiler-builtins` to 0.1.140 303f48c Update library/alloc/tests/sort/tests.rs 4f4ee30 Fix typos f4b7e41 Override `carrying_mul_add` in cg_llvm f93a87e Move `{widening, carrying}_mul` to an intrinsic with fallback MIR 7823668 Fix mistake in windows file open 1707eea Windows: Use WriteFile to write to a UTF-8 console b4b57d2 ptr::copy: fix docs for the overlapping case 31841ea Fix renaming symlinks on Windows 118cb9a docs: inline `core::ffi::c_str` types to `core::ffi` 5ba28ab docs: inline `std::ffi::c_str` types to `std::ffi` 4a4b7a1 unwinding: bump version to fix asm bdc9697 docs: update code example for Iterator#rposition ecd471d Use scoped threads in `std::sync::Barrier` examples 57afb33 Fix forgetting to save statx availability on success 749cabe Specify only that duplicates are discarded, not the order. 3a05bba Document collection `From` and `FromIterator` impls that drop duplicate keys. 167057b Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc'; 4febe82 Impl FromIterator for tuples with arity 1-12 cad684f Fix formatting 822d03a stabilize const_alloc_layout f0e34c2 chore: fix typos c09140b Windows: Use FILE_ALLOCATION_INFO for truncation 482c806 Bump `stdarch` 5a5ca8a core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type c0c11b9 Fixes safety docs for `dyn Any + Send {+ Sync}` af0530d Use `#[derive(Default)]` instead of manually implementing it 6d501dd Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" d4dc0ea Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`. b4a2fe0 docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code 8aa9326 docs: Permissions.readonly() also ignores root user special permissions fd602ac cargo update 4a074bb Delete `Rvalue::Len` 6291c2b Asserts the maximum value that can be returned from `Vec::len` 9e3406e Document `PointerLike` implementation restrictions. c4856af Use `&raw` for `ptr` primitive docs 48b6b26 Add `is_ascii` function optimized for x86-64 for [u8] 3aeaabe Add new implementation benchmark a4393cf Document CTFE behavior of methods that call is_null 1d61456 Correctly document is_null CTFE behavior. 4f32731 Win: rename: Use offset_of! in struct size calculation de88ed3 Win: Remove special casing of the win7 target for `std::fs::rename` 4fe7b77 Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory 3409aec Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available 4dfb7c0 Less unwrap() in documentation bf91ffd Improve prose around into_slice example of IterMut dc1e70b Improve prose around `as_slice` example of Iter 781b17e Improve prose around basic examples of Iter and IterMut eef7ba8 Abstract `ProcThreadAttributeList` into its own struct 5385b8a fix `PointerLike` docs 53c0328 unimplement `PointerLike` for trait objects e096a09 split up `#[rustc_deny_explicit_impl]` attribute 37bc633 remove reference to dangling from slice::Iter deecc09 mri: add track_caller to thread spawning methods for better backtraces 4702ad7 fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()` be1899b Improve documentation of `element_offset` and related methods 02e606d Rename `elem_offset` to `element_offset` d342491 docs: Mention `spare_capacity_mut()` in `Vec::set_len` b76bec7 build: Update libc version e1a3fe4 fix typo in ptr/mod.rs b66d166 Stabilize `#[diagnostic::do_not_recommend]` 8c7ebb8 Use field init shorthand where possible 31fb096 fix(LazyCell): documentation of get[_mut] was wrong d800c50 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 595ced2 Fix typo in uint_macros.rs b5fb572 remove obsolete comment and pub(super) visibility adbfd76 remove bounds from vec and linkedlist ExtractIf f11edaa Add a range argument to vec.extract_if a0684f0 Stabilize #[coverage] attribute 2c3005f Remove `rustc::existing_doc_keyword` lint. 0fc32ec Move `doc(keyword = "while")`. f91d0f3 rustdoc-search: let From and Into be unboxed 22a0d8d Replace i32 by char in `split_at` & `_unchecked` 02a3623 Add clarity to the "greater" of `VecDeque::insert` bc6620e Replace i32 by char to add clarity 2a7406c Add value accessor methods to `Mutex` and `RwLock` a1e48b2 std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. c55bc1d UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc 15be580 UniqueRc: PinCoerceUnsized and DerefPure fa09da8 UniqueRc: comparisons and Hash e974e94 UniqueRc: Add more trait impls. c009353 Remove support for specializing ToString outside the standard library c50e2a4 Correct spelling of CURRENT_RUSTC_VERSION 71b54a0 Add documentation for anonymous pipe module e41c6ae feat: clarify how to use `black_box()` 6fcc3fa Update includes in '/library/core/src/error.rs'; 13ce58f Fix building `std` for Hermit after `c_char` change 25ae8a2 Fix `Path::is_absolute` on Hermit 9bb760c Fix typos in docs on provenance 7610d35 Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators c469b46 Switch inline(always) in core/src/fmt/rt.rs to plain inline f6c9280 Reword prelude for AsyncFn stabilization 97839b8 Stabilize async closures f1cf0de Remove consteval note from <*mut T>::align_offset docs. 214fdba Stabilize the Rust 2024 prelude ceb3086 Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files 39e415b Move some alloc tests to the alloctests crate e711f8e control libunwind linkage mode via `crt-static` on gnullvm targets e00617a Change `GetManyMutError` to match T-libs-api decision 3a475cf Add references to the specific ABI documents c4a8b44 Remove l4re from the unsigned char operating system list e012a7a De-duplicate and improve definition of core::ffi::c_char 770c929 Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless 237430b stabilize const_nonnull_new 3330922 Remove rustc_const_stable attribute on const NOOP 4c4ac2a Add libc funcitons only for wasm32-wasip1-threads. 2c7ab19 Fix compilation for wasm32-wasip1 (without threads). 308c5d0 Use UNIX thread_local implementation for WASI. 8290d44 Run TLS destructors for wasm32-wasip1-threads bd32b12 Downgrade cc f584641 Run `cargo update` and update licenses 8315724 chore: Improve doc comments 37e4c2e Refactor ReadDir into a state machine 0ea632f wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next 3b796d5 docs: better examples for `std::ops::ControlFlow` 9123ca6 Expand home_dir docs 22de338 Add doc alias 'then_with' for `then` method on `bool` c194cab Adds new intrinsic declaration e18c12b Define acronym for thread local storage df06001 Add a `collect_into` tuple test case 4a3e2eb Don't impl Extend for 13-tuples 20dce17 Simplify documentation for Extend impl for tuples 6d3f0ee Add Extend impls for tuples of arity 1 through 12 de96624 Unbreak tidy 078296c Stabilize `std::io::ErrorKind::QuotaExceeded` 56a9a9d Stabilize `std::io::ErrorKind::CrossesDevices` aa365ea Access members of `FormattingOptions` directly instead of via getters/setters c5ae145 Removed constness for methods receiving a `&mut` parameter 7477a16 Added better reason for exposing `flags` and `get_flags` as unstable 1a5fda6 Formatted 9622339 Refactored FormattingOptions to use a bitmask for storing flags fe03174 Revert "Turned public+unstable+hidden functions into private functions" b1c53d2 Turned public+unstable+hidden functions into private functions 6dee4c2 Made all fns const 6381718 impl Default for fmt::FormattingOptions 74e5620 Fixed copy+paste error in comment 6a015c8 fmt::FormattingOptions: Renamed `alignment` to `align` a326563 Formatter::with_options: Use different lifetimes 6f25278 Fixed another broken test b81fe72 Added struct `fmt::FormattingOptions` bd9bf4e Formatter: Access members via getter methods wherever possible 72604df Stabilize noop_waker 038e6f4 Improve documentation 82ce537 Reformat Python code with `ruff` d329e1f Improve comments for the default backtrace printer 018057f clarify simd_relaxed_fma non-determinism 6e005a6 Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. f05df67 Rename `core_pattern_type` and `core_pattern_types` lib feature gates to `pattern_type_macro` cce9041 Allow fn pointers comparisons lint in library ec81a6d Update `NonZero` and `NonNull` to not field-project (per MCP807) de82aaa Add `core::arch::breakpoint` and test 5927a6c a release operation synchronizes with an acquire operation 896540b Update the definition of `borrowing_sub` a4dd9b5 stabilize const_{size,align}_of_val 8bcd49f ./x miri: fix sysroot build b73a4da stabilize const_collections_with_hasher and build_hasher_default_const_new c54868b Match simd_relaxed_fma documentation to fmuladd intrinsic 3862529 Add simd_relaxed_fma intrinsic 043727b Fix `f16::midpoint` const feature gate b80b2c1 Use c"lit" for CStrings without unwrap e0e6154 Stabilize `const_maybe_uninit_write` 2a12f89 Fix docs for '<[T]>::as_array'; 4bc1966 Stabilize `ptr::fn_addr_eq` e5b7c39 rustc_allow_const_fn_unstable is not used in proc_macro 4eb076b get rid of a bunch of unnecessary rustc_const_unstable dc8a2a6 remove a whole bunch of unnecessary const feature gates ce85e97 add isatty alias for is_terminal 07f70ca Stabilize unsigned `num_midpoint` feature b4c408f Mark `slice::copy_from_slice` unstably const d541f6c Fix chaining `carrying_add`s c791211 add test for bytewise ptr::swap of a pointer 3ccc5ac move swap_nonoverlapping constness to separate feature gate b5cd287 move slice::swap_unchecked constness to slice_swap_unchecked feature gate 704ee0e Add diagnostic item for `std::ops::ControlFlow` 54d1047 update link to "C++ Exceptions under the hood" blog ff435ea fix: fix codeblocks in `PathBuf` example 0279ab8 fix: hurd build, stat64.st_fsid was renamed to st_dev 36172d3 std: clarify comments about initialization a5faa96 std: refactor `pthread`-based synchronization 9ff6777 bump hashbrown version a242f89 Fill in a `BTreeSet::entry` example 637f40b Add a tracking issue for `btree_set_entry` 9e19d5c Add `BTreeSet` entry APIs to match `HashSet` ae0b08e Implement code review 82610d9 thread::available_parallelism for wasm32-wasip1-threads bdd4daf changes old intrinsic declaration to new declaration 6e40c5c Fix and undeprecate home_dir() c190733 refine mir debuginfo docs e8e12cf Doc comment custom MIR debuginfo. 2e7c6c2 Stabilize `extended_varargs_abi_support` b734fb3 update cfgs 48cbb8c replace placeholder version b3b1d69 Also use zero when referencing to capacity or length dede273 Use consistent wording in docs, use zero instead of 0 7d96147 Fix typos in pin.rs 5b88ffe Share inline(never) generics across crates 3ddbd72 fmt 2fde9ca aix: create shim for lgammaf_r e2fce21 Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods; 170e96c Remove one stray space. 0bf0b8f Update chown help with a link and adding cap warning 049eb6f Expand std::os::unix::fs::chown() doc with a warning 2cacd71 Add missing code examples on `LocalKey` c79853e Make profiler_builtins `#![no_core]` instead of just `#![no_std]` 4ebf33d Remove unnecessary `#![allow(unused_features)]` 8fa98cb Sort and separate lint/feature attributes in `profiler_builtins` 98bb87e std: update internal uses of `io::const_error!` cdced7a std: expose `const_io_error!` as `const_error!` d448c82 Constify Drop and Destruct 8e7d9fe miri: disable test_downgrade_observe test on macOS ef76d9a Shorten the `MaybeUninit` `Debug` implementation 6b937cf Support ranges in `<[T]>::get_many_mut()` 80e8a46 btree: add `{Entry,VacantEntry}::insert_entry` fc4f858 std::thread: avoid leading whitespace in some panic messages e95ec09 Added a doc test for std::path::strip_prefix git-subtree-dir: library git-subtree-split: 505c3c8
1 parent 8fe8f56 commit 612691e

File tree

643 files changed

+17808
-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.

643 files changed

+17808
-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)