Skip to content

Conversation

@jhpratt
Copy link
Member

@jhpratt jhpratt commented Dec 24, 2025

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

usamoi and others added 7 commits December 15, 2025 18:57
Unlike the other types covered by `PatConstKind::Other`, const-float patterns
can also interact with range patterns.
stabilize `lazy_get`

closes rust-lang#129333
FCP is finished in rust-lang#129333 (comment)

```@rustbot``` modify labels: +T-libs-api
Correct terminology in Clone

I think the current wording around Clone here is confusing:

- "Rust does not allow you to reimplement `Copy`" - reimplement isn't a piece of Rust terminology, but as written it sounds like you can't write `impl Copy for X`, which you can.
- "you may reimplement `Clone`" - again reimplement isn't really a thing that you do to a trait, the distinction is between manually implementing and deriving.
- "you can automatically make anything `Copy` be `Clone` as well" - you don't have a choice about it, so it doesn't really make sense to say you "can ... make" this happen.
mir_build: Classify `TestableCase::Constant` into multiple sub-kinds

In match lowering, when choosing a test for a `TestableCase::Constant`, there is some ad-hoc logic for inspecting the pattern type and deciding what kind of test is suitable. There is also some very similar logic later, when partitioning cases into buckets based on the chosen test.

Instead of having that ad-hoc logic in multiple places, I think it's better to perform an up-front classification when lowering `thir::PatKind::Constant` to `TestableCase::Constant`, and then have the later steps simply match on an enum variant.

There should be no change to the resulting built MIR.

(I will note that the logic/invariants involved are a bit unclear, so there is a risk of accidental minor differences.)
@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. T-libs Relevant to the library team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels Dec 24, 2025
@jhpratt
Copy link
Member Author

jhpratt commented Dec 24, 2025

@bors r+ rollup=never p=3

@bors
Copy link
Collaborator

bors commented Dec 24, 2025

📌 Commit f9e3c61 has been approved by jhpratt

It is now in the queue for this repository.

@bors bors 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 Dec 24, 2025
@bors
Copy link
Collaborator

bors commented Dec 24, 2025

⌛ Testing commit f9e3c61 with merge c4aa646...

@bors
Copy link
Collaborator

bors commented Dec 24, 2025

☀️ Test successful - checks-actions
Approved by: jhpratt
Pushing c4aa646 to main...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 24, 2025
@bors bors merged commit c4aa646 into rust-lang:main Dec 24, 2025
12 checks passed
@rustbot rustbot added this to the 1.94.0 milestone Dec 24, 2025
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#150016 stabilize lazy_get cc7831f41fecee65a50ebfb843beaec18991828d (link)
#150139 Correct terminology in Clone 1fca827ba4686fa691e74b72ecefc5ceeeceed97 (link)
#150238 mir_build: Classify TestableCase::Constant into multiple … 6a3bf141d770b27e7ced3ce0693d310cb6887242 (link)

previous master: efa32de15b

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

@github-actions
Copy link
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 efa32de (parent) -> c4aa646 (this PR)

Test differences

Show 79 test diffs

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

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard c4aa646f15e40bd3e64ddb5017b7b89b3646ac99 --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. dist-apple-various: 4274.0s -> 3639.3s (-14.9%)
  2. x86_64-gnu: 7325.0s -> 8361.9s (+14.2%)
  3. dist-aarch64-msvc: 6443.4s -> 5686.7s (-11.7%)
  4. aarch64-apple: 8953.7s -> 9866.6s (+10.2%)
  5. dist-x86_64-msvc-alt: 8775.0s -> 9564.6s (+9.0%)
  6. aarch64-msvc-2: 6525.1s -> 5955.6s (-8.7%)
  7. dist-powerpc-linux: 5546.0s -> 5076.4s (-8.5%)
  8. x86_64-gnu-distcheck: 7433.3s -> 8009.1s (+7.7%)
  9. dist-ohos-armv7: 3903.9s -> 4203.3s (+7.7%)
  10. test-various: 6647.0s -> 6198.3s (-6.8%)
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
Collaborator

Finished benchmarking commit (c4aa646): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (primary 5.6%)

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

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

Cycles

Results (secondary -3.9%)

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

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 484.408s -> 483.398s (-0.21%)
Artifact size: 392.47 MiB -> 392.47 MiB (-0.00%)

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 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. 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.

6 participants