Skip to content

Rollup of 14 pull requests - #166619

Closed
JonathanBrouwer wants to merge 34 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-uwvSZoC
Closed

JonathanBrouwer wants to merge 34 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-uwvSZoC

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
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
Add regression test for self-referential GAT with missing lifetime argument

Fixes rust-lang#154651

The ICE was fixed by rust-lang#156742.
…dead

Add codegen test for MaybeUninit array built in the return slot

Fixes rust-lang#74267

This was fixed by rust-lang#81451.
…jackh726

add fake borrow tests for divergent match guards

this provides a shared test suite for PRs that address rust-lang#161578: rust-lang#161581, rust-lang#162242, and rust-lang#163948.

it contains a `//@ known-bug` test for rust-lang#161578, some missing tests that already properly error, and tests for aspects in which those PRs differ from each other, organized for ease of comparison between those PRs
…dead

Don't suggest closure braces for errors inside the body

Fixes rust-lang#166272
…const-mir, r=khyperia

Encode direct const mir

closes: rust-lang#166409

For mir_for_ctfe we have two paths. One is for a const in the crate we are compiling. there we build the mir body ourselves, and if it's a direct const we synthesize it on the fly and continue. The other is for a const from another crate, there we don't build anything, we just look the body up in that crate's rmeta. For direct consts we were never storing that final mir body in the rmeta. So when a downstream crate used one as a value, the lookup found nothing and we 🧊 'd. So, now we are adding direct consts to mir_keys, so the encoder writes it in rmeta and it works

r? @khyperia
…s, r=nia-e

Document allocator behaviour of BTreeMap::append and BTreeSet::append

Document allocator behaviour of `BTreeMap::append` and `BTreeSet::append` similar to [rust-lang#165001](rust-lang#165001) for `BinaryHeap::append`.

r? nia-e
… 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
…Prop, r=nikic

llvm-wrapper: Pass LibraryOptionsContext to computeDeadSymbolsWithConstProp etc.

This adapts to llvm/llvm-project#245301
@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 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 21818b3 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

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Nov 26, 2026
Rollup of 14 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 Bot pushed a commit that referenced this pull request Nov 26, 2026
…uwer

Rollup of 14 pull requests

Successful merges:

 - #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)
 - #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)
 - #166574 (bump libffi)
 - #166584 (Arg pos const mismatch ice)
 - #166599 (add alias-bound test)
 - #166606 (llvm-wrapper: Pass LibraryOptionsContext to computeDeadSymbolsWithConstProp etc.)

Failed merges:

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

Copy link
Copy Markdown
Collaborator

The job test-aarch64-gnu-debug failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
  checking for aarch64-unknown-linux-gnu-cxx... no
  checking for aarch64-unknown-linux-gnu-cc++... no
  checking for aarch64-unknown-linux-gnu-cl.exe... no
  checking for aarch64-unknown-linux-gnu-FCC... no
  checking for aarch64-unknown-linux-gnu-KCC... no
  checking for aarch64-unknown-linux-gnu-RCC... no
  checking for aarch64-unknown-linux-gnu-xlC_r... no
  checking for aarch64-unknown-linux-gnu-xlC... no
  checking for aarch64-unknown-linux-gnu-clang++... no
  checking for g++... g++
  checking whether the compiler supports GNU C++... yes
  checking whether g++ accepts -g... yes
  checking for g++ option to enable C++11 features... none needed
  checking dependency style of g++... gcc3
---

  --- stderr
  clang: error: unsupported option '-print-multi-os-directory'
  clang: error: no input files
  config.status: error: in `/checkout/obj/build/aarch64-unknown-linux-gnu/stage2-tools/aarch64-unknown-linux-gnu/release/build/libffi-sys/2cf3892ee75c61c2/out/libffi-build/aarch64-unknown-linux-gnu':
  config.status: error: Something went wrong bootstrapping makefile fragments
      for automatic dependency tracking.  If GNU make was not used, consider
      re-running the configure script with MAKE="gmake" (or whatever is
      necessary).  You can also try re-running configure with the
      '--disable-dependency-tracking' option to at least be able to build
      the package (albeit without support for automatic dependency tracking).
  See `config.log' for more details

  thread 'main' (102032) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libffi-sys-4.2.2/build/not_msvc.rs:154:5:
  Configuring libffi: exit status: 1 (cd "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2-tools/aarch64-unknown-linux-gnu/release/build/libffi-sys/2cf3892ee75c61c2/out/libffi-build" && CC="clang" CFLAGS="-O3 -ffunction-sections -fdata-sections -fPIC -g -gdwarf-4 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer --target=aarch64-unknown-linux-gnu -w" LC_ALL="C" "sh" "./configure" "--with-pic" "--disable-shared" "--disable-docs" "--host=aarch64-unknown-linux-gnu" "--prefix" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2-tools/aarch64-unknown-linux-gnu/release/build/libffi-sys/2cf3892ee75c61c2/out/libffi-root")
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
[RUSTC-TIMING] serde_json test:false 5.563
[RUSTC-TIMING] regex_automata test:false 17.905
[RUSTC-TIMING] object test:false 12.379

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

rust-bors Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 2f76b6d failed: CI. Failed job:

@rust-bors rust-bors Bot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 26, 2026
@rust-bors

rust-bors Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

PR #166574, which is a member of this rollup, was unapproved.

@rust-bors rust-bors Bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 26, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 26, 2026
@rust-bors

rust-bors Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: acc1e9f (acc1e9f86ca8ea2eceaa36055ccbc6a550d3aa5f)
Base parent: b3d5b3f (b3d5b3ffa10b2a162f2a2b001378d46e32ec3980)

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 rollup A PR which is a rollup 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.