Skip to content

Rollup of 5 pull requests - #166254

Merged
rust-bors[bot] merged 11 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-Ion5AB8
Nov 20, 2026
Merged

rust-bors[bot] merged 11 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-Ion5AB8

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

lolbinarycat and others added 11 commits March 11, 2026 18:06
…ark-Simulacrum

compiletest: Add testing for lint machinery at runtime

While implementing rust-lang#157707, I noticed that we don't have 'runtime' tests for the diagnostic machinery (i.e. we test the derive macros themselves, but not their output when emitted). This introduces a new way to test this machinery.

- Add `//@ aux-lint: file.rs`, which builds a lint library in `auxiliary/file.rs`
- Lint libraries link with `rustc_private`, and export a `extern "C" fn register_lints(...)`
- A new `compiletest-lint-driver` wraps rustc and installs the provided lints when building the test

Included is a simple demo lint for example

_AI Disclosure: I used an LLM to plan out the broad structure of the machinery and identify issues; all code in this PR is written by hand_
…nstable-deprecated, r=GuillaumeGomez

rustdoc: add emoji icons for unstable and deprecated to search results

fixes rust-lang#149943

r? @GuillaumeGomez
…bjorn3

RISC-V: enable relax target feature by default

This PR adds `+relax` to the default target features for all RISC-V targets to enable emission of linker relaxations by LLVM. It does not enable "global pointer" relaxations; see rust-lang#163890 for more context and discussion on how those relaxations work. `relax` is then marked as an internal-only target feature so that it can't be modified with `-Ctarget-feature=±relax` or used with `#[cfg(target_feature = "relax")]`, `#[target_feature = "relax"]`, none of which make sense.

When building wild for `riscv64gc-unknown-linux-gnu`, it reduces binary size by 1.2%. When building my work project for `riscv32i-unknown-none-elf`, it reduces binary size by 1.9%, or by 2.1% if global pointer relaxations are enabled with `--relax-gp`.

This is an alternative to rust-lang#163890 which will supersede that one if merged.
cc @RalfJung, @romancardenas, @bjorn3 as participants on the previous thread.

r? compiler
…tation-view-variant, r=oli-obk

view-types: better documentation for View variant
…, r=fmease

Add rustdoc-ui tests for (some) malformed doc attributes

Fixes rust-lang#146346.

Which reminds me I should finish rust-lang#165187...

r? @fmease
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 20, 2026
@rustbot rustbot added A-compiletest Area: The compiletest test runner A-rustc-dev-guide Area: rustc-dev-guide A-rustdoc-js Area: Rustdoc's JS front-end A-rustdoc-search Area: Rustdoc's search feature A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) 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. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. labels Nov 20, 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 20, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 7b663f9 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 20, 2026
@rust-bors

This comment has been minimized.

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

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 06eebf5 (06eebf5b217d4677f674e0e043a3ef80897a922c)
Base parent: ec65cd5 (ec65cd52bba13d491ff65c9d218b39753755c84a)

@rust-bors rust-bors Bot added merged-by-bors This PR was explicitly merged by bors. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 20, 2026
@rust-bors

rust-bors Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: JonathanBrouwer
Duration: 3h 18m 38s
Pushing 5c56312 to main...

@rust-bors
rust-bors Bot merged commit 5c56312 into rust-lang:main Nov 20, 2026
16 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor
What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 560abf7 (parent) -> 5c56312 (this PR)

Test differences

Show 6 test diffs

Stage 1

  • [ui] tests/rustdoc-ui/invalid-doc-attr.rs: [missing] -> pass (J2)
  • [ui] tests/ui-fulldeps/session-diagnostic/diagnostic-derive-compiletime.rs: [missing] -> pass (J2)

Stage 2

  • [ui] tests/rustdoc-ui/invalid-doc-attr.rs: [missing] -> pass (J0)
  • [ui] tests/ui-fulldeps/session-diagnostic/diagnostic-derive-compiletime.rs: [missing] -> pass (J1)

