Skip to content

Remove usages of Unique from RawVec - #162804

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
maxdexh:nuke-unique-in-vec
Sep 20, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
maxdexh:nuke-unique-in-vec

Conversation

@maxdexh

@maxdexh maxdexh commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

View all comments

See zulip.

Probably needs a perf run, because it touches code that might be very sensitive to build times and debug mode

r? libs

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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 Sep 15, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@maxdexh
maxdexh marked this pull request as ready for review September 15, 2026 14:59
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 15, 2026
@saethlin

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

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 15, 2026
Remove usages of `Unique` from `RawVec`
@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 15, 2026
@rust-bors

rust-bors Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 993bb96 failed: CI, CI

@hanna-kruppe

Copy link
Copy Markdown
Contributor

@bors try

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 15, 2026
Remove usages of `Unique` from `RawVec`
@rust-bors

rust-bors Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: b67dca9 (b67dca92df005a4ebbe8c3b45e6cfe97925fff26)
Base parent: 1936d44 (1936d44457352da43b2d740672b940ebc715ac38)

@rust-timer

This comment has been minimized.

@hanna-kruppe

Copy link
Copy Markdown
Contributor

Nice cleanup, I'd say "r=me if perf looks good" but we should probably do some due diligence about debug visualizers. You mentioned on Zulip that you tested manually in gdb, I can try on Windows locally later.

r? me

@rustbot rustbot assigned hanna-kruppe and unassigned jhpratt Sep 15, 2026
@hanna-kruppe

Copy link
Copy Markdown
Contributor

Oh, huh, guess that a bunch of old backcompat hacks made the gdb visualizer resilient to this change:

return ptr if ptr.type.code == gdb.TYPE_CODE_PTR else ptr[ptr.type.fields()[0]]

But the natvis looks like it’ll break:

<ValuePointer>($T1*)buf.inner.ptr.pointer.pointer</ValuePointer>

@hanna-kruppe

Copy link
Copy Markdown
Contributor

@bors try jobs=test-aarch64-apple-1

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Sep 19, 2026
Remove usages of `Unique` from `RawVec`


try-job: test-aarch64-apple-1
@maxdexh

maxdexh commented Sep 19, 2026

Copy link
Copy Markdown
Member Author

I wonder why I can't run lldb tests locally on linux...

@rust-log-analyzer

This comment has been minimized.

@maxdexh

maxdexh commented Sep 19, 2026 •

Copy link
Copy Markdown
Member Author

I think that's from the previous job

edit: it's actually from the one before even that 👀

@rust-bors

rust-bors Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: f47ec7d (f47ec7d2cb32b982a7afec88c3be46618f4c49b8)
Base parent: feaadee (feaadeeaca7db0594da854e7c8c07495341c7439)

@hanna-kruppe hanna-kruppe left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I changed my mind about updating that comment in the LLDB providers after a closer look. r=me after

View changes since this review

Comment thread library/alloc/src/raw_vec/mod.rs
Comment thread src/etc/lldb_providers.py Outdated
@maxdexh

maxdexh commented Sep 20, 2026

Copy link
Copy Markdown
Member Author

oops, forgot that i had other changes in that file ^^

@hanna-kruppe

Copy link
Copy Markdown
Contributor

@bors r+

@rust-bors

rust-bors Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 16337b6 has been approved by hanna-kruppe

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 20, 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 Sep 20, 2026
@rust-bors

rust-bors Bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: hanna-kruppe
Duration: 2h 59m
Pushing 12c4d3f to main...

@rust-bors
rust-bors Bot merged commit 12c4d3f into rust-lang:main Sep 20, 2026
14 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 20, 2026
@github-actions

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 fc7358c (parent) -> 12c4d3f (this PR)

Test differences

No test diffs found

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 12c4d3f34dcb4715784d2fa0e8443853e0592194 --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-x86_64-musl: 1h 28m -> 2h 13m (+51.0%)
  2. dist-s390x-linux: 1h 5m -> 1h 34m (+44.0%)
  3. test-i686-gnu-2: 1h 36m -> 1h (-37.7%)
  4. test-x86_64-gnu-llvm-22-3: 1h 22m -> 1h 51m (+35.3%)
  5. test-x86_64-msvc-ext2: 1h 21m -> 1h 49m (+33.7%)
  6. test-x86_64-msvc-ext1: 1h 50m -> 2h 26m (+31.8%)
  7. dist-x86_64-msvc: 1h 55m -> 2h 30m (+30.5%)
  8. test-x86_64-rust-for-linux: 56m 22s -> 39m 15s (-30.4%)
  9. test-pr-check-2: 30m 59s -> 39m 38s (+27.9%)
  10. dist-ohos-armv7: 1h 14m -> 53m 43s (-27.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.

@maxdexh
maxdexh deleted the nuke-unique-in-vec branch September 20, 2026 16:15
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (12c4d3f): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

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.5% [0.5%, 0.5%] 1
Regressions ❌
(secondary)
0.3% [0.3%, 0.3%] 1
Improvements ✅
(primary)
-0.2% [-0.3%, -0.1%] 8
Improvements ✅
(secondary)
-0.2% [-0.2%, -0.1%] 5
All ❌✅ (primary) -0.1% [-0.3%, 0.5%] 9

Max RSS (memory usage)

Results (primary 0.9%, 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)
4.6% [1.6%, 8.0%] 4
Regressions ❌
(secondary)
4.2% [4.2%, 4.2%] 1
Improvements ✅
(primary)
-2.8% [-3.9%, -1.3%] 4
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.9% [-3.9%, 8.0%] 8

Cycles

Results (primary -2.3%, 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)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-2.3% [-2.3%, -2.3%] 1
Improvements ✅
(secondary)
-4.2% [-6.1%, -2.3%] 2
All ❌✅ (primary) -2.3% [-2.3%, -2.3%] 1

Binary size

Results (primary 0.0%, secondary 0.1%)

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

mean range count
Regressions ❌
(primary)
0.1% [0.0%, 0.4%] 44
Regressions ❌
(secondary)
0.1% [0.0%, 0.6%] 49
Improvements ✅
(primary)
-0.2% [-0.4%, -0.0%] 19
Improvements ✅
(secondary)
-0.0% [-0.0%, -0.0%] 5
All ❌✅ (primary) 0.0% [-0.4%, 0.4%] 63

Bootstrap: 500.549s -> 496.862s (-0.74%)
Artifact size: 408.70 MiB -> 408.74 MiB (0.01%)

@Mark-Simulacrum

Copy link
Copy Markdown
Member

Regression in coercions looks like noise. Cargo regression looks real, but
limited to one incremental scenario; doesn't seem worth followup.

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. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. 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.