Skip to content

Commit 65f1b74

Browse files
author
gitbot
committed
Squashed 'library/' changes from 78fc550..d9afaa0
d9afaa0 Rustfmt 5029283 occured -> occurred cfc71f9 Allow Rust to use a number of libc filesystem calls dfeb7a1 Windows: Test that deleting a running binary fails b826647 Update platform information for remove_file 19a519a Windows: remove readonly files 9a9f6fc Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]` 1b26f81 Document `Sum::sum` returns additive identities for `[]` 3f12a90 Clean up 'HashMap' and 'HashSet' docs; 41d0f44 Optimize `Rc::<str>::default()` implementation 5861d0a std: get rid of `sys_common::io` f9b27ab std: move `io` module out of `pal` a75f8ce Move two windows process tests to tests/ui bb96a5e tests(std/net): remove outdated `base_port` calculation f54c237 sys: net: Add UEFI stubs ab11452 Remove some unnecessary parens in `assert!` conditions 07a179c remove use of `feature(trait_upcasting)` from core tests 73cc48a Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios; 522770b Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` 98304e9 tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes` 774f18e Fix unreachable_pub lint for hermit target 2688215 Fix link in from_fn.rs 375c6ab Use `widening_mul` 6d424a0 Add OneSidedRangeBound to eliminate panic in `split_point_of` 74b6d79 Rename slice::take methods to split_off 91193ef Update `compiler-builtins` to 0.1.145 df0757c specify a prim@slice in docs 610bdff implement inherent str constructors ea23619 std: move network code into `sys` b4dd0b5 uefi: process: Add support for command environment variables 584bbf9 Mark `std::fmt::from_fn` as `#[must_use]` 0ae8f42 Rename rustc_contract to contract 04924fc Improve contracts intrisics and remove wrapper function 8b684bf Separate contract feature gates for the internal machinery ebf0235 Desugars contract into the internal AST extensions 6c9b227 Express contracts as part of function header and lower it to the contract lang items 22a77ce contracts: added lang items that act as hooks for rustc-injected code to invoke. 688a6b1 Contracts core intrinsics. af823fe More PR feedback 9895b8e PR feedback cf1564c Add `unchecked_disjoint_bitor` with fallback intrinsic implementation 9cc76e6 Add note about `FnPtr` being exposed as public bound ddc670b Add `cast_signed` and `cast_unsigned` methods for `NonZero` types 6e5aeb2 For NonZero impl macros, give unsigned impls access to the corresponding signed type 720c4a0 std::fs: further simplify dirent64 handling 0d9b7e1 add UnsafeCell direct access APIs 3d60d4e primitive type migration from mod.rs to primitives.rs cacd395 implement unstable `new_range` feature bb196ed std::range 4d099be Remove stabilized feature gate 93acaa0 Move env modifying tests to a separate integration test 3274be4 Fix for SGX 270a958 Fix benchmarking of libstd 28f15f1 Move std::sync unit tests to integration tests 363dfd3 Move std::thread_local unit tests to integration tests a5dbb6b Move std::time unit tests to integration tests bf1d6f9 Move std::path unit tests to integration tests 0ae4284 Move std::panic unit tests to integration tests c48b38f Move std::num unit tests to integration tests 537a9ec Move std float unit tests to integration tests c3ca432 Move std::error unit tests to integration tests 8334445 Move std::env unit tests to integration tests b49f69c no unsafe pointer and no overflowing_literals in fmt::Display of integers 980050f black_box integer-input on fmt benches ab54002 OnceCell & OnceLock docs: Using (un)initialized consistently 6dd3729 Docs for f16 and f128: correct a typo and add details c7f614a rustc_allowed_through_unstable_modules: require deprecation message de2ed6e Update encode_utf16 to mention it is native endian d744f54 remove Rustc{En,De}codable from library and compiler 50fca45 make rustc_encodable_decodable feature properly unstable 9d8030f Fix sentence in process::abort 6d22b94 document ptr comparison being by address fc85326 stabilize `once_wait` e446d43 implement all min/max fns in terms of `<`/`is_lt` 72fde75 improve doc tests for (min/max/minmax).* functions 0588fcb docs: Documented Send and Sync requirements for Mutex + MutexGuard 60e32ff Add documentation for derive(CoercePointee) 8274203 Fix off-by-one error causing driftsort to crash 7d713d1 Insert null checks for pointer dereferences when debug assertions are enabled 8055e00 atomic: extend compare_and_swap migration docs 9221b33 float::min/max: mention the non-determinism around signed 0 b13ef46 Stabilize `const_black_box` 0650c62 Improve documentation for file locking 42f0e61 Remove minor future footgun in `impl Debug for MaybeUninit` a7123f5 Add `AsyncFn*` to core prelude 60c91e6 uefi: Implement path a636c10 Implement `int_from_ascii` (rust-lang#134821) fe19978 Cleanup docs for Allocator ffe13da btree/node.rs: pop_internal_level: does not invalidate other handles 2e267fe btree/node.rs: remove incorrect comment from pop_internal_level docs 8047053 add inline attribute and codegen test 2c47edf split slice::ptr_rotate into three separate algorithms, to hopefully help inlining c7d3226 optimize slice::ptr_rotate for compile-time-constant small rotates 25923f4 Test pipes also when not running on Windows and Linux simultaneously 695bc68 uefi: process: Fix args 2d2bb5e [cfg_match] Document the use of expressions 1f5f438 Update comments and sort target_arch in c_char_definition aaad6bd [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items 5610f93 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent eb25c28 Document powf and powi calls that always return 1.0 e80e542 Document purpose of closure in from_fn.rs more clearly 33e91a3 add missing allocator safety in alloc crate c318d43 alloc: add `#![warn(unreachable_pub)]` 612cfb3 Implement `AtomicT::update` & `AtomicT::try_update` e09c3fb fix doc for std::sync::mpmc 2501cfc Implement phantom variance markers 4e8f7b4 Clarify WindowsMut (Lending)Iterator b53869c compiler_fence: fix example f8a5089 Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location cc8c020 Move `std::io::pipe` code into its own file 5b84457 Actually run the bstr test ffe36ef Update comment 4cc8579 Put all coretests in a separate crate 0965563 Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls ca22414 add nto80 x86-64 and aarch64 target 91b1d4d Add support for QNX 7.1 with io-sock on x64 c6d20ab Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64 28ff940 Update a bunch of comments from before wasi support was added 90f221a Remove a bunch of emscripten test ignores 41a9dec Fix testing of the standard library with Emscripten 6c0d649 fix(libtest): Deprecate '--logfile' 5d7806d docs: fix typo in std::pin overview fea6aa8 ports last few library files to new intrinsic style 9cdf4c9 Improve and expand documentation of pipes 1d7172c Fix set_name in thread mod for NuttX d33deb2 Fix `FormattingOptions` instantiation with `Default` 4c32a45 Update library/core/src/num/nonzero.rs 37de9eb Add memory layout documentation to generic NonZero<T> 0824b82 Fix whitespace 945a1bc document order of items in iterator from drain 23e22e5 Add `File already exists` error doc to `hard_link` function 33d0033 Doc difference between extend and extend_from_slice 25afd92 Make `Vec::pop_if` a bit more presentable 73bf850 Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if` 012ac73 remove pointless allowed_through_unstable_modules on TryFromSliceError d735e87 test: add `#![warn(unreachable_pub)]` 18f09b0 proc_macro: add `#![warn(unreachable_pub)]` 1842568 Implement `CloneToUninit` for `ByteStr` df3007d Add doc aliases for BStr and BString 5cb237b Omit some more `From` impls to avoid inference failures e7a3f4c Support `no_rc`, `no_sync`, and `no_global_oom_handling` 69e0cdb Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100 576c40e Implement `ByteStr` and `ByteString` types cd55194 Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut` 5ee201f Library: Finalize dyn compatibility renaming 3ab30d7 Remove test panic from File::open 351484f fix OsString::from_encoded_bytes_unchecked description 54834a1 Add an example of using `carrying_mul_add` to write wider multiplication 9ed6d60 Outline panicking code for `LocalKey::with` 78ac321 core: `#[allow(unreachable_pub)]` on unreachable `pub use` b8bf74b core: add `#![warn(unreachable_pub)]` a786d0d rtstartup: add `#![warn(unreachable_pub)]` 3837368 panic_unwind: add `#![warn(unreachable_pub)]` 2836e49 Recognise new IPv6 documentation range from RFC9637 d0c2d7f 1. Removed 'rustc_nounwind' 2. Rewording of comments 76e3746 Export likely(), unlikely() and cold_path() in std::hint 579110c Correct counting to four in cell module docs 37b7496 doc: Point to methods on `Command` as alternatives to `set/remove_var` 65415fb wasi/io: remove dead files 3f6b042 remove unnecessary rustc_allowed_through_unstable_modules 814df0d further improve panic_immediate_abort by removing rtprintpanic messages 92226b8 cargo update f212028 Rewrap following accepting review suggestions from @ibraheemdev e9de010 Update library/core/src/slice/mod.rs b47f312 Update library/core/src/slice/mod.rs 36d0d2c Update library/core/src/slice/mod.rs c029f34 Update library/core/src/slice/mod.rs 153a15e Update library/core/src/slice/mod.rs 767fc8a Update library/core/src/slice/mod.rs 6b99184 Update library/core/src/slice/mod.rs 7fdb5a9 Update library/core/src/slice/mod.rs 91d5852 Update library/core/src/slice/mod.rs b74c5ef Update library/core/src/slice/mod.rs 19ace3e `then be` -> `be` based on feedback from @ibraheemdev fb23645 Improve `select_nth_unstable` documentation clarity 5597927 Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper" 43409b3 Add references to the IEEE functions for `float_next_up_down` bc27d89 Stabilize `float_next_up_down` 8762477 Fix import of pipe in kernel_copy.rs 5bbb1cb Move `std::pipe::*` into `std::io` 8f3228f Clarify note in `std::sync::LazyLock` example ed91a85 fix typo in library/alloc/src/sync.rs 9d6a5ee Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count' ba457d0 Adjust syntax 1f5085f Less unsafe in `dangling`/`without_provenance` e2af402 fix typo in typenames of pin documentation add9aec intrinsics: deprecate calling them via the unstable std::intrinsics path b45e098 add comments explaining main thread identification 95b0130 std: lazily allocate the main thread handle 21248c7 Revert "Remove the Arc rt::init allocation for thread info" 21c6a13 Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`. b88e431 Update compiler-builtins to 0.1.143 a321c9b Rename `pos` to `position` d7f058e Convert `struct FromBytesWithNulError` into enum 0233af5 Enforce syntactical stability of const traits in HIR 59c7bd2 Update compiler-builtins to 0.1.141 d26a358 Add another `Vec::splice` example baefa37 avoid nesting the user-defined main so deeply on the stack 46a5ddd use a single large catch_unwind in lang_start 1bcf2d4 uefi: helpers: Introduce OwnedDevicePath 93d7a65 path: Move is_absolute check to sys::path fe38adb Update the explanation for why we use box_new in vec! 03935e7 Add #[inline] to copy_from_slice ab32c32 Add inherent versions of MaybeUninit methods for slices 2d413be Make UniqueRc invariant for soundness e482cd8 update and clarify StructuralPartialEq docs 712289e Use `NonNull::without_provenance` within the standard library 20f9a31 Initial fs module for uefi 6aaefae Improve the safety documentation on new_unchecked 328342e Update a bunch of library types for MCP807 6aad242 alloc: remove unsound `IsZero` for raw pointers 73296f5 Fix `proc_macro::quote!` for raw ident 45693f4 Append `TokenTree` with `ToTokens` in `proc_macro::quote!` 4c4ba32 Rename the internal simpler `quote` macro to `minimal_quote` 24468aa Used pthread name functions returning result for FreeBSD and DragonFly 244044e Fix ptr::from_ref documentation example comment 6e8a9f0 Improve prose around `as_slice` example of IterMut 2ce6db3 fmt 5648f72 update cfg(bootstrap) a5353b8 update version placeholders cf09535 Remove some unnecessary `.into()` calls 826a4fc add missing provenance APIs on NonNull 032e679 More compelling env_clear() examples 76ca587 Implement Condvar::wait_timeout for targets without threads eefb8d4 Impl String::into_chars 50b5ef3 Avoid naming variables `str` df9c14e [generic_assert] Constify methods used by the formatting system 5aeea70 Add support for wasm exception handling to Emscripten target 1f30021 chore: remove redundant words in comment 90f924d Add doc aliases for `libm` and IEEE names 5035309 Mark `slice::reverse` unstably const e8ff412 Clarified the documentation on core::iter::from_fn and core::iter::successors e61568f library: fix adler{-> 2}.debug dc8ecf9 add regression test for unsound Flatten/FlatMap specialization 5a57937 do not in-place-iterate over flatmap/flatten 391fa09 Fix UWP build b915dac Bump backtrace to 0.3.75 db6083c sync to actual dep verions of backtrace 505c9dc turn rustc_box into an intrinsic e825431 core: use public method instead of instrinsic a6b4dfd core: improve comments 29a040a core: implement `bool::select_unpredictable` 05a283c Switch rtems target to panic unwind 89e889a path in detail 4c88376 Move some things to `std::sync::poison` and reexport them in `std::sync` a80bdf6 Bump backtrace to rust-lang/backtrace-rs@4d7906b 8b608e2 Try to write the panic message with a single `write_all` call 1b4f1e2 fix doc for missing Box allocator consistency c15b8d2 Remove qualification of `std::cmp::Ordering` in `Ord` doc 5a502ad std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten 3a4e4bd Avoid use of LFS64 symbols on Emscripten 06638da char to_digit: avoid unnecessary casts to u64 962df6d Remove allowing static_mut_refs lint 9135f69 Tidy up bigint mul methods 0311e75 fix doc for read write unaligned in zst operation 05086fa Avoid short writes in LineWriter 8a7f57b ptr docs: make it clear that we are talking only about memory accesses 7d553b3 Make slice::as_flattened_mut unstably const 045478f rename typed_swap → typed_swap_nonoverlapping 2cab8bb stabilize const_swap 00ccbe4 fix: typos 00996b2 Fix sentence fragment in `pin` module docs d630551 docs: inline `alloc::ffi::c_str` types to `alloc::ffi` cf02408 Fix compilation issues on other unixes 21324d8 Eliminate redundant statx syscalls fbf28c3 Unify fs::copy and io::copy 6b14b68 Update `compiler-builtins` to 0.1.140 02e5870 Update library/alloc/tests/sort/tests.rs 8cd3d37 Fix typos b8b8519 Override `carrying_mul_add` in cg_llvm 4780a73 Move `{widening, carrying}_mul` to an intrinsic with fallback MIR ce45bf7 Fix mistake in windows file open a4f7af0 Windows: Use WriteFile to write to a UTF-8 console 89063ee ptr::copy: fix docs for the overlapping case 87b9c24 Fix renaming symlinks on Windows 4a287eb docs: inline `core::ffi::c_str` types to `core::ffi` d8b1347 docs: inline `std::ffi::c_str` types to `std::ffi` d4ed292 unwinding: bump version to fix asm fb11b77 docs: update code example for Iterator#rposition 7962d95 Use scoped threads in `std::sync::Barrier` examples 6959b30 Fix forgetting to save statx availability on success 5d7b1fc Specify only that duplicates are discarded, not the order. d56fbbd Document collection `From` and `FromIterator` impls that drop duplicate keys. e1df72b Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc'; c86502a Impl FromIterator for tuples with arity 1-12 788f53a Fix formatting 31d754d stabilize const_alloc_layout 1146fc2 chore: fix typos 824cbc1 Windows: Use FILE_ALLOCATION_INFO for truncation 993b5d2 Bump `stdarch` 09bab51 core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type ee70936 Fixes safety docs for `dyn Any + Send {+ Sync}` 8336858 Use `#[derive(Default)]` instead of manually implementing it d4e71e6 Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser" 1f513d6 Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`. 18ff600 docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code d0d8ed9 docs: Permissions.readonly() also ignores root user special permissions 5396551 cargo update 1cafc25 Delete `Rvalue::Len` 634dedd Asserts the maximum value that can be returned from `Vec::len` 5775b3d Document `PointerLike` implementation restrictions. ac3f9d5 Use `&raw` for `ptr` primitive docs f84cdd8 Add `is_ascii` function optimized for x86-64 for [u8] 87e3382 Add new implementation benchmark 4de2469 Document CTFE behavior of methods that call is_null f46227d Correctly document is_null CTFE behavior. c38ebe3 Win: rename: Use offset_of! in struct size calculation bca2f10 Win: Remove special casing of the win7 target for `std::fs::rename` 309b815 Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory c15a43e Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available b661067 Less unwrap() in documentation 8b09219 Improve prose around into_slice example of IterMut 57b6c33 Improve prose around `as_slice` example of Iter 3b7e91c Improve prose around basic examples of Iter and IterMut de592e1 Abstract `ProcThreadAttributeList` into its own struct 1a3b9c9 fix `PointerLike` docs d67e367 unimplement `PointerLike` for trait objects 50fdae2 split up `#[rustc_deny_explicit_impl]` attribute d2ef96b remove reference to dangling from slice::Iter 91d4164 mri: add track_caller to thread spawning methods for better backtraces 2e728fe fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()` e4bb1ad Improve documentation of `element_offset` and related methods dc3cb5a Rename `elem_offset` to `element_offset` 9975553 docs: Mention `spare_capacity_mut()` in `Vec::set_len` ef5c8b5 build: Update libc version 3179996 fix typo in ptr/mod.rs 70eb45f Stabilize `#[diagnostic::do_not_recommend]` e6c9050 Use field init shorthand where possible dd3c9ff fix(LazyCell): documentation of get[_mut] was wrong 8958072 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 74d9a3d Fix typo in uint_macros.rs 456c585 remove obsolete comment and pub(super) visibility 11c6d20 remove bounds from vec and linkedlist ExtractIf a7a3d26 Add a range argument to vec.extract_if 2969468 Stabilize #[coverage] attribute 2f2ceea Remove `rustc::existing_doc_keyword` lint. 9aaac75 Move `doc(keyword = "while")`. fcf7f9c rustdoc-search: let From and Into be unboxed eba507c Replace i32 by char in `split_at` & `_unchecked` d15e453 Add clarity to the "greater" of `VecDeque::insert` 410f6da Replace i32 by char to add clarity 0e904ce Add value accessor methods to `Mutex` and `RwLock` 262bcd0 std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. 17eff04 UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc 689aca8 UniqueRc: PinCoerceUnsized and DerefPure 08a5c4b UniqueRc: comparisons and Hash 0c4e447 UniqueRc: Add more trait impls. 348a0e7 Remove support for specializing ToString outside the standard library 566529d Correct spelling of CURRENT_RUSTC_VERSION a64c14a Add documentation for anonymous pipe module 58c86ae feat: clarify how to use `black_box()` 7e4e4d1 Update includes in '/library/core/src/error.rs'; d401553 Fix building `std` for Hermit after `c_char` change 63313ed Fix `Path::is_absolute` on Hermit 06a16da Fix typos in docs on provenance 16b082a Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators 62684fc Switch inline(always) in core/src/fmt/rt.rs to plain inline cf463f2 Reword prelude for AsyncFn stabilization fae7fe1 Stabilize async closures 3d9dd3a Remove consteval note from <*mut T>::align_offset docs. f2c28f1 Stabilize the Rust 2024 prelude 2ff9c55 Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files 8b2a029 Move some alloc tests to the alloctests crate bd99475 control libunwind linkage mode via `crt-static` on gnullvm targets e10d828 Change `GetManyMutError` to match T-libs-api decision 92a5ae2 Add references to the specific ABI documents f8d37d7 Remove l4re from the unsigned char operating system list 5f5685c De-duplicate and improve definition of core::ffi::c_char 21d844f Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless 949ee16 stabilize const_nonnull_new 0679c08 Remove rustc_const_stable attribute on const NOOP a32ae94 Add libc funcitons only for wasm32-wasip1-threads. a3ec8d0 Fix compilation for wasm32-wasip1 (without threads). fd1d215 Use UNIX thread_local implementation for WASI. 06921c0 Run TLS destructors for wasm32-wasip1-threads 3874c89 Downgrade cc f1a264f Run `cargo update` and update licenses a58be7b chore: Improve doc comments 397bcff Refactor ReadDir into a state machine 6153908 wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next 3f98267 docs: better examples for `std::ops::ControlFlow` 7cb7596 Expand home_dir docs fc8a765 Add doc alias 'then_with' for `then` method on `bool` db8c39d Adds new intrinsic declaration 379df82 Define acronym for thread local storage 7b3731b Add a `collect_into` tuple test case 0bb92ef Don't impl Extend for 13-tuples 250c87a Simplify documentation for Extend impl for tuples e2cd2d5 Add Extend impls for tuples of arity 1 through 12 5eb2a86 Unbreak tidy 29f3a86 Stabilize `std::io::ErrorKind::QuotaExceeded` 97e2c6e Stabilize `std::io::ErrorKind::CrossesDevices` 5aa480d Access members of `FormattingOptions` directly instead of via getters/setters e71fea0 Removed constness for methods receiving a `&mut` parameter a254d48 Added better reason for exposing `flags` and `get_flags` as unstable c786821 Formatted 73c8a20 Refactored FormattingOptions to use a bitmask for storing flags 8e22d48 Revert "Turned public+unstable+hidden functions into private functions" 3051100 Turned public+unstable+hidden functions into private functions 3366b68 Made all fns const 69eabf2 impl Default for fmt::FormattingOptions 15a5a57 Fixed copy+paste error in comment b8bbddc fmt::FormattingOptions: Renamed `alignment` to `align` 45dd056 Formatter::with_options: Use different lifetimes bd252f2 Fixed another broken test f266e6e Added struct `fmt::FormattingOptions` 32785a2 Formatter: Access members via getter methods wherever possible 562a83e Stabilize noop_waker 1535fa5 Improve documentation c677fc6 Reformat Python code with `ruff` 270d5c9 Improve comments for the default backtrace printer 8e7753a clarify simd_relaxed_fma non-determinism a2668c5 Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. 10a1127 Rename `core_pattern_type` and `core_pattern_types` lib feature gates to `pattern_type_macro` 40d7d8b Allow fn pointers comparisons lint in library 232b94a Update `NonZero` and `NonNull` to not field-project (per MCP807) 3279c75 Add `core::arch::breakpoint` and test e7d8eb8 a release operation synchronizes with an acquire operation ae0494d Update the definition of `borrowing_sub` a2da150 stabilize const_{size,align}_of_val 8ed7f7b ./x miri: fix sysroot build 84a97e0 stabilize const_collections_with_hasher and build_hasher_default_const_new 1c8a632 Match simd_relaxed_fma documentation to fmuladd intrinsic 86d2d06 Add simd_relaxed_fma intrinsic 80b40ee Fix `f16::midpoint` const feature gate 26f5f87 Use c"lit" for CStrings without unwrap 58e53cc Stabilize `const_maybe_uninit_write` 93972b9 Fix docs for '<[T]>::as_array'; 0d0f480 Stabilize `ptr::fn_addr_eq` 6e5e5bf rustc_allow_const_fn_unstable is not used in proc_macro d99ed6c get rid of a bunch of unnecessary rustc_const_unstable 556f833 remove a whole bunch of unnecessary const feature gates f613c50 add isatty alias for is_terminal be01379 Stabilize unsigned `num_midpoint` feature c237dfd Mark `slice::copy_from_slice` unstably const 0d6fa07 Fix chaining `carrying_add`s 4805fec add test for bytewise ptr::swap of a pointer 6f638fb move swap_nonoverlapping constness to separate feature gate 5dc589d move slice::swap_unchecked constness to slice_swap_unchecked feature gate bee52ab Add diagnostic item for `std::ops::ControlFlow` dd9744e update link to "C++ Exceptions under the hood" blog be5dd26 fix: fix codeblocks in `PathBuf` example b5ad6a3 fix: hurd build, stat64.st_fsid was renamed to st_dev 1ca89bc std: clarify comments about initialization 9f0aebd std: refactor `pthread`-based synchronization 1e9b356 bump hashbrown version 0c51851 Fill in a `BTreeSet::entry` example 9826068 Add a tracking issue for `btree_set_entry` d09b3b4 Add `BTreeSet` entry APIs to match `HashSet` e3b20e2 Implement code review ca558ad thread::available_parallelism for wasm32-wasip1-threads 7d3fbb4 changes old intrinsic declaration to new declaration 606cec0 Fix and undeprecate home_dir() 6694a52 refine mir debuginfo docs afd0dc2 Doc comment custom MIR debuginfo. ccd9772 Stabilize `extended_varargs_abi_support` 720abf1 update cfgs 298217a replace placeholder version 14662ee Also use zero when referencing to capacity or length 749f43f Use consistent wording in docs, use zero instead of 0 33dbe63 Fix typos in pin.rs 1e95e5f Share inline(never) generics across crates 53d036c fmt 59b9363 aix: create shim for lgammaf_r 5d0eb91 Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods; 65407e2 Remove one stray space. c0d3feb Update chown help with a link and adding cap warning d3c8167 Expand std::os::unix::fs::chown() doc with a warning eeeaadf Add missing code examples on `LocalKey` 95d7b24 Make profiler_builtins `#![no_core]` instead of just `#![no_std]` dafde0e Remove unnecessary `#![allow(unused_features)]` 6c01051 Sort and separate lint/feature attributes in `profiler_builtins` 3fa99c8 std: update internal uses of `io::const_error!` 7af72dc std: expose `const_io_error!` as `const_error!` 0c30d60 Constify Drop and Destruct c9edc2b miri: disable test_downgrade_observe test on macOS 2cb666e Shorten the `MaybeUninit` `Debug` implementation 50de1bb Support ranges in `<[T]>::get_many_mut()` 9879220 btree: add `{Entry,VacantEntry}::insert_entry` 53619a4 std::thread: avoid leading whitespace in some panic messages ac77d16 Added a doc test for std::path::strip_prefix git-subtree-dir: library git-subtree-split: d9afaa0
1 parent 8fe8f56 commit 65f1b74

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

Lines changed: 26 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 11 additions & 0 deletions
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

Lines changed: 5 additions & 0 deletions
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

Lines changed: 1 addition & 4 deletions
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)