Skip to content

Skip move checks when the size limit is zero - #164332

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
charliermarsh:charlie/skip-disabled-move-checks
Oct 15, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
charliermarsh:charlie/skip-disabled-move-checks

Conversation

@charliermarsh

Copy link
Copy Markdown
Contributor

Summary

When the move-size limit is zero (i.e., the default), the individual large-assignment checks already return without doing anything. But we still traverse the reachable MIR blocks and monomorphize callee types before reaching those checks. This PR instead returns early from check_moves.

@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 Oct 14, 2026
@rustbot

rustbot commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

r? @TaKO8Ki

rustbot has assigned @TaKO8Ki.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 77 candidates
  • Random selection from 18 candidates

@Kobzol

Kobzol commented Oct 14, 2026

Copy link
Copy Markdown
Member

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 14, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Oct 14, 2026
…ks, r=<try>

Skip move checks when the size limit is zero
@rust-bors

rust-bors Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: b5c78cd (b5c78cd49f88d89a5c2aeb383c2d273a22a00cf1)
Base parent: 7df8138 (7df81381d027710708209f36b98d11b1c88f8d2e)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (b5c78cd): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@bors rollup=iffy rustc-perf
@rustbot label: -S-waiting-on-perf -perf-regression

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
Improvements ✅
(primary)
-0.8% [-0.8%, -0.8%] 1
Improvements ✅
(secondary)
-0.3% [-0.6%, -0.2%] 6
All ❌✅ (primary) -0.8% [-0.8%, -0.8%] 1

Max RSS (memory usage)

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

Cycles

Results (primary 2.4%, secondary 4.2%)

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

mean range count
Regressions ❌
(primary)
2.4% [2.4%, 2.4%] 1
Regressions ❌
(secondary)
4.2% [4.2%, 4.2%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.4% [2.4%, 2.4%] 1

Binary size

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

Bootstrap: 489.902s -> 487.199s (-0.55%)
Artifact size: 407.05 MiB -> 406.95 MiB (-0.02%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 15, 2026
@TaKO8Ki

TaKO8Ki commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Thank you! @bors r+ rollup

@rust-bors

rust-bors Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

📌 Commit fd1029d has been approved by TaKO8Ki

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 Oct 15, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 15, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - #164332 (Skip move checks when the size limit is zero)
 - #164351 (Print exit code if rustc fails in compiletest)
@rust-bors
rust-bors Bot merged commit 3a03efb into rust-lang:main Oct 15, 2026
15 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 15, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 15, 2026
Rollup merge of #164332 - charliermarsh:charlie/skip-disabled-move-checks, r=TaKO8Ki

Skip move checks when the size limit is zero

## Summary

When the move-size limit is zero (i.e., the default), the individual large-assignment checks already return without doing anything. But we still traverse the reachable MIR blocks and monomorphize callee types before reaching those checks. This PR instead returns early from `check_moves`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

5 participants