Skip to content

Rollup of 10 pull requests - #166519

Closed
JonathanBrouwer wants to merge 27 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-NyxBrLX
Closed

JonathanBrouwer wants to merge 27 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-NyxBrLX

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

zakrad and others added 27 commits October 14, 2026 02:03
Because a `FnParam::Ident` now always comes from function args const generics, we can change it to `FnParam::GenericParam`
Lower to `hir::Param`s for required trait functions

The same as rust-lang#166142, but for required trait functions.
Also includes a bunch of cleanup.

I recommend reviewing commit by commit, every commit passes tests.
Earlier commits leave TODOs that are fixed by later commits

Part of rust-lang#164357
r? Kivooeo
…aumeGomez

rustdoc: Use source snippet to render `include_*` literals

Related: rust-lang#65818

A substantial portion of the slowness from `include_bytes!` on large blobs comes from escaping these blobs and encoding that rendered string into the rlib. For `include` macros, rendering a source snippet is much more performant and IMO clearer.

r? rustdoc (as this is only consumed by rustdoc)
…uillaumeGomez

Integrate doc comment target checking on parameters & where bounds

Follow-up of rust-lang#166093

I recommend reviewing commit by commit, every commit passes tests.
The line-diff is quite negative when you ignore uitests :D

r? @GuillaumeGomez
cc @mejrs
Add regression test for self-referential GAT with missing lifetime argument

Fixes rust-lang#154651

The ICE was fixed by rust-lang#156742.
…e, r=BoxyUwU

Sync tier 3 addition policy with Forge

We forgot to sync this back to the target tier policy when we updated the Forge policy.

> New targets should be assigned to the compiler team co-leads to check for any licensing concerns and to ensure that any demands on the project infrastructure are considered and checked with relevant teams.

Ref: https://forge.rust-lang.org/compiler/proposals-and-stabilization.html#targets

r? compiler_leads
… r=hanna-kruppe

Revert "stabilize {Arc,Rc}::is_unique"

Supercedes rust-lang#165962.
Reopens rust-lang#138938.

As mentioned last week: https://github.com/rust-lang/libs-team/blob/56dd8ca2e2aa2c097d8b8010da6fef790a5ec97c/minutes/2026-11-17.md#165962-arc-make-is_unique-respect-promised-ordering

(Note: this only reverts the stabilization commit, not the docs changes from the original PR. Those can stay.)
… r=Urgau

triagebot: Send "in progress" message when nomination is in progress

Previously it would trigger the "nomination has been removed" message which could be confusing.
This makes the message more clear, at the cost of a little duplication, but that duplication seems to be the norm anyways in the triagebot config :p

This PR does it only for the compiler team, I'm happy to also make this change to other teams

r? Urgau
… r=hanna-kruppe

rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout

Updated in llvm/llvm-project#245115

@rustbot label: +llvm-main
Update the Platform Support page for the *-espidf targets

This PR is addressing rust-lang#166446 and thus fixing a long standing problem where the `*-espidf` targets were severely under-documented in the rust repo.

NOTE: Bits and pieces of the new documentation were worded by an LLM or reviewed and re-worded by an LLM.
Needless to say, I have of course extensively reviewed the latest page contents myself too.
…ble, r=Urgau

[rustdoc] Fix rustc_private items being marked as unstable in the search results

Follow-up of rust-lang#153746.

Before:

<img width="633" height="325" alt="Screenshot From 2026-11-24 16-12-07" src="https://github.com/user-attachments/assets/702def0d-f84d-49d3-b3b7-3d4d5a90162e" />

After:

<img width="633" height="325" alt="Screenshot From 2026-11-24 16-11-57" src="https://github.com/user-attachments/assets/4d1c0004-8787-4aae-8cae-9da2c0fb0281" />

The fix was to also check if the `unstable` stability was coming from `rustc_private` (which we already did when rendering an item).

cc @lolbinarycat
r? @Urgau
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 24, 2026
@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. labels Nov 24, 2026
@rustbot rustbot added A-meta Area: Issues & PRs about the rust-lang/rust repository itself A-rc Area: `Rc` and `Arc` A-rustdoc-js Area: Rustdoc's JS front-end A-rustdoc-search Area: Rustdoc's search feature 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. 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 Nov 24, 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 24, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 8c2b2e3 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 24, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Nov 24, 2026
Rollup of 10 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-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-x86_64-gnu-llvm-22-3 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
test [ui] tests/ui/zero-sized/zero-sized-btreemap-insert.rs ... ok

failures:

---- [ui] tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs#current stdout ----
Saved the actual stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.current/self-referential-gat-missing-lifetime-arg-ice-154651.current.stderr`
diff of stderr:

7 note: associated type defined here, with 1 lifetime parameter: `'a`
8   --> $DIR/self-referential-gat-missing-lifetime-arg-ice-154651.rs:11:10
9    |
---
To only update this specific test, also pass `--test-args generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs`

error in revision `current`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.current/auxiliary:" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1" "--target=x86_64-unknown-linux-gnu" "--cfg" "current" "--check-cfg" "cfg(test,FALSE,current,next)" "-Zthreads=1" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.current" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015"
stdout: none
--- stderr -------------------------------
error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
##[error]  --> /checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs:17:42
   |
