Skip to content

Rollup of 6 pull requests - #166251

Closed
JonathanBrouwer wants to merge 13 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-h8b6YPE
Closed

JonathanBrouwer wants to merge 13 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-h8b6YPE

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

lolbinarycat and others added 13 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
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)
#10 2.519 + mv node-v24.22.2-linux-x64 /node
#10 2.521 + /node/bin/node /node/bin/npm install --global yarn@1.22.22
#10 3.075 
#10 3.075 added 1 package in 483ms
#10 3.077 npm warn install-scripts 1 package has install scripts not yet covered by allowScripts:
#10 3.077 npm warn install-scripts   yarn@1.22.22 (preinstall: :; (node ./preinstall.js > /dev/null 2>&1 || true))
#10 3.077 npm warn install-scripts
#10 3.077 npm warn install-scripts Run `npm install -g --allow-scripts=yarn` to allow these scripts once, or `npm config set allow-scripts=yarn --location=user` to allow them for all global installs.
#10 3.078 npm notice
#10 3.078 npm notice New major version of npm available! 11.19.1 -> 12.2.3
#10 3.078 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3
#10 3.078 npm notice To update run: npm install -g npm@12.2.3
#10 3.078 npm notice
---
tidy check
x.py completions check
tidy [rustdoc_json (src)]: `rustdoc-json-types` modified, checking format version
tidy: Skipping binary file check, read-only filesystem
tidy [style (tests)]: /checkout/tests/ui-fulldeps/rustc_public/check_adt_queries.rs:2: trailing whitespace
tidy [style (tests)]: /checkout/tests/ui-fulldeps/rustc_public/check_adt_queries.rs:89: trailing whitespace
tidy [style (tests)]: /checkout/tests/ui-fulldeps/rustc_public/check_adt_queries.rs:152: trailing whitespace
tidy [style (tests)]: FAIL
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.12' and 'venv'
Requirement already satisfied: pip in ./build/venv/lib/python3.12/site-packages (24.0)
Collecting pip
  Downloading pip-26.3-py3-none-any.whl.metadata (4.6 kB)
---
Running eslint on rustdoc JS files
info: ES-Check: checking 7 files...
info: ✓ ES-Check passed! All files are ES10 compatible.
typechecking javascript files
tidy: The following check failed: style (tests)
Command `/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/rust-tidy --root-path=/checkout --cargo-path=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo --output-dir=/checkout/obj/build --concurrency=4 --npm-path=/node/bin/yarn --ci=true --extra-checks=py,cpp,js,spellcheck` failed with exit code 1
Created at: src/bootstrap/src/core/build_steps/tool.rs:1668:23
Executed at: src/bootstrap/src/core/build_steps/test.rs:1829:24

Command has failed. Rerun with -v to see more details.
Bootstrap failed while executing `test src/tools/tidy tidyselftest --extra-checks=py,cpp,js,spellcheck`
Currently active steps:
test::Tidy {  } at src/bootstrap/src/core/build_steps/test.rs:1744
Build completed unsuccessfully in 0:02:27
  local time: Fri Nov 20 12:45:26 UTC 2026

@rust-bors

rust-bors Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

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

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 20, 2026
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 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.

9 participants