Skip to content

Rollup of 11 pull requests - #160830

Open
jhpratt wants to merge 26 commits into
rust-lang:mainfrom
jhpratt:rollup-IMvXhX3
Open

Rollup of 11 pull requests#160830
jhpratt wants to merge 26 commits into
rust-lang:mainfrom
jhpratt:rollup-IMvXhX3

Conversation

@jhpratt

@jhpratt jhpratt commented Aug 10, 2026

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

Urgau and others added 26 commits July 21, 2026 23:06
When registering selector paths/aliases, steps shouldn't need to know their
kind.
Remapping of "rust-analyzer-proc-macro-srv" can be avoided by registering it as
an alias attached to the real path.

Remapping of "test" is not necessary at all, since `./x test tests` naturally
selects all of the test suites in `tests`.
These had a bunch of issues:
- They're extra work every time someone opens a PR
- They didn't show up at all if people used `gh pr create`
- They had "bad vibes" -- reviewers often don't want to think about
  LLMs, and adding a checkbox makes them very "in-your-face" for the reviewer.
- Every PR now shows "1 of 2 tasks", which is useless noise.
- The hovered PR description is now useless.

Replace them with an HTML comment that says "remember to disclose if you used an LLM".
This seems ok and low-noise for now.
If we find that people are ignoring the comment,
we could edit the triagebot welcome message to include a reminder and a link to the policy.
This fixes RUSTSEC-2026-0233, RUSTSEC-2026-0234 and RUSTSEC-2026-0235.
Many <*const T> methods (read family, copy_to{,_nonoverlapping}, offset_from,
len, as_ptr, get_unchecked), the ptr::{read,write,replace,swap,...} free
functions, and the PartialEq/PartialOrd impls were left as inline while their
<*mut T> equivalents are inline(always). This left them with out-of-line calls
in debug codegen; make them consistent.
This stabilizes both functions under this feature gate:

* `std::fs::set_times`
* `std::fs::set_times_nofollow`
bootstrap: Remove `PATH_REMAP` from command-line selector handling

Remapping of "rust-analyzer-proc-macro-srv" can be avoided by registering it as an alias attached to the real path.

Remapping of "test" is not necessary at all, since `./x test tests` naturally selects all of the test suites in `tests`.

(This changes the order of steps listed in the relevant snapshot tests, but the set of steps is unchanged.)

---

The removal of `ShouldRun::kind` is not essential to this PR, but I included it because it would have conflicted with changes to ShouldRun's alias-related methods.
…hanglo,ShoyuVanilla

Clarify `--remap-path-scope` impact on `rustc` metadata

This PR clarifirs the impact of the `--remap-path-scope` flag on `rustc` metadata.

Fixes rust-lang#159621

r? compiler
cc @weihanglo
…rk-Simulacrum

Add nightly-only support for Cargo unremap trim-paths files in `rust-gdb`

