Skip to content

Conversation

@workflows-miri
Copy link

Merge ref '27050c0d15af' from rust-lang/rust

Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 27050c0d15af664cf43ce4b0badec230e0bfcac5
Filtered ref: 2bccf11
Upstream diff: rust-lang/rust@6244eff...27050c0

This merge was created using https://github.com/rust-lang/josh-sync.

cjgillot and others added 7 commits October 23, 2025 00:38
Replace NullOp::SizeOf and NullOp::AlignOf by lang items.

Part of rust-lang/rust#146411

Fixes rust-lang/rust#119729
Keeps rust-lang/rust#136175 as it involves `offset_of!` which this PR does not touch.

r? `@ghost`
…oshtriplett

Add `String::replace_first` and `String::replace_last`

Rebase of #97977 (cc `@WilliamVenner)`

> Convenience methods that use `match_indices` and `replace_range` to efficiently replace a substring in a string without reallocating, if capacity (and the implementation of `Vec::splice`) allows.

The intra-doc link to `str::replacen` is a direct url-based link to `str::replacen` in `std`'s docs to work around #98941. This means that when building only `alloc`'s docs (and not `std`'s), it will be a broken link. There is precedent for this e.g. in [`core::hint::spin_loop`](https://doc.rust-lang.org/nightly/src/core/hint.rs.html#214) which links to `std::thread::yield_now` using a [url-based link](https://github.com/rust-lang/rust/blob/master/library/core/src/hint.rs#L265) and thus is a dead link when only building `core`'s docs.

ACP: rust-lang/libs-team#506
Rollup of 3 pull requests

Successful merges:

 - rust-lang/rust#134316 (Add `String::replace_first` and `String::replace_last`)
 - rust-lang/rust#147713 (Retire ast::TyAliasWhereClauses.)
 - rust-lang/rust#148011 (Revert constification of `AsRef for Cow` due to inference failure )

r? `@ghost`
`@rustbot` modify labels: rollup
privacy: Introduce some caching to type visiting in `DefIdVisitorSkeleton`

The caching fixes compilation speed issues in special cases like rust-lang/rust#145741, without introducing too much overhead in general cases.

I tried to cache more, but it caused regressions from the caching overhead, like it can be seen from benchmark runs below.

Inspired by rust-lang/rust#146128.
Closes rust-lang/rust#145741.
This updates the rust-version file to 27050c0d15af664cf43ce4b0badec230e0bfcac5.
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 27050c0d15af664cf43ce4b0badec230e0bfcac5
Filtered ref: 2bccf11
Upstream diff: rust-lang/rust@6244eff...27050c0

This merge was created using https://github.com/rust-lang/josh-sync.
@rustbot
Copy link
Collaborator

rustbot commented Oct 24, 2025

Thank you for contributing to Miri!
Please remember to not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Oct 24, 2025
@oli-obk oli-obk added this pull request to the merge queue Oct 24, 2025
Merged via the queue into master with commit c184d1d Oct 24, 2025
13 checks passed
@oli-obk oli-obk deleted the rustup-2025-10-24 branch October 24, 2025 06:01
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label Oct 24, 2025
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.

5 participants