Skip to content

Rollup of 6 pull requests - #165616

Closed
JonathanBrouwer wants to merge 12 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-5m6XUyJ
Closed

JonathanBrouwer wants to merge 12 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-5m6XUyJ

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost

Create a similar rollup

ChrisDenton and others added 12 commits November 6, 2026 14:34
This removes the need for workarounds to ensure drops are run (e.g. for `TempDir` cleanup).
It will ensure library options are picked up by new contexts,
and lets us handle errors explicitly.
…nikic

Parse LLVM options into an explicit global LibraryOptionsContext

LLVM has been refactoring how it stores its internal (-mllvm) options recently, with the goal of getting rid of the global cl::opt objects.

After http://github.com/llvm/llvm-project/pull/233044 LTO passes no longer uses the global options, which would cause codegen-llvm/pgo-counter-bias.rs to fail since it relies on the -runtime-counter-relocation option to get passed to LTO.

Use the C API function LLVMParseCommandLineOptionsWithError which ensures the parsed options are
picked up by new LLVMContexts.
Remove typed allocas and geps from `gpu_offload.rs`

Typed GEPs are being removed from the rest of the compiler in rust-lang#165146, and typed allocas were already removed, so change `gpu_offload.rs` to match. This PR also removes the constant zero GEPs ([#t-compiler > GEP constant 0 in &rust-lang#96;gpu_offload.rs&rust-lang#96;](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/GEP.20constant.200.20in.20.60gpu_offload.2Ers.60/with/635158185)).

r? @ZuseZ4
…=lolbinarycat

rustdoc: remove `process::exit`

This removes the need for workarounds to ensure drops are run (e.g. for `TempDir` cleanup) and hopefully prevents such situations from arising again.
…hanna-kruppe

MIR opts: dont let optimize(size/none) increase the MIR opt level

It does not seem right that with `-Zmir-opt-level=0`, an `optimize(none)` function gets optimized *more* than all the other functions.
…nsts, r=JonathanBrouwer

Replace the name of a removed MIR pass used in a test

The `ConstDebugInfo` MIR pass was replaced by the `SingleUseConsts` pass in rust-lang#125910.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 7, 2026
@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler 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. labels Nov 7, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r+ p=5 force

Trying commonly failed jobs
@bors try jobs=dist-various-1,test-various,test-x86_64-gnu-aux,test-x86_64-msvc-1,test-aarch64-apple-1,test-aarch64-apple-2,test-x86_64-mingw-1,test-i686-msvc,test-armhf-gnu,test-x86_64-gnu-llvm-22-3,test-aarch64-msvc-2

@rust-bors

rust-bors Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 1d1ed59 has been approved by JonathanBrouwer

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 Nov 7, 2026
@rust-bors

rust-bors Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

⌛ Trying commit 1d1ed59 with merge b48c030…

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

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

rust-bors Bot pushed a commit that referenced this pull request Nov 7, 2026
Rollup of 6 pull requests


try-job: dist-various-1
try-job: test-various
try-job: test-x86_64-gnu-aux
try-job: test-x86_64-msvc-1
try-job: test-aarch64-apple-1
try-job: test-aarch64-apple-2
try-job: test-x86_64-mingw-1
try-job: test-i686-msvc
try-job: test-armhf-gnu
try-job: test-x86_64-gnu-llvm-22-3
try-job: test-aarch64-msvc-2
@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 7, 2026
@rust-bors

rust-bors Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved due to being closed.

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

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. rollup A PR which is a rollup S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants