Skip to content

Rollup of 17 pull requests - #166628

Closed
JonathanBrouwer wants to merge 40 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-LMMkNgr
Closed

JonathanBrouwer wants to merge 40 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-LMMkNgr

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost

Create a similar rollup

zakrad and others added 30 commits November 11, 2026 21:33
This LLVM pass lowers `llvm.type.checked.load` into a standard load when
doing a non-LTO compilation.
Run the `FatLtoCleanup` pass to lower `llvm.type.checked.load`

tracking issue: rust-lang#68262

fixes rust-lang#124093

Run the `FatLtoCleanup` pass which lowers `llvm.type.checked.load` into a standard load when doing a non-LTO compilation. Previously using `-Zvirtual-function-elimination` on godbolt would in many cases trigger an error like

```
error: example.rs:21:5: in function _RNvCsjRjZ17mMryE_7example4call i32 (ptr, ptr): llvm.type.checked.load intrinsic must be lowered by the LowerTypeTests pass before code generation
```

Because there `--emit=asm` is passed to `rustc` and that is a non-LTO compilation where checked loads are not supported.

---

LLVM uses this pass here as a part of `PassBuilder::buildFatLTODefaultPipeline`

https://github.com/llvm/llvm-project/blob/5da6b3c590792a069c40d8982c8b0fb3557f241a/llvm/lib/Passes/PassBuilderPipelines.cpp#L1827-L1837

We don't really have an equivalent to that I think, so I just inserted it right before we start doing instruction selection (but after bitcode/llvm ir has been written), which appears  to work.
Keep opening '(' when suggesting to remove '&' from pattern

Fixes rust-lang#166198

## Explanation

When encountering a parenthesized pattern such as &(mut num), PatKind::Paren is stripped during AST-to-HIR lowering, meaning inner.span starts at mut num.

Previously, pat.span.until(inner.span) spanned from `&` across `(`, replacing `&(` with `""` and leaving an unmatched closing parenthesis `)` (e.g., suggesting `|mut num)|`).

This PR ensures the suggestion span stops before any opening parenthesis `(`, properly suggesting `|(mut num)|`.
…ock-receiver, r=estebank

Fix ICE in iterator method suggestion when the receiver is a block

Fixes rust-lang#166472

`rcvr_expr` is used here in the same method. In the old implementation, line 204 rebounded `rcvr_expr` to an invalid value. This pr avoids the variable shadowing.

https://github.com/rust-lang/rust/blob/6ec059211722486ad46e84c8fc59cacf641fc35d/compiler/rustc_hir_typeck/src/method/suggest.rs#L229
…oxyUwU

abby test dsl: one binder to rule them all

prerequisite PR to allow leaking variables in the test DSL to allow testing a solution for rust-lang/project-assumptions-on-binders#49

alternative to rust-lang#166561

allow the following:

```rust
forall<'a> { },
'a: 'c,
```

by moving the `ty::Binder` from each `forall`/`exists` to a single top-level mega-binder, so the whole thing instantiates at the same time, and all variables are in scope across the entire `test_binder_constraints!`. This does mean that you can't use the same name twice even though it "looks like" they're in different scopes, because, it's all just one big scope.

r? @BoxyUwU
…arf-166344, r=Urgau

fix: embed-source-dwarf test with remapped debuginfo

fixes rust-lang#166344

remove the assertion that exactly one source file is embedded, as external crate sources may also be included.
retain the exact content check for main.rs.
verified with remapped debuginfo enabled and disabled at all three std debuginfo levels (0, 1, 2).

r? @Urgau
…-overwrite, r=estebank

Change wording of overwrite span in `unused_assignments` lint

Fixes rust-lang#159371.

r? @estebank.
Add regression test for self-referential GAT with missing lifetime argument

Fixes rust-lang#154651

The ICE was fixed by rust-lang#156742.
… r=Urgau