Additionally, 2 doctest diffs were found. These are ignored, as they are noisy.

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 5c56312f346d7cc8209d9fc0fd660c72e6fc6950 --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. test-x86_64-gnu-aux: 1h 49m -> 3h 2m (+66.2%)
  2. dist-x86_64-musl: 1h 32m -> 2h 23m (+56.3%)
  3. dist-powerpc64-linux-musl: 1h 9m -> 1h 39m (+43.5%)
  4. test-tidy: 4m 22s -> 6m 12s (+42.0%)
  5. test-x86_64-msvc-1: 2h 55m -> 1h 45m (-39.9%)
  6. test-x86_64-gnu-tools: 51m 41s -> 1h 11m (+39.1%)
  7. test-x86_64-rust-for-linux: 1h 2m -> 39m 8s (-37.6%)
  8. test-x86_64-msvc-ext2: 1h 36m -> 1h 3m (-34.9%)
  9. test-armhf-gnu: 1h 36m -> 1h 4m (-33.1%)
  10. test-x86_64-gnu-llvm-22-3: 1h 34m -> 2h 4m (+32.2%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (5c56312): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.7% [0.0%, 1.1%] 9
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.1%] 3
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary -2.3%, secondary 1.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.1% [1.6%, 5.4%] 7
Improvements ✅
(primary)
-2.3% [-2.3%, -2.2%] 3
Improvements ✅
(secondary)
-1.3% [-3.2%, -0.4%] 4
All ❌✅ (primary) -2.3% [-2.3%, -2.2%] 3

Cycles

Results (secondary -0.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.7% [0.6%, 6.9%] 7
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.4% [-8.2%, -0.4%] 6
All ❌✅ (primary) - - 0

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 460.27s -> 460.758s (0.11%)
Artifact size: 405.34 MiB -> 406.02 MiB (0.17%)

@rustbot rustbot added the perf-regression Performance regression. label Nov 20, 2026
@rust-bors

rust-bors Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#157721 compiletest: Add testing for lint machinery at runtime 0e68070da74dd063c43cc09408af2adb2892132e
(link)
#153746 rustdoc: add emoji icons for unstable and deprecated to sea… 4f340d9777d781ed0330b19ceea0332cb1f348d3
(link)
#164378 RISC-V: enable relax target feature by default 0fa44e9d69b2f9911104f52f4085d39adea92106
(link)
#166241 view-types: better documentation for View variant 36738dc322b14a525a54e1e6195269b731f2b58f
(link)
#166246 Add rustdoc-ui tests for (some) malformed doc attributes 9500359f2fd69ecd0ef0aefaaf2f6a6bd08dad88
(link)

parent commit: 560abf7946

In the case of a perf regression, run the following command with the SHAs of each PR you suspect might be the cause: @rust-timer triage $SHA $SHA $SHA..., or run @rust-timer triage all to benchmark all rollup members.

@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@rust-timer triage all

@rust-timer

rust-timer commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator
Running triage with 2 benchmarks

Triage only executes the benchmarks on rollup members, that were changed significantly on the rollup.
For this rollup, these benchmarks are:

  • ctfe-stress-5
  • include-blob

#157721 0e68070 compiletest: Add testing for lint machinery at runtime

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#153746 4f340d9 rustdoc: add emoji icons for unstable and deprecated to search results

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.3% [0.0%, 0.5%] 11
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#164378 0fa44e9 RISC-V: enable relax target feature by default

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#166241 36738dc view-types: better documentation for View variant

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.


#166246 9500359 Add rustdoc-ui tests for (some) malformed doc attributes

This perf run didn't have relevant results for the `instruction count` metric.

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.

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

Labels

A-compiletest Area: The compiletest test runner A-rustc-dev-guide Area: rustc-dev-guide A-rustdoc-js Area: Rustdoc's JS front-end A-rustdoc-search Area: Rustdoc's search feature A-testsuite Area: The testsuite used to check the correctness of rustc merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. rollup A PR which is a rollup T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) 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. 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.

8 participants