Skip to content

Rollup of 3 pull requests - #165668

Merged
rust-bors[bot] merged 7 commits into
rust-lang:mainfrom
Zalathar:rollup-hykwRt1
Nov 9, 2026
Merged

rust-bors[bot] merged 7 commits into
rust-lang:mainfrom
Zalathar:rollup-hykwRt1

Conversation

@Zalathar

@Zalathar Zalathar commented Nov 9, 2026

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

mejrs and others added 7 commits November 8, 2026 12:56
…table, r=tiif

declare_tool_lint: allow use without `default_field_values` feature

Followup to rust-lang#164329

It's somewhat inconvenient, for 3rd party lint tool authors, to have to enable a feature that's really an implementation detail of the macro.
Do not suggest deriving Clone on foreign types in noop_method_call

Fixes rust-lang#134471

Only suggest the derive for local types. The test uses an aux crate because UI tests hide suggestions that point into std rust-lang#131782
… r=hanna-kruppe

Avoid Terminator:None in coroutine transform

Another step towards changing `Option<Terminator>` to `Terminator` in `BasicBlockData`. More info in [this thread](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/vibe.20check.20-.20removing.20Option.20from.20Terminator/with/637588808).

This case is an example of one of the main reasons the `Terminator: None` is used: We need to link blocks together by their ids, but some of those ids are not yet assigned. The previous code did this by first allocating the block with `None` terminator and then filled those terminators later, using the allocated block ids. This is nice because it reduces the chance of mixing up those block ids - the block id is already in the list on that specific id (index), so we know we're linking the correct one.

If we replaced this with code that calls `blocks.next_index()` to get the assumed id of next block, link the blocks together and push them to the list later, there's a chance that some further changes to the code will break this assumption  - just reordering the `push` statements will link the blocks incorrectly. `next_index` and `push` are currently not connected through the type system, so their coupling is implicit.

In this PR, we instead add a new kind of push function to the `IndexVec`, which allows us to get the next index (id of the next block) in the push operation, such that we can use it to link other blocks before finalizing the new one. The downside of this method is that it makes the structure a bit unobvious (at least in this case), I'd like to get more feedback on that.

As a bit more complex alternative, we could have some `reserve -> commit` style api instead (similar to Entry api). This one might be more useful for complex cases which need to push and link multiple blocks, those currently cannot be handled by the method from this PR. Or we could just take the risk and use the `next_index` method and hope that we always catch it with tests.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 9, 2026
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 9, 2026
@Zalathar

Zalathar commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Rollup of everything.

@bors r+ rollup=never p=5 force

@rust-bors

rust-bors Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 7b20eba has been approved by Zalathar

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

This comment has been minimized.

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

rust-bors Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: Zalathar
Duration: 3h 23m 36s
Pushing 4de0e38 to main...

@rust-bors
rust-bors Bot merged commit 4de0e38 into rust-lang:main Nov 9, 2026
15 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

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 ba58c66 (parent) -> 4de0e38 (this PR)

Test differences

Show 18 test diffs

Stage 1

  • [ui (polonius)] tests/ui/lint/noop-method-call-foreign.rs: [missing] -> pass (J1)
  • [ui (polonius)] tests/ui/structs/default-field-values/allow_internal_unstable_user.rs: [missing] -> pass (J1)
  • [ui] tests/ui/lint/noop-method-call-foreign.rs: [missing] -> pass (J2)
  • [ui] tests/ui/structs/default-field-values/allow_internal_unstable_user.rs: [missing] -> pass (J2)

Stage 2

  • [ui] tests/ui/lint/noop-method-call-foreign.rs: [missing] -> pass (J0)
  • [ui] tests/ui/structs/default-field-values/allow_internal_unstable_user.rs: [missing] -> pass (J0)

Additionally, 12 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 4de0e38612353dc524009a12ad43f0c05a5f8c6e --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-gcc: 1h 3m -> 2h 15m (+114.3%)
  2. test-x86_64-gnu-llvm-22-1: 54m 42s -> 1h 24m (+53.8%)
  3. dist-i686-mingw: 36m 33s -> 55m 26s (+51.7%)
  4. dist-android: 23m 9s -> 34m 7s (+47.4%)
  5. dist-powerpc-linux: 1h 6m -> 1h 37m (+47.0%)
  6. dist-x86_64-illumos: 1h 9m -> 1h 41m (+46.2%)
  7. test-x86_64-gnu-next-trait-solver-polonius: 46m 55s -> 1h 7m (+43.8%)
  8. dist-x86_64-freebsd: 1h 6m -> 1h 31m (+38.3%)
  9. test-i686-msvc: 2h 29m -> 3h 22m (+35.4%)
  10. test-x86_64-msvc-ext1: 1h 45m -> 2h 19m (+32.7%)
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 (4de0e38): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

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

Results (primary -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)
- - 0
Improvements ✅
(primary)
-1.5% [-1.5%, -1.5%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -1.5% [-1.5%, -1.5%] 1

Binary size

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

Bootstrap: 484.686s -> 483.729s (-0.20%)
Artifact size: 406.15 MiB -> 406.23 MiB (0.02%)

@Zalathar
Zalathar deleted the rollup-hykwRt1 branch November 9, 2026 07:54
@rust-bors

rust-bors Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#164990 declare_tool_lint: allow use without default_field_values… 87adee7be8282b571e6139d93e2c25118dc75268
(link)
#165420 Do not suggest deriving Clone on foreign types in noop_meth… ecd9845ed515cb1be8c787736c7eae501e8ee247
(link)
#165640 Avoid Terminator:None in coroutine transform 2ccd908acdce1ac09cb7c45bd32ad5d5d5dcaddf
(link)

parent commit: ba58c66e24

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.

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

Labels

merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants