Skip to content

Rollup of 7 pull requests - #165617

Open
JonathanBrouwer wants to merge 14 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-C7TOjen
Open

JonathanBrouwer wants to merge 14 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-C7TOjen

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost

Create a similar rollup

ChrisDenton and others added 14 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. F-autodiff `#![feature(autodiff)]` 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

@rust-bors

rust-bors Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 06a7be9 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-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-x86_64-gnu-next-trait-solver-polonius failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
[RUSTC-TIMING] shlex test:false 0.520
   Compiling jiff v0.2.16
##[error]The runner has received a shutdown signal. This can happen when the runner service is stopped, or a manually started runner is canceled.

Session terminated, killing shell...::group::Clock drift check
  local time: Sat Nov  7 21:38:40 UTC 2026
  network time: Sat, 07 Nov 2026 21:38:41 GMT
##[endgroup]
 ...killed.
##[error]The operation was canceled.

Important

For more information how to resolve CI failures of this job, visit this link.

@rust-bors

rust-bors Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

⌛ Testing commit 06a7be9 with merge 29f2825...

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

rust-bors Bot pushed a commit that referenced this pull request Nov 7, 2026
…uwer

Rollup of 7 pull requests

Successful merges:

 - #164591 (Parse LLVM options into an explicit global LibraryOptionsContext)
 - #165154 (Remove typed allocas and geps from `gpu_offload.rs`)
 - #165554 (rustdoc: remove `process::exit`)
 - #165574 (update Enzyme submodule)
 - #165587 (MIR opts: dont let optimize(size/none) increase the MIR opt level)
 - #165589 (coretests: speed up some tests in Miri)
 - #165593 (Replace the name of a removed MIR pass used in a test)

Failed merges:

 - #165580 (cg_llvm: Use an invariant lifetime brand for LLVM types)

This branch has not been deployed

No deployments
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. F-autodiff `#![feature(autodiff)]` 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-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.

9 participants