Skip to content

Rollup of 20 pull requests - #161458

Open
jhpratt wants to merge 58 commits into
rust-lang:mainfrom
jhpratt:rollup-q1wVzyt
Open

Rollup of 20 pull requests#161458
jhpratt wants to merge 58 commits into
rust-lang:mainfrom
jhpratt:rollup-q1wVzyt

Conversation

@jhpratt

@jhpratt jhpratt commented Aug 21, 2026

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost

Create a similar rollup

fereidani and others added 30 commits August 5, 2026 05:51
- be explicit when only needing types of `GenericArgs`
jhpratt added 11 commits August 21, 2026 08:43
…nthey

doc: document safety requirements for core WTF-8

This PR is a follow-up to rust-lang#160824, and serves as a complementry of `Wtf8` in `alloc` . This PR currently fixes the wtf8 module in `core`, because I noticed that some unsafe APIs in this file do not provide a `safety section`. Therefore, before discharging the call sites, we need to first add the safety section. This PR performs that fix.

This PR is related to unstable feature `Wtf8` but this feature don't have relevant tracking issue.
LLVM 24: configure float-abi via module flag

`TargetOptions::FloatABIType` was removed in llvm/llvm-project#215796

See llvm/llvm-project#212985 for the corresponding clang change.

The `ModuleFlagMergeBehavior::Error` was copied from the clang implementation.

This currently relies on the string representation of Rust's [`FloatAbi` "target_spec_enum"](https://github.com/rust-lang/rust/blob/e71c0f1e3395b10a8c331317be1a5c107bdf7b2e/compiler/rustc_target/src/spec/mod.rs#L978-L986) matching LLVM. This seemed reasonable to me since the representation is quite straightforward ("soft" and "hard"), but let me know if you'd like an explicit `to_llvm_float_abi_str`, either defined in Rust or forwarding to `llvm::FloatABI::getABITypeName`.

Contrary to the clang implementation which only sets the module flag if it differs from the target default, we set it whenever the Rust target has an explicit float ABI set. See also discussion in [#t-compiler/llvm > float-abi module flag behavior](https://rust-lang.zulipchat.com/#narrow/channel/187780-t-compiler.2Fllvm/topic/float-abi.20module.20flag.20behavior/with/617279073).

The added test won't actually run on Rust's own CI until that updates to LLVM 24.

@rustbot label llvm-main
Only suggest `RUST_MIN_STACK` if maybe stack overflow

Alternatively we could make the wording of the help message note the uncertainty.
…r=TaKO8Ki

Add regression test for confusing lifetime error message issue

closes rust-lang#79033
Configure LLM policy URL for triagebot

Implemented in rust-lang/triagebot#2486, documented in rust-lang/rust-forge#1099.

CC @jyn514

r? Urgau
splat-fn-ptr-ptr-tuple.rs: add `let` to avoid UB

Fixes rust-lang#161323.

Miri previously reported UB when running this test, and LLVM 24 treated it as UB.

r? @teor2345

I'm not sure what _exactly_ is getting tested here, but based on your comment on the issue I assume that moving these to a `let` binding is fine.
Add back `tests/rustdoc-gui/notable-trait.goml` test

Part of rust-lang#152197.

Mostly the same test, I just replaced the flaky `assert-position` with a `wait-for-position`.

r? @Urgau
…=GuillaumeGomez

Fix rustdoc remapping `documentation` scope documentation

We have `--remap-path-scope` since rust-lang#155451, the documentation is outdated.
…nia-e

Update expect messages in path docs to better follow guidelines

Updates the `.expect()` messages in `library/std/src/path.rs`
to better follow the guidance for `expect` messages.

Related to rust-lang#159751.
…Brouwer

Add regression test for dead code on type alias used in impl self type

Closes rust-lang#59333
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Aug 21, 2026
@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-meta Area: Issues & PRs about the rust-lang/rust repository itself A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Aug 21, 2026
@jhpratt

jhpratt commented Aug 21, 2026

Copy link
Copy Markdown
Member Author

@bors r+ p=5

@bors try jobs=dist-various-1,test-various,x86_64-gnu-aux,x86_64-gnu-llvm-21-3,x86_64-msvc-1,aarch64-apple-,x86_64-mingw-1,i686-msvc-

@rust-bors

rust-bors Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

📌 Commit f2667ec has been approved by jhpratt

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 21, 2026
@rust-bors

rust-bors Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

⌛ Trying commit f2667ec with merge bb2190b

To cancel the try build, run the command @bors try cancel.

Workflow: https://github.com/rust-lang/rust/actions/runs/32483325476

rust-bors Bot pushed a commit that referenced this pull request Aug 21, 2026
Rollup of 20 pull requests


try-job: dist-various-1
try-job: test-various
try-job: x86_64-gnu-aux
try-job: x86_64-gnu-llvm-21-3
try-job: x86_64-msvc-1
try-job: aarch64-apple-*
try-job: x86_64-mingw-1
try-job: i686-msvc-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-meta Area: Issues & PRs about the rust-lang/rust repository itself A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Projects

None yet

Development

Successfully merging this pull request may close these issues.