about summary refs log tree commit diff
path: root/library
AgeCommit message (Collapse)AuthorLines
2025-07-10Merge pull request #1857 from folkertdev/arm-dupSayantan Chakraborty-67/+44
use `splat` for the aarch64/arm dup intrinsics
2025-07-10Upgrade dependencies to the latest versionTrevor Gross-4/+4
This picks up a fix in `rustc_apfloat` [1] that resolves a problem with `fma`. [1]: https://github.com/rust-lang/rustc_apfloat/releases/tag/rustc_apfloat-v0.2.3%2Bllvm-462a31f5a5ab
2025-07-10Rollup merge of #143660 - cuviper:lib-doc-false, r=tgross35Matthias Krüger-0/+6
Disable docs for `compiler-builtins` and `sysroot` Bootstrap already had a manual doc filter for the `sysroot` crate, but other library crates keep themselves out of the public docs by setting `[lib] doc = false` in their manifest. This seems like a better solution to hide `compiler-builtins` docs, and removes the `sysroot` hack too. Fixes rust-lang/rust#143215 (after backport) ```@rustbot``` label beta-nominated
2025-07-10Rollup merge of #143651 - Fulgen301:seh-exception-ptr, r=ChrisDentonMatthias Krüger-4/+14
Win: Use exceptions with empty data for SEH panic exception copies instead of a new panic For unwinding with SEH, we currently construct a C++ exception with the panic data. Being a regular C++ exception, it interacts with the C++ exception handling machinery and can be retrieved via `std::current_exception`, which needs to copy the exception. We can't support that, so we panic, which throws another exception, which the C++ runtime tries to copy and store into the exception_ptr, which panics again, which causes the C++ runtime to store a `bad_exception` instance. However, this doesn't work because the panics thrown by the copy function will be dropped without being rethrown, and causes unnecessary log spam in stderr. Fix this by directly throwing an exception without data, which doesn't cause log spam and can be dropped without being rethrown. Fixes rust-lang/rust#143623. This also happens to be the solution ``@dpaoliello`` suggested, though I'm not sure how to handle the commit credit attribution.
2025-07-10Rollup merge of #143640 - oli-obk:const-fn-traits, r=compiler-errorsMatthias Krüger-14/+22
Constify `Fn*` traits r? `@compiler-errors` `@fee1-dead` this should unlock a few things. A few `const_closures` tests have broken even more than before, but that feature is marked as incomplete anyway cc rust-lang/rust#67792
2025-07-10Rollup merge of #143668 - biabbas:vxworks, r=NoratriebMatthias Krüger-2/+1
Fix VxWorks build errors fixes rust-lang/rust#143442 r? ``@Noratrieb``
2025-07-10Rollup merge of #143652 - moulins:doc-unsize-trait-upcasting, r=compiler-errorsMatthias Krüger-0/+5
docs: document trait upcasting rules in `Unsize` trait The trait upcasting feature stabilized in 1.86 added new `Unsize` implementation, but this wasn't reflected in the trait's documentation.
2025-07-10Rollup merge of #136906 - chenyukang:yukang-fix-136741-closure-body, r=oli-obkMatthias Krüger-1/+1
Add checking for unnecessary delims in closure body Fixes #136741
2025-07-10use `intrinsics::simd` for integer max/minFolkert de Vries-220/+80
2025-07-10core: add Peekable::next_if_mapkennytm-0/+189
2025-07-10use `splat` for the aarch64/arm dup intrinsicsFolkert de Vries-67/+44
2025-07-10Auto merge of #143721 - tgross35:rollup-sjdfp6r, r=tgross35bors-58/+57
Rollup of 9 pull requests Successful merges: - rust-lang/rust#141996 (Fix `proc_macro::Ident`'s handling of `$crate`) - rust-lang/rust#142950 (mbe: Rework diagnostics for metavariable expressions) - rust-lang/rust#143011 (Make lint `ambiguous_glob_imports` deny-by-default and report-in-deps) - rust-lang/rust#143265 (Mention as_chunks in the docs for chunks) - rust-lang/rust#143270 (tests/codegen/enum/enum-match.rs: accept negative range attribute) - rust-lang/rust#143298 (`tests/ui`: A New Order [23/N]) - rust-lang/rust#143396 (Move NaN tests to floats/mod.rs) - rust-lang/rust#143398 (tidy: add support for `--extra-checks=auto:` feature) - rust-lang/rust#143644 (Add triagebot stdarch mention ping) r? `@ghost` `@rustbot` modify labels: rollup
2025-07-10Add documentation about subtree syncJakub Beránek-0/+9
2025-07-10Rollup merge of #143396 - rocurley:float_tests_refactor, r=tgross35Trevor Gross-56/+23
Move NaN tests to floats/mod.rs This PR moves NaN tests to `floats/mod.rs`, as discussed in rust-lang/rust#141726. Since this is my first PR against Rust, I'm keeping it as small as possible, but I intend to work my way through the remaining tests and can do that work in this PR if that's preferable. r? RalfJung
2025-07-10Rollup merge of #143265 - scottmcm:mention-as-chunks, r=ibraheemdevTrevor Gross-0/+32
Mention as_chunks in the docs for chunks and `as_rchunks_mut` from `rchunks_exact_mut`, and such. As suggested in https://github.com/rust-lang/rust/issues/76354#issuecomment-3015376438 (but does not close that issue).
2025-07-10Rollup merge of #141996 - Daniel-Aaron-Bloom:dollar_crate, r=petrochenkovTrevor Gross-2/+2
Fix `proc_macro::Ident`'s handling of `$crate` This PR is addresses a few minor bugs, all relating to `proc_macro::Ident`'s support for `$crate`. `Ident` currently supports `$crate` (as can be seen in the `mixed-site-span` test), but: * `proc_macro::Symbol::can_be_raw` is out of sync with `rustc_span::Symbol::can_be_raw` * former doesn't cover `$crate` while the latter does cover `kw::DollarCrate` * `Ident::new` rejects `$crate` * This conflicts with the [reference definition](https://doc.rust-lang.org/nightly/reference/macros-by-example.html#r-macro.decl.meta.specifier) of `ident` which includes `$crate`. * This also conflicts with the documentation on [`Display for Ident`](https://doc.rust-lang.org/proc_macro/struct.Ident.html#impl-Display-for-Ident) which says the output "should be losslessly convertible back into the same identifier". This PR fixes the above issues and extends the `mixed-site-span` test to exercise these fixed code paths, as well as validating the different possible spans resolve `$crate` as expected (for both the new and old `$crate` construction code paths).
2025-07-10Auto merge of #143696 - oli-obk:constable-type-id2, r=RalfJungbors-41/+71
Add opaque TypeId handles for CTFE Reopen of https://github.com/rust-lang/rust/pull/142789#issuecomment-3053155043 after some bors insta-merge chaos r? `@RalfJung`
2025-07-10rust: library: Add setsid method to CommandExt traitLevitatingBusinessMan (Rein Fernhout)-0/+89
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. Co-Authored-By: Harvey Hunt <harveyhunt@fb.com>
2025-07-09Refactor nan testsRoger Curley-56/+23
2025-07-10Remove uncessary parens in closure body with unused lintyukang-1/+1
2025-07-09Auto merge of #143405 - tgross35:update-builtins, r=tgross35bors-393/+566
Update the `compiler-builtins` subtree Update the Josh subtree to https://github.com/rust-lang/compiler-builtins/commit/8aba4c899ee8. r? `@ghost`
2025-07-09run rust programs with the runnerFolkert de Vries-95/+90
2025-07-09random: Add comment on `RandomSource::fill_bytes` about multiple callsJosh Triplett-0/+5
This allows efficient implementations for random sources that generate a word at a time.
2025-07-09std: sys: net: uefi: tcp4: Add timeout supportAyush Singh-25/+97
- Implement timeout support for read, write and connect. - A software implementation using Instant. Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-07-09Add opaque TypeId handles for CTFEOli Scherer-41/+71
2025-07-09core: Change `BorrowedCursor::written`'s originBenoît du Garreau-10/+4
This enable removing the `start` field, so `BorrowedCursor` fits in a single register. Because `written` is almost always used in difference with another call, this changes nothing else in practice.
2025-07-09core: Remove `BorrowedCursor::uninit_mut`Benoît du Garreau-12/+3
I assume that this method was there for completeness, but there is hardly any useful use of it: the buffer it gave was not always connected to the start of the cursor and its use required `unsafe` anyway to mark the bytes as initialized.
2025-07-09core: Remove `BorrowedCursor::init_ref` methodBenoît du Garreau-16/+4
This method was not really useful: at no point one would only need to read the initialized part of the cursor without mutating it.
2025-07-09Add sayantn and folkertdev as reviewersAmanieu d'Antras-1/+1
2025-07-09Fix VxWorks build errorsB I Mohammed Abbas-2/+1
2025-07-08Rollup merge of #143426 - hkBst:clippy-fix-indent-1, r=jhprattTrevor Gross-46/+47
clippy fix: indentation Fixes indentation of markdown comments.
2025-07-08Disable docs for `compiler-builtins` and `sysroot`Josh Stone-0/+6
Bootstrap already had a manual doc filter for the `sysroot` crate, but other library crates keep themselves out of the public docs by setting `[lib] doc = false` in their manifest. This seems like a better solution to hide `compiler-builtins` docs, and removes the `sysroot` hack too.
2025-07-08docs: document trait upcasting rules in `Unsize` traitMoulins-0/+5
2025-07-08Win: Use exceptions with empty data for SEH panic exception copiesGeorge Tokmaji-4/+14
instead of a new panic For unwinding with SEH, we currently construct a C++ exception with the panic data. Being a regular C++ exception, it interacts with the C++ exception handling machinery and can be retrieved via `std::current_exception`, which needs to copy the exception. We can't support that, so we panic, which throws another exception, which the C++ runtime tries to copy and store into the exception_ptr, which panics again, which causes the C++ runtime to store a `bad_exception` instance. However, this doesn't work because the panics thrown by the copy function will be dropped without being rethrown, and causes unnecessary log spam in stderr. Fix this by directly throwing an exception without data, which doesn't cause log spam and can be dropped without being rethrown.
2025-07-08add extra log messages to track setupFolkert de Vries-0/+3
2025-07-08Remove `const_eval_select` hackOli Scherer-1/+1
2025-07-08Constify `Fn*` traitsOli Scherer-13/+21
2025-07-08Merge ref '040e2f8b9ff2' from rust-lang/rustJakub Beránek-857/+1686
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 040e2f8b9ff2d76fbe2146d6003e297ed4532088 Filtered ref: cf4d00a666607e356e410a820ae07eeba28a9b53 This merge was created using https://github.com/rust-lang/josh-sync.
2025-07-08Prepare for merging from rust-lang/rustJakub Beránek-0/+1
This updates the rust-version file to 040e2f8b9ff2d76fbe2146d6003e297ed4532088.
2025-07-08Reset rust-versionJakub Beránek-1/+0
2025-07-08Auto merge of #134628 - estebank:const-default, r=oli-obkbors-15/+34
Make `Default` const and add some `const Default` impls Full list of `impl const Default` types: - () - bool - char - std::ascii::Char - usize - u8 - u16 - u32 - u64 - u128 - i8 - i16 - i32 - i64 - i128 - f16 - f32 - f64 - f128 - std::marker::PhantomData<T> - Option<T> - std::iter::Empty<T> - std::ptr::Alignment - &[T] - &mut [T] - &str - &mut str - String - Vec<T>
2025-07-08clippy fix: markdown indentation for indented items after line breakMarijn Schouten-16/+16
2025-07-08collect.rs: remove empty line after doc commentMarijn Schouten-8/+3
2025-07-08int_log10.rs: change top level doc comments to outerMarijn Schouten-2/+2
2025-07-08Auto merge of #143540 - yotamofek:pr/library/simplify-num-fmt, r=tgross35bors-22/+3
Simplify num formatting helpers Noticed `ilog10` was being open-coded when looking at this diff: https://github.com/rust-lang/rust/pull/143423/files/85d6768f4c437a0f3799234df20535ff65ee17c2..76d9775912ef3a7ee145053a5119538bf229d6e5#diff-6be9b44b52d946ccac652ddb7c98146a01b22ea0fc5737bc10db245a24796a45 That, and two other small cleanups 😁 (should probably go through perf just to make sure it doesn't regress formatting)
2025-07-08remove unneeded castFolkert de Vries-4/+4
2025-07-08shorten array literalsFolkert de Vries-104/+28
2025-07-08remote intermediate assignmentFolkert de Vries-51/+23
2025-07-08fix whitespace in `aarch64.spec.yml`Folkert de Vries-27/+27
2025-07-08update to literal-escaper-0.0.5Marijn Schouten-6/+6