LL |     type Ctx<'a, const N: usize> = Self::Ctx<N>;
   |                                          ^^^ expected 1 lifetime argument
   |
note: associated type defined here, with 1 lifetime parameter: `'a`
  --> /checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs:11:10
   |
LL | trait Processor {
LL |     type Ctx<'a, const N: usize>;
   |          ^^^ --
help: add missing lifetime argument
   |
LL |     type Ctx<'a, const N: usize> = Self::Ctx<'a, N>;
   |                                              +++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0107`.
------------------------------------------

---- [ui] tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs#current stdout end ----
---- [ui] tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs#next stdout ----
Saved the actual stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.next/self-referential-gat-missing-lifetime-arg-ice-154651.next.stderr`
diff of stderr:

7 note: associated type defined here, with 1 lifetime parameter: `'a`
8   --> $DIR/self-referential-gat-missing-lifetime-arg-ice-154651.rs:11:10
9    |
---
To only update this specific test, also pass `--test-args generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs`

error in revision `next`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.next/auxiliary:" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1" "--target=x86_64-unknown-linux-gnu" "--cfg" "next" "--check-cfg" "cfg(test,FALSE,current,next)" "-Zthreads=1" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.next" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015" "-Znext-solver"
stdout: none
--- stderr -------------------------------
error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
##[error]  --> /checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs:17:42
   |
LL |     type Ctx<'a, const N: usize> = Self::Ctx<N>;
   |                                          ^^^ expected 1 lifetime argument
   |
note: associated type defined here, with 1 lifetime parameter: `'a`
  --> /checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs:11:10
   |
LL | trait Processor {
LL |     type Ctx<'a, const N: usize>;
   |          ^^^ --
help: add missing lifetime argument
   |
LL |     type Ctx<'a, const N: usize> = Self::Ctx<'a, N>;
   |                                              +++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0107`.

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

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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

This rollup was thus unapproved.

@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 24, 2026
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)
test [ui] tests/ui/zero-sized/zero-sized-btreemap-insert.rs ... ok

failures:

---- [ui] tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs#current stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.current/self-referential-gat-missing-lifetime-arg-ice-154651.current.stderr`
diff of stderr:

7 note: associated type defined here, with 1 lifetime parameter: `'a`
8   --> $DIR/self-referential-gat-missing-lifetime-arg-ice-154651.rs:11:10
9    |
---
To only update this specific test, also pass `--test-args generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs`

error in revision `current`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR LD_LIBRARY_PATH="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.current/auxiliary:" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--cfg" "current" "--check-cfg" "cfg(test,FALSE,current,next)" "-Zthreads=1" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.current" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015"
stdout: none
--- stderr -------------------------------
error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
##[error]  --> /checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs:17:42
   |
LL |     type Ctx<'a, const N: usize> = Self::Ctx<N>;
   |                                          ^^^ expected 1 lifetime argument
   |
note: associated type defined here, with 1 lifetime parameter: `'a`
  --> /checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs:11:10
   |
LL | trait Processor {
LL |     type Ctx<'a, const N: usize>;
   |          ^^^ --
help: add missing lifetime argument
   |
LL |     type Ctx<'a, const N: usize> = Self::Ctx<'a, N>;
   |                                              +++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0107`.
------------------------------------------

---- [ui] tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs#current stdout end ----
---- [ui] tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs#next stdout ----
Saved the actual stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.next/self-referential-gat-missing-lifetime-arg-ice-154651.next.stderr`
diff of stderr:

7 note: associated type defined here, with 1 lifetime parameter: `'a`
8   --> $DIR/self-referential-gat-missing-lifetime-arg-ice-154651.rs:11:10
9    |
---
To only update this specific test, also pass `--test-args generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs`

error in revision `next`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR LD_LIBRARY_PATH="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.next/auxiliary:" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--cfg" "next" "--check-cfg" "cfg(test,FALSE,current,next)" "-Zthreads=1" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.next" "-Znext-solver=coherence" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2015" "-Znext-solver"
stdout: none
--- stderr -------------------------------
error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
##[error]  --> /checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs:17:42
   |
LL |     type Ctx<'a, const N: usize> = Self::Ctx<N>;
   |                                          ^^^ expected 1 lifetime argument
   |
note: associated type defined here, with 1 lifetime parameter: `'a`
  --> /checkout/tests/ui/generic-associated-types/self-referential-gat-missing-lifetime-arg-ice-154651.rs:11:10
   |
LL | trait Processor {
LL |     type Ctx<'a, const N: usize>;
   |          ^^^ --
help: add missing lifetime argument
   |
LL |     type Ctx<'a, const N: usize> = Self::Ctx<'a, N>;
   |                                              +++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0107`.

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

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 4851eda failed: CI. Failed jobs:

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-rc Area: `Rc` and `Arc` A-rustdoc-js Area: Rustdoc's JS front-end A-rustdoc-search Area: Rustdoc's search feature 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. 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.

10 participants