triagebot: Send "in progress" message when nomination is in progress pt. 2

Seems to work well, and other teams also want it.
This was mostly copy pasted, so please check if I made mistakes :3
I checked it all over once myself

For an example, see: [#t-compiler/backports > rust-lang#166340: beta-nominated @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/474880-t-compiler.2Fbackports/topic/.23166340.3A.20beta-nominated/near/643587755)

r? @Urgau
cc @clarfonthey
…mismatch-ice, r=khyperia

Arg pos const mismatch ice

closes: rust-lang#166466

We missed the translation from generics to method sigs for `note_source_of_type_mismatch_constraint`, this PR adds that.

r? @khyperia
…Prop, r=nikic

llvm-wrapper: Pass LibraryOptionsContext to computeDeadSymbolsWithConstProp etc.

This adapts to llvm/llvm-project#245301
…dexh

Correct feature name for `is_cased()` method

I accidentally changed it when stabilizing: rust-lang#165434 (comment)
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 26, 2026
@rustbot rustbot added A-btree Area: `std::collections::{BTreeMap, BTreeSet}` A-collections Area: `std::collections` (prefer A-binaryheap, A-btree, A-hashtable, A-linkedlist, A-vecdeque) 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-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Nov 26, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r+ p=5 force

Trying commonly failed jobs
@bors try jobs=dist-various-1,dist-various-2,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 26, 2026

Copy link
Copy Markdown
Contributor

📌 Commit a14fc80 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 26, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 26, 2026
Rollup of 17 pull requests


try-job: dist-various-1
try-job: dist-various-2
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

This comment has been minimized.

@rust-bors

rust-bors Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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

Rollup of 17 pull requests

Successful merges:

 - #165572 (Run the `FatLtoCleanup` pass to lower `llvm.type.checked.load`)
 - #166235 (Keep opening '(' when suggesting to remove '&' from pattern)
 - #166516 (Fix ICE in iterator method suggestion when the receiver is a block)
 - #166586 (abby test dsl: one binder to rule them all)
 - #166604 (fix: embed-source-dwarf test with remapped debuginfo)
 - #166620 (Change wording of overwrite span in `unused_assignments` lint)
 - #164289 (Add regression test for self-referential GAT with missing lifetime argument)
 - #165859 (Add codegen test for MaybeUninit array built in the return slot)
 - #166092 (add fake borrow tests for divergent match guards)
 - #166292 (Don't suggest closure braces for errors inside the body)
 - #166435 (Encode direct const mir)
 - #166447 (Document allocator behaviour of BTreeMap::append and BTreeSet::append)
 - #166558 (triagebot: Send "in progress" message when nomination is in progress pt. 2)
 - #166584 (Arg pos const mismatch ice)
 - #166599 (add alias-bound test)
 - #166606 (llvm-wrapper: Pass LibraryOptionsContext to computeDeadSymbolsWithConstProp etc.)
 - #166623 (Correct feature name for `is_cased()` method)

Failed merges:

 - #166583 (abby dsl tests: the passing test should check-pass)
@rust-bors

rust-bors Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 989dd0f (989dd0faf82e12d5a6e66e47ddcb76f6918d3ba5)
Base parent: 063219d (063219d04d8b3428506da3d8585c0221c07ca15b)

@jhpratt

jhpratt commented Nov 27, 2026

Copy link
Copy Markdown
Member

seemingly stalled; closing as I added a couple more PRs

@jhpratt jhpratt closed this Nov 27, 2026
@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 27, 2026
@rust-bors

rust-bors Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved due to being closed.

Auto build was cancelled due to the PR being closed. Cancelled workflows:

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

Labels

A-btree Area: `std::collections::{BTreeMap, BTreeSet}` A-collections Area: `std::collections` (prefer A-binaryheap, A-btree, A-hashtable, A-linkedlist, A-vecdeque) 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-run-make Area: port run-make Makefiles to rmake.rs 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-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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.