Skip to content

Conversation

github-actions[bot]
Copy link

This is an automated PR to update the subtree/library branch to the changes from 2025-09-09 (rust-lang/rust@9c27f27) to 2025-10-10 (rust-lang/rust@b925a86), inclusive.
Review this PR as usual, but do not merge this PR using the GitHub web interface. Instead, once it is approved, use git push to literally push the changes to subtree/library without any rebase or merge.

cyrgani and others added 10 commits October 5, 2025 13:58
Users who build `core` for the sole purpose of enabling `panic_immediate_abort` might expect
"`panic_immediate_abort` is now a real panic strategy" to mean that setting `panic =
"immediate-abort"` in `Cargo.toml` or `-Cpanic=immediate-abort` in `RUSTFLAGS` to be sufficient for
migration. But this is not the case, `core` still needs to be built for those changes to take
effect.

See rust-lang#146974 for additional context.
LLVM generally can do this on its own, but it helps miri and other backends.
…mdev

give a better example why `std` modules named like primitives are needed

A small update to the `std` `lib.rs` introduction to replace mentions of `std::i32` (never needed) with `std::char` (sometimes needed).
Related to rust-lang#146882.
…d, r=joboet

Add diagnostic items for `pub mod consts` of FP types

They will be used in Clippy.
…Jung,joboet

specialize slice::fill to use memset when possible

It helps const eval performance rust-lang/miri#4616, debug builds and the gcc backend.

Previously attempted in rust-lang#83245 but reverted due to unsoundness rust-lang#87891 around potentially-uninitialized types. This PR only handles primitives where the problem does not arise.

split off from rust-lang#147294
…crum

Clarify how to remediate the panic_immediate_abort error

Users who build `core` for the sole purpose of enabling `panic_immediate_abort` might expect "`panic_immediate_abort` is now a real panic strategy" to mean that setting `panic = "immediate-abort"` in `Cargo.toml` or `-Cpanic=immediate-abort` in `RUSTFLAGS` to be sufficient for migration. But this is not the case, `core` still needs to be built for those changes to take effect.

See rust-lang#146974 for additional context.

See rust-lang#147286 and rust-lang/cargo#16042 for the revelant tracking issues.
… r=Kivooeo,oli-obk

Prefer to use repeat_n over repeat().take()

More from rust-lang#147464, but batch processed with `ast-grep` to find and replace.

second commit add notes for library: rust-lang@affaf53

r? ``@RalfJung``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants