about summary refs log tree commit diff
path: root/library
AgeCommit message (Collapse)AuthorLines
2025-07-13Rollup merge of #143803 - RalfJung:const-trait-tracking, r=compiler-errorsLeón Orell Valerian Liehr-18/+18
New tracking issues for const_ops and const_cmp Let's do a clean start with new tracking issues to avoid mixing things up with the previous constification. I assume the fact that the `PartialEq` *trait* and *impls* used different feature names was a mistake (the feature name on the impl is entirely irrelevant anyway). Part of https://github.com/rust-lang/rust/issues/143800, https://github.com/rust-lang/rust/issues/143802 r? ``@oli-obk``
2025-07-13Rollup merge of #143776 - no1wudi:fix, r=tgross35León Orell Valerian Liehr-1/+1
std: move NuttX to use arc4random for random number generation arc4random support in libc merged in https://github.com/rust-lang/libc/pull/4464, so: * Move `target_os = "nuttx"` from unix_legacy to arc4random section * This aligns NuttX with other POSIX-compliant systems that support arc4random * Improves random number generation quality on NuttX by using the system's built-in arc4random implementation instead of legacy fallback methods NuttX supports arc4random_buf which provides better entropy and security compared to the legacy random number generation methods.
2025-07-13TidyOrson Peters-1/+1
2025-07-13Guarantee 8 bytes of alignment in Thread::into_rawOrson Peters-1/+7
2025-07-12Tell triagebot to reopen bot PRs to run CI on themJakub Beránek-0/+3
2025-07-12Add CI workflow for automatically performing subtree sync pullsJakub Beránek-0/+23
This CI workflow will run the https://github.com/rust-lang/josh-sync tool on Mondays and Thursdays. It will try to do a pull (sync stdarch changes from rust-lang/rust into this repository). When it runs, three things can happen: - There are no rustc changes to be pulled, the bot does nothing. - There are some new changes to be pulled. In that case, the bot will either open or update an existing PR titled "Rustc pull update" on this repository with the changes. After the PR is merged, we should ideally do the opposite sync (push) manually. - The pull fails (usually because of a merge conflict), or the bot determines that a pull PR has been opened for more than a week without being merged. In that case, it will post a ping to https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/compiler-builtins.20subtree.20sync.20automation/with/528482375.
2025-07-12`aarch64`: use `simd_reduce_add_unordered`Folkert de Vries-217/+58
2025-07-12`aarch64`: use `simd_reduce_min` and `simd_reduce_max` for integersFolkert de Vries-212/+28
2025-07-12`aarch64`: use `simd_reduce_min` and `simd_reduce_max` for floatsFolkert de Vries-110/+16
2025-07-12`arm`: use `simd_fmin` and `simd_fmax`Folkert de Vries-100/+12
2025-07-12`aarch64`: use `simd_fmin` and `simd_fmax`Folkert de Vries-43/+6
2025-07-12`aarch64`: use `f16::min` and `f16::max`Folkert de Vries-26/+4
2025-07-12Add rustc-pull CI automationJakub Beránek-0/+22
2025-07-12Auto merge of #143810 - matthiaskrgr:rollup-iw7a23z, r=matthiaskrgrbors-1/+1
Rollup of 9 pull requests Successful merges: - rust-lang/rust#143403 (Port several trait/coherence-related attributes the new attribute system) - rust-lang/rust#143633 (fix: correct assertion to check for 'noinline' attribute presence before removal) - rust-lang/rust#143647 (Clarify and expand documentation for std::sys_common dependency structure) - rust-lang/rust#143716 (compiler: doc/comment some codegen-for-functions interfaces) - rust-lang/rust#143747 (Add target maintainer information for aarch64-unknown-linux-musl) - rust-lang/rust#143759 (Fix typos in function names in the `target_feature` test) - rust-lang/rust#143767 (Bump `src/tools/x` to Edition 2024 and some cleanups) - rust-lang/rust#143769 (Remove support for SwitchInt edge effects in backward dataflow) - rust-lang/rust#143770 (build-helper: clippy fixes) r? `@ghost` `@rustbot` modify labels: rollup
2025-07-12Auto merge of #143766 - matthiaskrgr:rollup-0x7t69s, r=matthiaskrgrbors-27/+191
Rollup of 8 pull requests Successful merges: - rust-lang/rust#142391 (rust: library: Add `setsid` method to `CommandExt` trait) - rust-lang/rust#143302 (`tests/ui`: A New Order [27/N]) - rust-lang/rust#143303 (`tests/ui`: A New Order [28/28] FINAL PART) - rust-lang/rust#143568 (std: sys: net: uefi: tcp4: Add timeout support) - rust-lang/rust#143611 (Mention more APIs in `ParseIntError` docs) - rust-lang/rust#143661 (chore: Improve how the other suggestions message gets rendered) - rust-lang/rust#143708 (fix: Include frontmatter in -Zunpretty output ) - rust-lang/rust#143718 (Make UB transmutes really UB in LLVM) r? `@ghost` `@rustbot` modify labels: rollup try-job: i686-gnu-nopt-1 try-job: test-various
2025-07-12Fixed a core crate compilation failure when enabling the `optimize_for_size` ↵nazo6-4/+5
feature on some targets
2025-07-11Merge pull request #1868 from folkertdev/gen-arm-remove-lazy-staticFolkert de Vries-31/+21
`stdarch-gen-arm`: remove `lazy_static`, use `LazyLock` instead
2025-07-11Merge pull request #1858 from folkertdev/aarch-comparison-operatorsSayantan Chakraborty-220/+80
aarch64: use `core::intrinsics::simd` for integer min/max
2025-07-12Add Ref/RefMut try_map methodPavel Grigorenko-0/+93
2025-07-12`stdarch-gen-arm`: remove `lazy_static`, use `LazyLock` insteadFolkert de Vries-31/+21
2025-07-11slice: Mark `rotate_left`, `rotate_right` unstably constokaneco-9/+21
2025-07-11Merge pull request #1867 from hkBst/fix-test-neonFolkert de Vries-1/+1
tests: neon is arm
2025-07-11tests: neon is armMarijn Schouten-1/+1
2025-07-11Merge pull request #1865 from hkBst/connect5-clippy-fixesFolkert de Vries-25/+12
connect5: clippy fixes
2025-07-11Rollup merge of #143647 - ColtenOuO:master, r=ChrisDentonMatthias Krüger-1/+1
Clarify and expand documentation for std::sys_common dependency structure This PR makes a minor improvement to the module-level documentation of std::sys_common: Replaces the lowercase “dag” with the more standard and explicit form “DAG (Directed Acyclic Graph)” for clarity.
2025-07-11random: Provide a `Distribution<T>` traitJosh Triplett-57/+27
This will let people make calls like random(1..=6), and allows for future expansion to non-uniform distributions, as well as floating-point. For now, this is only implemented for `RangeFull`, to get the interface in place. Subsequent commits will implement it for other range types.
2025-07-11connect5: clippy fixesMarijn Schouten-25/+12
2025-07-11fix const_ops tracking issueRalf Jung-12/+12
2025-07-11fix PartialEq const feature name and const_cmp tracking issueRalf Jung-6/+6
2025-07-11Consolidate classify testsRoger Curley-71/+23
2025-07-11Consolidate is_normal testsRoger Curley-82/+51
2025-07-11Consolidate is_finite testsRoger Curley-52/+22
2025-07-11Consolidate is_infinite testsRoger Curley-52/+22
2025-07-11Consolidate is_nanRoger Curley-52/+22
2025-07-11Consolidate one testsRoger Curley-52/+19
2025-07-11Consolidate negative zero testsRoger Curley-56/+20
2025-07-11Consolidate zero testsRoger Curley-52/+19
2025-07-11Consolidate neg_infinity testsRoger Curley-48/+18
2025-07-11Consolidate test_num testsRoger Curley-50/+34
2025-07-11Consolidate infinity testsRoger Curley-48/+18
2025-07-11thumbv7neon-unknown-linux-gnueabihf clippy fixesMarijn Schouten-113/+38
2025-07-11std: move NuttX to use arc4random for random number generationHuang Qi-1/+1
* Move `target_os = "nuttx"` from unix_legacy to arc4random section * This aligns NuttX with other POSIX-compliant systems that support arc4random * Improves random number generation quality on NuttX by using the system's built-in arc4random implementation instead of legacy fallback methods NuttX supports arc4random_buf which provides better entropy and security compared to the legacy random number generation methods. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-07-11constify `From` and `Into`Oli Scherer-8/+21
2025-07-11Rollup merge of #143611 - GrigorenkoPV:ParseIntError, r=tgross35Matthias Krüger-2/+5
Mention more APIs in `ParseIntError` docs Fixes rust-lang/rust#143602 r? `@lolbinarycat` `@rustbot` label +A-docs
2025-07-11Rollup merge of #143568 - Ayush1325:uefi-tcp4-timeout, r=tgross35Matthias Krüger-25/+97
std: sys: net: uefi: tcp4: Add timeout support - Implement timeout support for read, write and connect. - A software implementation using Instant.
2025-07-11Rollup merge of #142391 - LevitatingBusinessMan:setsid, r=workingjubileeMatthias Krüger-0/+89
rust: library: Add `setsid` method to `CommandExt` trait Add a setsid method to the CommandExt trait so that callers can create a process in a new session and process group whilst still using the POSIX spawn fast path. Tracking issue: rust-lang/rust#105376 ACP: https://github.com/rust-lang/libs-team/issues/184 This PR was previously submitted by ``@HarveyHunt`` (whom I marked as Co-Author in the commit message) in rust-lang/rust#105377. However that PR went stale. I applied the [suggestion](https://github.com/rust-lang/rust/pull/105377/files/231d19fcbfe155b2e85116865adae4253380ff1f#r1893457943) to change the function signature to `fn setsid(&mut self, setsid: bool) -> &mut Command`.
2025-07-11Auto merge of #142911 - mejrs:unsized, r=compiler-errorsbors-1/+1
Remove support for dynamic allocas Followup to rust-lang/rust#141811
2025-07-11docs: clarify “dag” in std::sys_common doc commentColten-1/+1
2025-07-10Rollup merge of #143642 - Kobzol:stdarch-push, r=AmanieuTrevor Gross-455/+243
stdarch subtree update Subtree update of `stdarch` to https://github.com/rust-lang/stdarch/commit/b262a9af852cb30928bb44c62c2c3fa92246bbeb. Created using https://github.com/rust-lang/josh-sync. r? ```@ghost```
2025-07-10Upgrade `iai-callgrind` to 0.15Trevor Gross-3/+3
Pick up the latest version of iai-callgrind, which includes some output improvements. Changelog: https://github.com/iai-callgrind/iai-callgrind/releases