Skip to content

Commit

Permalink
Squashed 'library/' changes from 78fc550..0b9e7db
Browse files Browse the repository at this point in the history
0b9e7db [create-pull-request] automated change
f059e7f Rustfmt
29017b4 occured -> occurred
f805788 Allow Rust to use a number of libc filesystem calls
014a4f7 Windows: Test that deleting a running binary fails
288094f Update platform information for remove_file
1cbc70e Windows: remove readonly files
419fb5a Make `AsyncFnOnce`, `AsyncFnMut`, `AsyncFn` non-`#[fundamental]`
fa42c72 Document `Sum::sum` returns additive identities for `[]`
caa8321 Clean up 'HashMap' and 'HashSet' docs;
0d7271a Optimize `Rc::<str>::default()` implementation
59c1ce8 std: get rid of `sys_common::io`
b762461 std: move `io` module out of `pal`
9e723f2 Move two windows process tests to tests/ui
effecb5 tests(std/net): remove outdated `base_port` calculation
499fd71 sys: net: Add UEFI stubs
7960886 Remove some unnecessary parens in `assert!` conditions
f5cf4cc remove use of `feature(trait_upcasting)` from core tests
3f9c9a5 Stabilise 'Cursor::{get_mut, set_position}' in 'const' scenarios;
5a3b4b6 Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut`
38d4193 tests(std): don't output to std{out,err} in `test_creation_flags` and `test_proc_thread_attributes`
153a114 Fix unreachable_pub lint for hermit target
7984f24 Fix link in from_fn.rs
a4c3372 Use `widening_mul`
b017b75 Add OneSidedRangeBound to eliminate panic in `split_point_of`
ce263a9 Rename slice::take methods to split_off
4dfb103 Update `compiler-builtins` to 0.1.145
dd3d28a specify a prim@slice in docs
f549186 implement inherent str constructors
454ac7a std: move network code into `sys`
830d4ad uefi: process: Add support for command environment variables
b2bd55d Mark `std::fmt::from_fn` as `#[must_use]`
667bd76 Rename rustc_contract to contract
0d5c81f Improve contracts intrisics and remove wrapper function
2fe37e3 Separate contract feature gates for the internal machinery
b404184 Desugars contract into the internal AST extensions
2e62562 Express contracts as part of function header and lower it to the contract lang items
9c3c339 contracts: added lang items that act as hooks for rustc-injected code to invoke.
3a72fe1 Contracts core intrinsics.
b57cfcf More PR feedback
b4d438a PR feedback
953a621 Add `unchecked_disjoint_bitor` with fallback intrinsic implementation
939e4bb Add note about `FnPtr` being exposed as public bound
9e85484 Add `cast_signed` and `cast_unsigned` methods for `NonZero` types
01e4bd7 For NonZero impl macros, give unsigned impls access to the corresponding signed type
3145ee6 std::fs: further simplify dirent64 handling
8dafc28 add UnsafeCell direct access APIs
682a575 primitive type migration from mod.rs to primitives.rs
2ec42e4 implement unstable `new_range` feature
4072f33 std::range
cdd8d4e Remove stabilized feature gate
350545d Move env modifying tests to a separate integration test
11b6c6a Fix for SGX
334c705 Fix benchmarking of libstd
78f6fc7 Move std::sync unit tests to integration tests
60c3720 Move std::thread_local unit tests to integration tests
179bb75 Move std::time unit tests to integration tests
e26eb65 Move std::path unit tests to integration tests
fcbf7a3 Move std::panic unit tests to integration tests
6f8c5c7 Move std::num unit tests to integration tests
df99531 Move std float unit tests to integration tests
cb75c03 Move std::error unit tests to integration tests
08d046c Move std::env unit tests to integration tests
db46a3b no unsafe pointer and no overflowing_literals in fmt::Display of integers
129af80 black_box integer-input on fmt benches
ab1177f OnceCell & OnceLock docs: Using (un)initialized consistently
f945007 Docs for f16 and f128: correct a typo and add details
ba5ff80 rustc_allowed_through_unstable_modules: require deprecation message
4c7a1b5 Update encode_utf16 to mention it is native endian
2a5ceb7 remove Rustc{En,De}codable from library and compiler
c7a5b34 make rustc_encodable_decodable feature properly unstable
3866288 Fix sentence in process::abort
d45e877 document ptr comparison being by address
e9388ea stabilize `once_wait`
c3bd3dd implement all min/max fns in terms of `<`/`is_lt`
9537f68 improve doc tests for (min/max/minmax).* functions
b9a984a docs: Documented Send and Sync requirements for Mutex + MutexGuard
0764fa5 Add documentation for derive(CoercePointee)
c5f1867 Fix off-by-one error causing driftsort to crash
7bfe9c9 Insert null checks for pointer dereferences when debug assertions are enabled
8564335 atomic: extend compare_and_swap migration docs
c95ac30 float::min/max: mention the non-determinism around signed 0
ce31fd9 Stabilize `const_black_box`
7fbae89 Improve documentation for file locking
fd6c67e Remove minor future footgun in `impl Debug for MaybeUninit`
1a3fc3e Add `AsyncFn*` to core prelude
778b886 uefi: Implement path
7f3d223 Implement `int_from_ascii` (rust-lang#134821)
c48b602 Cleanup docs for Allocator
2072889 btree/node.rs: pop_internal_level: does not invalidate other handles
2e09211 btree/node.rs: remove incorrect comment from pop_internal_level docs
54e4132 add inline attribute and codegen test
ae4ab8d split slice::ptr_rotate into three separate algorithms, to hopefully help inlining
4b82818 optimize slice::ptr_rotate for compile-time-constant small rotates
6127357 Test pipes also when not running on Windows and Linux simultaneously
f744234 uefi: process: Fix args
2426aa2 [cfg_match] Document the use of expressions
386689a Update comments and sort target_arch in c_char_definition
a2da226 [Clippy] Add vec_reserve & vecdeque_reserve diagnostic items
d70d068 Fix platform-specific doc string for AtomicUsize::from_mut to be platform-independent
3ff6a84 Document powf and powi calls that always return 1.0
c712283 Document purpose of closure in from_fn.rs more clearly
62aef6a add missing allocator safety in alloc crate
c045cb9 alloc: add `#![warn(unreachable_pub)]`
6fec5e2 Implement `AtomicT::update` & `AtomicT::try_update`
8c6a8ef fix doc for std::sync::mpmc
bb2367b Implement phantom variance markers
1887e8b Clarify WindowsMut (Lending)Iterator
f82e364 compiler_fence: fix example
328866d Update `std::io::{pipe, PipeReader, PipeWriter}` docs the new location
73169e3 Move `std::io::pipe` code into its own file
4b3b41d Actually run the bstr test
6ca64ff Update comment
cd2b90a Put all coretests in a separate crate
2fe2be8 Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls
2d4d2cd add nto80 x86-64 and aarch64 target
1f5f5a6 Add support for QNX 7.1 with io-sock on x64
e3249e7 Add new target for supporting Neutrino QNX 6.1 with `io-socket` network stack on aarch64
df89792 Update a bunch of comments from before wasi support was added
5998db2 Remove a bunch of emscripten test ignores
9919521 Fix testing of the standard library with Emscripten
a27c059 fix(libtest): Deprecate '--logfile'
d64e054 docs: fix typo in std::pin overview
9aeac8c ports last few library files to new intrinsic style
b2ec24f Improve and expand documentation of pipes
e81a9b7 Fix set_name in thread mod for NuttX
067e77e Fix `FormattingOptions` instantiation with `Default`
c847e44 Update library/core/src/num/nonzero.rs
ea8c3cd Add memory layout documentation to generic NonZero<T>
c85dcdf Fix whitespace
a7685f1 document order of items in iterator from drain
d8c1039 Add `File already exists` error doc to `hard_link` function
b170e81 Doc difference between extend and extend_from_slice
098d0a3 Make `Vec::pop_if` a bit more presentable
c7491b0 Implement `VecDeque::pop_front_if` & `VecDeque::pop_back_if`
e5bad03 remove pointless allowed_through_unstable_modules on TryFromSliceError
e1b82ec test: add `#![warn(unreachable_pub)]`
e26f831 proc_macro: add `#![warn(unreachable_pub)]`
6817ff0 Implement `CloneToUninit` for `ByteStr`
b5355d9 Add doc aliases for BStr and BString
05755b6 Omit some more `From` impls to avoid inference failures
d8a009a Support `no_rc`, `no_sync`, and `no_global_oom_handling`
afa439f Add `#[cfg(not(test))]` to some impls to work around rust-lang#135100
03b25cb Implement `ByteStr` and `ByteString` types
687094a Remove erroneous `unsafe` in `BTreeSet::upper_bound_mut`
16620b9 Library: Finalize dyn compatibility renaming
437c97c Remove test panic from File::open
299e014 fix OsString::from_encoded_bytes_unchecked description
b41b9a9 Add an example of using `carrying_mul_add` to write wider multiplication
fca61b1 Outline panicking code for `LocalKey::with`
da43443 core: `#[allow(unreachable_pub)]` on unreachable `pub use`
e61b304 core: add `#![warn(unreachable_pub)]`
5cffae3 rtstartup: add `#![warn(unreachable_pub)]`
325bc46 panic_unwind: add `#![warn(unreachable_pub)]`
0d1ed84 Recognise new IPv6 documentation range from RFC9637
def732c 1. Removed 'rustc_nounwind' 2. Rewording of comments
2721b88 Export likely(), unlikely() and cold_path() in std::hint
d663fae Correct counting to four in cell module docs
109002f doc: Point to methods on `Command` as alternatives to `set/remove_var`
8cd5f62 wasi/io: remove dead files
7761adb remove unnecessary rustc_allowed_through_unstable_modules
f05c8ed further improve panic_immediate_abort by removing rtprintpanic messages
32dd115 cargo update
2fc6443 Rewrap following accepting review suggestions from @ibraheemdev
1a5db82 Update library/core/src/slice/mod.rs
0ae3097 Update library/core/src/slice/mod.rs
462fdbe Update library/core/src/slice/mod.rs
0614fb0 Update library/core/src/slice/mod.rs
5b97407 Update library/core/src/slice/mod.rs
022b497 Update library/core/src/slice/mod.rs
3a94fae Update library/core/src/slice/mod.rs
e580ead Update library/core/src/slice/mod.rs
be633eb Update library/core/src/slice/mod.rs
abf598e Update library/core/src/slice/mod.rs
f053fc4 `then be` -> `be` based on feedback from @ibraheemdev
e25fb35 Improve `select_nth_unstable` documentation clarity
23a42dc Revert "Auto merge of rust-lang#134330 - scottmcm:no-more-rvalue-len, r=matthewjasper"
cf73ee0 Add references to the IEEE functions for `float_next_up_down`
e1b34be Stabilize `float_next_up_down`
bdb6b9c Fix import of pipe in kernel_copy.rs
635777b Move `std::pipe::*` into `std::io`
c4c099e Clarify note in `std::sync::LazyLock` example
4138f0f fix typo in library/alloc/src/sync.rs
e84d1ed Add missing safety descriptions to Arc's 'from_raw','increment_strong_count','decrement_strong_count'
6913a98 Adjust syntax
7d7fce0 Less unsafe in `dangling`/`without_provenance`
55e633d fix typo in typenames of pin documentation
d8f420f intrinsics: deprecate calling them via the unstable std::intrinsics path
93a4ed4 add comments explaining main thread identification
b510797 std: lazily allocate the main thread handle
15b8539 Revert "Remove the Arc rt::init allocation for thread info"
1ed2d58 Update ReadDir::next in std::sys::pal::unix::fs to use `&raw const (*ptr).field` instead of `ptr.offset(...).cast()`.
ba3bc2f Update compiler-builtins to 0.1.143
c341a47 Rename `pos` to `position`
809d626 Convert `struct FromBytesWithNulError` into enum
fd23a66 Enforce syntactical stability of const traits in HIR
26b1e1e Update compiler-builtins to 0.1.141
01e1781 Add another `Vec::splice` example
b0d4ae7 avoid nesting the user-defined main so deeply on the stack
bccd406 use a single large catch_unwind in lang_start
1abc128 uefi: helpers: Introduce OwnedDevicePath
0951f12 path: Move is_absolute check to sys::path
ca99942 Update the explanation for why we use box_new in vec!
06e96a5 Add #[inline] to copy_from_slice
f3d4a4e Add inherent versions of MaybeUninit methods for slices
d01e0c8 Make UniqueRc invariant for soundness
debcb38 update and clarify StructuralPartialEq docs
e158c6a Use `NonNull::without_provenance` within the standard library
5054a17 Initial fs module for uefi
36f3dfc Improve the safety documentation on new_unchecked
5b8ac3d Update a bunch of library types for MCP807
e4d894a alloc: remove unsound `IsZero` for raw pointers
3d9dd4e Fix `proc_macro::quote!` for raw ident
3b536f1 Append `TokenTree` with `ToTokens` in `proc_macro::quote!`
14f03c7 Rename the internal simpler `quote` macro to `minimal_quote`
196be4e Used pthread name functions returning result for FreeBSD and DragonFly
45dbc07 Fix ptr::from_ref documentation example comment
34d7ff8 Improve prose around `as_slice` example of IterMut
31c3cd2 fmt
8c7eee1 update cfg(bootstrap)
57b242a update version placeholders
f72435b Remove some unnecessary `.into()` calls
ae0d07e add missing provenance APIs on NonNull
ce0646c More compelling env_clear() examples
0b18c05 Implement Condvar::wait_timeout for targets without threads
6f6f711 Impl String::into_chars
01acc35 Avoid naming variables `str`
42c746f [generic_assert] Constify methods used by the formatting system
367da05 Add support for wasm exception handling to Emscripten target
a4abafe chore: remove redundant words in comment
290c47e Add doc aliases for `libm` and IEEE names
af0b52e Mark `slice::reverse` unstably const
9450e58 Clarified the documentation on core::iter::from_fn and core::iter::successors
33dbeb0 library: fix adler{-> 2}.debug
ae03076 add regression test for unsound Flatten/FlatMap specialization
1d9a7b5 do not in-place-iterate over flatmap/flatten
277fe76 Fix UWP build
a8fc346 Bump backtrace to 0.3.75
87320a9 sync to actual dep verions of backtrace
f3304cd turn rustc_box into an intrinsic
35eeef9 core: use public method instead of instrinsic
0016e59 core: improve comments
f33ea4b core: implement `bool::select_unpredictable`
0a9c541 Switch rtems target to panic unwind
20a0630 path in detail
7d16d90 Move some things to `std::sync::poison` and reexport them in `std::sync`
3cbf713 Bump backtrace to rust-lang/backtrace-rs@4d7906b
fa7a493 Try to write the panic message with a single `write_all` call
2e008d6 fix doc for missing Box allocator consistency
46a0479 Remove qualification of `std::cmp::Ordering` in `Ord` doc
01fcc39 std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten
ce148e6 Avoid use of LFS64 symbols on Emscripten
38f97ec char to_digit: avoid unnecessary casts to u64
9b6bf23 Remove allowing static_mut_refs lint
9c0eb4e Tidy up bigint mul methods
4b26493 fix doc for read write unaligned in zst operation
6243582 Avoid short writes in LineWriter
d44006f ptr docs: make it clear that we are talking only about memory accesses
35ec41a Make slice::as_flattened_mut unstably const
11db185 rename typed_swap → typed_swap_nonoverlapping
d636681 stabilize const_swap
5d3ad9a fix: typos
62c5c26 Fix sentence fragment in `pin` module docs
9a934c1 docs: inline `alloc::ffi::c_str` types to `alloc::ffi`
a6b3f09 Fix compilation issues on other unixes
d0f1af9 Eliminate redundant statx syscalls
be3774f Unify fs::copy and io::copy
20e3c58 Update `compiler-builtins` to 0.1.140
0eebba5 Update library/alloc/tests/sort/tests.rs
757571e Fix typos
0398164 Override `carrying_mul_add` in cg_llvm
4748524 Move `{widening, carrying}_mul` to an intrinsic with fallback MIR
718f7b2 Fix mistake in windows file open
733408a Windows: Use WriteFile to write to a UTF-8 console
80dfbf1 ptr::copy: fix docs for the overlapping case
5b41e79 Fix renaming symlinks on Windows
21fd94e docs: inline `core::ffi::c_str` types to `core::ffi`
14b4a44 docs: inline `std::ffi::c_str` types to `std::ffi`
4e70568 unwinding: bump version to fix asm
8e2254c docs: update code example for Iterator#rposition
3f1dd8f Use scoped threads in `std::sync::Barrier` examples
a536bc6 Fix forgetting to save statx availability on success
0e00943 Specify only that duplicates are discarded, not the order.
aca9dc1 Document collection `From` and `FromIterator` impls that drop duplicate keys.
92ad20f Add 'into_array' conversion destructors for 'Box', 'Rc', and 'Arc';
149fcf9 Impl FromIterator for tuples with arity 1-12
bff596c Fix formatting
b65ce37 stabilize const_alloc_layout
95b8f8d chore: fix typos
1065b32 Windows: Use FILE_ALLOCATION_INFO for truncation
7124a6e Bump `stdarch`
48f4c8e core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets in the type
a086f15 Fixes safety docs for `dyn Any + Send {+ Sync}`
ba57b16 Use `#[derive(Default)]` instead of manually implementing it
fb6e914 Revert "Auto merge of rust-lang#130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser"
da4d985 Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`.
f6d97a5 docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code
6fe097d docs: Permissions.readonly() also ignores root user special permissions
db86977 cargo update
307ebab Delete `Rvalue::Len`
2f2c17f Asserts the maximum value that can be returned from `Vec::len`
79ab9db Document `PointerLike` implementation restrictions.
3ee2730 Use `&raw` for `ptr` primitive docs
57096ff Add `is_ascii` function optimized for x86-64 for [u8]
5c5bf83 Add new implementation benchmark
790fc9a Document CTFE behavior of methods that call is_null
6822f3f Correctly document is_null CTFE behavior.
76cb181 Win: rename: Use offset_of! in struct size calculation
d7ec7cf Win: Remove special casing of the win7 target for `std::fs::rename`
07430bf Win: Add test cases for renaming a directory while the target file is opened and for renaming over a non-empty directory
64f5201 Win: Use `FILE_RENAME_FLAG_POSIX_SEMANTICS` for `std::fs::rename` if available
da73525 Less unwrap() in documentation
6b44775 Improve prose around into_slice example of IterMut
2e36c44 Improve prose around `as_slice` example of Iter
5140d3c Improve prose around basic examples of Iter and IterMut
949d89d Abstract `ProcThreadAttributeList` into its own struct
c14564c fix `PointerLike` docs
b940268 unimplement `PointerLike` for trait objects
086fa9c split up `#[rustc_deny_explicit_impl]` attribute
6b77fc6 remove reference to dangling from slice::Iter
721e98b mri: add track_caller to thread spawning methods for better backtraces
7d2cf55 fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()`
b0c0bf1 Improve documentation of `element_offset` and related methods
a59f3c7 Rename `elem_offset` to `element_offset`
4b1b88d docs: Mention `spare_capacity_mut()` in `Vec::set_len`
ed7c545 build: Update libc version
9468563 fix typo in ptr/mod.rs
96f1502 Stabilize `#[diagnostic::do_not_recommend]`
6adf47a Use field init shorthand where possible
9e58ae5 fix(LazyCell): documentation of get[_mut] was wrong
07e0a8f compiler & tools dependencies:     Updating allocator-api2 v0.2.20 -> v0.2.21     Updating annotate-snippets v0.11.4 -> v0.11.5     Updating anyhow v1.0.93 -> v1.0.94     Updating bstr v1.11.0 -> v1.11.1     Updating chrono v0.4.38 -> v0.4.39     Updating clap v4.5.21 -> v4.5.23     Updating clap_builder v4.5.21 -> v4.5.23     Updating clap_complete v4.5.38 -> v4.5.39     Updating clap_lex v0.7.3 -> v0.7.4     Updating colored v2.1.0 -> v2.2.0     Updating console v0.15.8 -> v0.15.10     Updating crossbeam-channel v0.5.13 -> v0.5.14     Updating crossbeam-deque v0.8.5 -> v0.8.6     Updating crossbeam-utils v0.8.20 -> v0.8.21     Updating encode_unicode v0.3.6 -> v1.0.0     Updating fastrand v2.2.0 -> v2.3.0     Updating home v0.5.9 -> v0.5.11     Updating js-sys v0.3.74 -> v0.3.76     Updating libc v0.2.167 -> v0.2.168     Updating miniz_oxide v0.8.0 -> v0.8.1     Updating pest v2.7.14 -> v2.7.15     Updating pest_derive v2.7.14 -> v2.7.15     Updating pest_generator v2.7.14 -> v2.7.15     Updating pest_meta v2.7.14 -> v2.7.15     Updating redox_syscall v0.5.7 -> v0.5.8     Updating rustc-stable-hash v0.1.0 -> v0.1.1     Updating rustix v0.38.41 -> v0.38.42     Updating self_cell v1.0.4 -> v1.1.0     Updating semver v1.0.23 -> v1.0.24     Updating serde v1.0.215 -> v1.0.216     Updating serde_derive v1.0.215 -> v1.0.216       Adding thiserror v2.0.7       Adding thiserror-impl v2.0.7     Updating time v0.3.36 -> v0.3.37     Updating time-macros v0.2.18 -> v0.2.19     Updating tokio v1.41.1 -> v1.42.0     Updating wasm-bindgen v0.2.97 -> v0.2.99     Updating wasm-bindgen-backend v0.2.97 -> v0.2.99     Updating wasm-bindgen-macro v0.2.97 -> v0.2.99     Updating wasm-bindgen-macro-support v0.2.97 -> v0.2.99     Updating wasm-bindgen-shared v0.2.97 -> v0.2.99     Updating wasm-encoder v0.221.0 -> v0.221.2     Updating wasmparser v0.221.0 -> v0.221.2     Updating wast v221.0.0 -> v221.0.2     Updating wat v1.221.0 -> v1.221.2
387771b Fix typo in uint_macros.rs
e484ea7 remove obsolete comment and pub(super) visibility
9f99881 remove bounds from vec and linkedlist ExtractIf
27e1ff9 Add a range argument to vec.extract_if
8f4975c Stabilize #[coverage] attribute
1b6d528 Remove `rustc::existing_doc_keyword` lint.
eb7543d Move `doc(keyword = "while")`.
35fd5c8 rustdoc-search: let From and Into be unboxed
2dea5e9 Replace i32 by char in `split_at` & `_unchecked`
1a7d114 Add clarity to the "greater" of `VecDeque::insert`
9a3b8ec Replace i32 by char to add clarity
5857574 Add value accessor methods to `Mutex` and `RwLock`
44673db std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4.
bf95fb3 UniqueRc: platform-specific AsFd/Handle/etc impls to mirror Rc
8d42c1c UniqueRc: PinCoerceUnsized and DerefPure
50d1219 UniqueRc: comparisons and Hash
beee1d6 UniqueRc: Add more trait impls.
9abb5f4 Remove support for specializing ToString outside the standard library
6a01fcc Correct spelling of CURRENT_RUSTC_VERSION
8a54b12 Add documentation for anonymous pipe module
b232073 feat: clarify how to use `black_box()`
e20aad1 Update includes in '/library/core/src/error.rs';
8a6245a Fix building `std` for Hermit after `c_char` change
2814149 Fix `Path::is_absolute` on Hermit
3cd0c58 Fix typos in docs on provenance
0f11be7 Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators
fedd63a Switch inline(always) in core/src/fmt/rt.rs to plain inline
ad6d695 Reword prelude for AsyncFn stabilization
fa41712 Stabilize async closures
6e17ac2 Remove consteval note from <*mut T>::align_offset docs.
1ca3b29 Stabilize the Rust 2024 prelude
04589bf Forbid unsafe_op_in_unsafe_fn in hurd-specific os and sys files
6936a3a Move some alloc tests to the alloctests crate
17e0b25 control libunwind linkage mode via `crt-static` on gnullvm targets
a0662fc Change `GetManyMutError` to match T-libs-api decision
0652319 Add references to the specific ABI documents
5950abe Remove l4re from the unsigned char operating system list
3d8ce62 De-duplicate and improve definition of core::ffi::c_char
269ff73 Add a note saying that `{u8,i8}::from_{be,le,ne}_bytes` is meaningless
4b7c62a stabilize const_nonnull_new
1785724 Remove rustc_const_stable attribute on const NOOP
3657a2f Add libc funcitons only for wasm32-wasip1-threads.
7b6a5e3 Fix compilation for wasm32-wasip1 (without threads).
4e5022f Use UNIX thread_local implementation for WASI.
14614ca Run TLS destructors for wasm32-wasip1-threads
ce6887f Downgrade cc
07cd76f Run `cargo update` and update licenses
4b97609 chore: Improve doc comments
eac5d8e Refactor ReadDir into a state machine
05eed01 wasi/fs: Improve stopping condition for <ReadDir as Iterator>::next
7a61684 docs: better examples for `std::ops::ControlFlow`
00006b3 Expand home_dir docs
abc978e Add doc alias 'then_with' for `then` method on `bool`
43a1dd2 Adds new intrinsic declaration
64589b0 Define acronym for thread local storage
712dda5 Add a `collect_into` tuple test case
ed37aa7 Don't impl Extend for 13-tuples
a92ee38 Simplify documentation for Extend impl for tuples
77bc478 Add Extend impls for tuples of arity 1 through 12
78daa85 Unbreak tidy
e29e39c Stabilize `std::io::ErrorKind::QuotaExceeded`
443f50e Stabilize `std::io::ErrorKind::CrossesDevices`
827daef Access members of `FormattingOptions` directly instead of via getters/setters
3fdc4c5 Removed constness for methods receiving a `&mut` parameter
d28905f Added better reason for exposing `flags` and `get_flags` as unstable
bad6617 Formatted
91b3404 Refactored FormattingOptions to use a bitmask for storing flags
21d3717 Revert "Turned public+unstable+hidden functions into private functions"
253cd52 Turned public+unstable+hidden functions into private functions
a9ae91d Made all fns const
a5074bc impl Default for fmt::FormattingOptions
fd1eca3 Fixed copy+paste error in comment
32a02c5 fmt::FormattingOptions: Renamed `alignment` to `align`
7f29285 Formatter::with_options: Use different lifetimes
98913fe Fixed another broken test
66ce53a Added struct `fmt::FormattingOptions`
9d392bc Formatter: Access members via getter methods wherever possible
0702ebd Stabilize noop_waker
72edc45 Improve documentation
2e03030 Reformat Python code with `ruff`
c5c2a51 Improve comments for the default backtrace printer
ab2cbd9 clarify simd_relaxed_fma non-determinism
a800a05 Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa.
be1d244 Rename `core_pattern_type` and `core_pattern_types` lib feature  gates to `pattern_type_macro`
258dab4 Allow fn pointers comparisons lint in library
e0b40eb Update `NonZero` and `NonNull` to not field-project (per MCP807)
6583dcc Add `core::arch::breakpoint` and test
b7c6ad0 a release operation synchronizes with an acquire operation
86f0820 Update the definition of `borrowing_sub`
bb323d6 stabilize const_{size,align}_of_val
ecd9b26 ./x miri: fix sysroot build
e450fe4 stabilize const_collections_with_hasher and build_hasher_default_const_new
025019d Match simd_relaxed_fma documentation to fmuladd intrinsic
91d7f95 Add simd_relaxed_fma intrinsic
cd8867f Fix `f16::midpoint` const feature gate
2e01971 Use c"lit" for CStrings without unwrap
d6ba798 Stabilize `const_maybe_uninit_write`
3f1c59a Fix docs for '<[T]>::as_array';
0a2ae54 Stabilize `ptr::fn_addr_eq`
25fa15b rustc_allow_const_fn_unstable is not used in proc_macro
bb786e4 get rid of a bunch of unnecessary rustc_const_unstable
fd4b044 remove a whole bunch of unnecessary const feature gates
ee8986b add isatty alias for is_terminal
70dae27 Stabilize unsigned `num_midpoint` feature
b37b958 Mark `slice::copy_from_slice` unstably const
c6aef10 Fix chaining `carrying_add`s
19db697 add test for bytewise ptr::swap of a pointer
9c30ff2 move swap_nonoverlapping constness to separate feature gate
9b3c313 move slice::swap_unchecked constness to slice_swap_unchecked feature gate
a513619 Add diagnostic item for `std::ops::ControlFlow`
5f4a51c update link to "C++ Exceptions under the hood" blog
468ae7a fix: fix codeblocks in `PathBuf` example
3cddab3 fix: hurd build, stat64.st_fsid was renamed to st_dev
9750511 std: clarify comments about initialization
95b00fe std: refactor `pthread`-based synchronization
aaa4c27 bump hashbrown version
3a9be70 Fill in a `BTreeSet::entry` example
eabfb8d Add a tracking issue for `btree_set_entry`
a955bed Add `BTreeSet` entry APIs to match `HashSet`
a0e2eee Implement code review
3eda322 thread::available_parallelism for wasm32-wasip1-threads
2d85b33 changes old intrinsic declaration to new declaration
0a909b6 Fix and undeprecate home_dir()
0809b3f refine mir debuginfo docs
fcb2927 Doc comment custom MIR debuginfo.
ba3ecc8 Stabilize `extended_varargs_abi_support`
6295df0 update cfgs
cd20f45 replace placeholder version
7b4cce7 Also use zero when referencing to capacity or length
14f81c5 Use consistent wording in docs, use zero instead of 0
754725a Fix typos in pin.rs
fa5ddf8 Share inline(never) generics across crates
21ff4b4 fmt
7071ec8 aix: create shim for lgammaf_r
8df302f Add '<[T]>::as_array', '<[T]>::as_mut_array', '<*const [T]>::as_array', and '<*mut [T]>::as_mut_array' conversion methods;
542a3a9 Remove one stray space.
497ac2b Update chown help with a link and adding cap warning
d0226cf Expand std::os::unix::fs::chown() doc with a warning
9aee14e Add missing code examples on `LocalKey`
f8bb14c Make profiler_builtins `#![no_core]` instead of just `#![no_std]`
872a1ec Remove unnecessary `#![allow(unused_features)]`
6db9b58 Sort and separate lint/feature attributes in `profiler_builtins`
f5e8953 std: update internal uses of `io::const_error!`
9d14ed9 std: expose `const_io_error!` as `const_error!`
3c99eaa Constify Drop and Destruct
9461af1 miri: disable test_downgrade_observe test on macOS
8204ce2 Shorten the `MaybeUninit` `Debug` implementation
0707d4f Support ranges in `<[T]>::get_many_mut()`
602117a btree: add `{Entry,VacantEntry}::insert_entry`
70f614d std::thread: avoid leading whitespace in some panic messages
ce70169 Added a doc test for std::path::strip_prefix

git-subtree-dir: library
git-subtree-split: 0b9e7db
  • Loading branch information
gitbot committed Feb 20, 2025
1 parent 8fe8f56 commit c1f565d
Show file tree
Hide file tree
Showing 645 changed files with 17,810 additions and 9,380 deletions.
61 changes: 26 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resolver = "1"
members = [
"std",
"sysroot",
"coretests",
]

exclude = [
Expand Down Expand Up @@ -32,7 +33,7 @@ codegen-units = 10000
[profile.release.package]
addr2line.debug = 0
addr2line.opt-level = "s"
adler.debug = 0
adler2.debug = 0
gimli.debug = 0
gimli.opt-level = "s"
miniz_oxide.debug = 0
Expand Down
2 changes: 1 addition & 1 deletion alloc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2021"

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

[dev-dependencies]
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
Expand Down
1 change: 1 addition & 0 deletions alloc/benches/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ pub fn iter_10k(b: &mut Bencher) {
}

#[bench]
#[cfg_attr(target_os = "emscripten", ignore)] // hits an OOM
pub fn iter_1m(b: &mut Bencher) {
bench_iter(b, 1_000, 1_000_000);
}
Expand Down
3 changes: 1 addition & 2 deletions alloc/benches/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
#![feature(iter_next_chunk)]
#![feature(repr_simd)]
#![feature(slice_partition_dedup)]
#![cfg_attr(bootstrap, feature(strict_provenance))]
#![cfg_attr(not(bootstrap), feature(strict_provenance_lints))]
#![feature(strict_provenance_lints)]
#![feature(test)]
#![deny(fuzzy_provenance_casts)]

Expand Down
11 changes: 11 additions & 0 deletions alloc/benches/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,25 @@ rotate!(rotate_medium_half, gen_random, 9158, 9158 / 2);
rotate!(rotate_medium_half_plus_one, gen_random, 9158, 9158 / 2 + 1);

// Intended to use more RAM than the machine has cache
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by1, gen_random, 5 * 1024 * 1024, 1);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by9199_u64, gen_random, 5 * 1024 * 1024, 9199);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by9199_bytes, gen_random_bytes, 5 * 1024 * 1024, 9199);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by9199_strings, gen_strings, 5 * 1024 * 1024, 9199);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by9199_big, gen_big_random, 5 * 1024 * 1024, 9199);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by1234577_u64, gen_random, 5 * 1024 * 1024, 1234577);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by1234577_bytes, gen_random_bytes, 5 * 1024 * 1024, 1234577);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by1234577_strings, gen_strings, 5 * 1024 * 1024, 1234577);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_by1234577_big, gen_big_random, 5 * 1024 * 1024, 1234577);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_half, gen_random, 5 * 1024 * 1024, 5 * 1024 * 1024 / 2);
#[cfg(not(target_os = "emscripten"))] // hits an OOM
rotate!(rotate_huge_half_plus_one, gen_random, 5 * 1024 * 1024, 5 * 1024 * 1024 / 2 + 1);
5 changes: 5 additions & 0 deletions alloc/benches/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,11 @@ fn bench_in_place_collect_droppable(b: &mut Bencher) {
})
}

// node.js gives out of memory error to use with length 1_100_000
#[cfg(target_os = "emscripten")]
const LEN: usize = 4096;

#[cfg(not(target_os = "emscripten"))]
const LEN: usize = 16384;

#[bench]
Expand Down
5 changes: 1 addition & 4 deletions alloc/src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ use core::hint;
#[cfg(not(test))]
use core::ptr::{self, NonNull};

#[cfg(test)]
mod tests;

extern "Rust" {
// These are the magic symbols to call the global allocator. rustc generates
// them to call `__rg_alloc` etc. if there is a `#[global_allocator]` attribute
Expand Down Expand Up @@ -342,7 +339,7 @@ unsafe impl Allocator for Global {
}
}

/// The allocator for unique pointers.
/// The allocator for `Box`.
#[cfg(all(not(no_global_oom_handling), not(test)))]
#[lang = "exchange_malloc"]
#[inline]
Expand Down
Loading

0 comments on commit c1f565d

Please sign in to comment.