This PR adds support in `rust-gdb` for the un-remapping file produced by Cargo with `-Ztrim-paths` (rust-lang/cargo#17303). This support is nightly-only, and only activated when `RUST_GDB_TRIM_PATHS=unstable` is set.

An example of the unremap file:

```json
{"v":1}
{"rust_version":"1.96.0-nightly","workspace_root":"/home/me/app"}
{"from":"/cargo/build-dir","to":"/home/me/app/target"}
{"from":"/cargo/registry/6f17d22d3f0a95d1","to":"/home/me/.cargo/registry/src/index.crates.io-6f17d22d3f0a95d1"}
{"from":"/rustc/abc123","to":"/home/me/.rustup/toolchains/nightly/lib/rustlib/src/rust"}
```
…e, r=adwinwhite

normalization rework: clean up projection_ty_core

in rust-lang#160443 I was overly conservative in reworking how normalization works in projection_ty_core, because the PR was about other things. However, we can assume PlaceTy::ty is normalized (... I think).

r? lcnr
…acrum

Get rid of LLM disclosure checkboxes

These had a bunch of issues:
- They're extra work every time someone opens a PR
- They didn't show up at all if people used `gh pr create`
- They had "bad vibes" -- reviewers often don't want to think about LLMs, and adding a checkbox makes them very "in-your-face" for the reviewer.
- Every PR now shows "1 of 2 tasks", which is useless noise.
- The hovered PR description is now useless.

Replace them with an HTML comment that says "remember to disclose if you used an LLM". This seems ok and low-noise for now.
If we find that people are ignoring the comment,
we could edit the triagebot welcome message to include a reminder and a link to the policy (cc @Kobzol, i believe you'd planned to do this already).
…et-parser, r=clarfonthey

Change .expect message on net/parser to follow precondition style
…s, r=tgross35

`extern "custom"`: add tests

tracking issue: rust-lang#140829

r? tgross35
…60809, r=nia-e

Mark const ptr methods and free functions as inline(always) to match *mut

Closes rust-lang#160809. The `*const`  read/read_volatile/read_unaligned methods were `#[inline]` while the `*mut` equivalents are `#[inline(always)]` and verified the `*const` forms now inline in debug instead of emitting an out of line call.
…s, r=nia-e

Stabilize fs_set_times

This stabilizes both functions under this feature gate:

* `std::fs::set_times`
* `std::fs::set_times_nofollow`

This closes rust-lang#147455, which has a completed FCP for this: rust-lang#147455 (comment)
…t-parsing-fn, r=jieyouxu

Rename parse_delimited_token_tree in cfg_select

<!-- homu-ignore:start -->

- [x] I did not use an LLM to create a change in this PR.
- [ ] I used an LLM to create a change in this PR, and I have explained below how it was used.

From rust-lang#160303 (comment)
The fn `parse_delimited_token_tree` only for parsing `cfg_select`.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Aug 10, 2026
@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) 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) labels Aug 10, 2026
@rustbot rustbot added 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. labels Aug 10, 2026
@jhpratt

jhpratt commented Aug 10, 2026

Copy link
Copy Markdown
Member Author

@bors r+ p=5

@bors try jobs=dist-various-1,test-various,x86_64-gnu-aux,x86_64-gnu-llvm-21-3,x86_64-msvc-1,aarch64-apple-,x86_64-mingw-1,i686-msvc-

@rust-bors

rust-bors Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

📌 Commit a3ce0af has been approved by jhpratt

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

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Aug 10, 2026
Rollup of 11 pull requests


try-job: dist-various-1
try-job: test-various
try-job: x86_64-gnu-aux
try-job: x86_64-gnu-llvm-21-3
try-job: x86_64-msvc-1
try-job: aarch64-apple-*
try-job: x86_64-mingw-1
try-job: i686-msvc-*
@rust-bors

rust-bors Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

⌛ Testing commit a3ce0af with merge 8a2fbe3...

Workflow: https://github.com/rust-lang/rust/actions/runs/31361915458

rust-bors Bot pushed a commit that referenced this pull request Aug 10, 2026
Rollup of 11 pull requests

Successful merges:

 - #160675 (bootstrap: Remove `PATH_REMAP` from command-line selector handling )
 - #160807 (Update rustc crate rkyv to 0.8.18)
 - #159690 (Clarify `--remap-path-scope` impact on `rustc` metadata)
 - #160560 (Add nightly-only support for Cargo unremap trim-paths files in `rust-gdb`)
 - #160608 (normalization rework: clean up projection_ty_core)
 - #160785 (Get rid of LLM disclosure checkboxes)
 - #160804 (Change .expect message on net/parser to follow precondition style)
 - #160805 (`extern "custom"`: add tests)
 - #160816 (Mark const ptr methods and free functions as inline(always) to match *mut)
 - #160820 (Stabilize fs_set_times)
 - #160826 (Rename parse_delimited_token_tree in cfg_select)
@rust-bors

rust-bors Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: b15fb18 (b15fb1823972e38f72e803819cb1e486998cf332)
Base parent: 969b803 (969b803cbe1d4499f841ae0a49c637d8c70a0458)

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

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.