Skip to content

Merge two different equality specialization traits in core #108483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

scottmcm
Copy link
Member

@scottmcm scottmcm commented Feb 26, 2023

Arrays and slices each had their own version of this, without a matching set of impls.

Merge them into one (still-pub(crate)) cmp::BytewiseEq trait, so we can stop doing all these things twice.

And that means that the [T]::eqmemcmp specialization picks up a bunch of types where that previously only worked for arrays, so examples like https://rust.godbolt.org/z/KjsG8MGGT will use it now instead of emitting loops.

r? the8472

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Feb 26, 2023
@rustbot

This comment was marked as resolved.

@rust-log-analyzer

This comment has been minimized.

@scottmcm scottmcm force-pushed the unify-bytewise-eq-traits branch from 04e78a7 to 17eb9a4 Compare February 26, 2023 08:53
@scottmcm
Copy link
Member Author

@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 Feb 26, 2023
@bors
Copy link
Collaborator

bors commented Feb 26, 2023

⌛ Trying commit 17eb9a4119fa8a997e23a9550aa4c61a32448c96 with merge 9c05d441ef24374b0550066c86e1aaa9c88bb046...

@bors
Copy link
Collaborator

bors commented Feb 26, 2023

☀️ Try build successful - checks-actions
Build commit: 9c05d441ef24374b0550066c86e1aaa9c88bb046 (9c05d441ef24374b0550066c86e1aaa9c88bb046)

1 similar comment
@bors
Copy link
Collaborator

bors commented Feb 26, 2023

☀️ Try build successful - checks-actions
Build commit: 9c05d441ef24374b0550066c86e1aaa9c88bb046 (9c05d441ef24374b0550066c86e1aaa9c88bb046)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9c05d441ef24374b0550066c86e1aaa9c88bb046): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

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

Instruction count

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

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
2.7% [2.7%, 2.7%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.3% [-3.5%, -3.1%] 2
All ❌✅ (primary) 2.7% [2.7%, 2.7%] 1

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

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

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Feb 26, 2023
@scottmcm scottmcm force-pushed the unify-bytewise-eq-traits branch from 17eb9a4 to 6e74bd7 Compare February 26, 2023 20:13
@the8472
Copy link
Member

the8472 commented Feb 27, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 27, 2023

📌 Commit 6e74bd72ffe5746d0d06c3c4bc9b7473f15926f5 has been approved by the8472

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 Feb 27, 2023
@bors
Copy link
Collaborator

bors commented Feb 27, 2023

⌛ Testing commit 6e74bd72ffe5746d0d06c3c4bc9b7473f15926f5 with merge 57b9057b23a1f72d33865c45b4b204f94cd25096...

@bors
Copy link
Collaborator

bors commented Feb 27, 2023

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 27, 2023
@scottmcm
Copy link
Member Author

@bors r-

Looks like the noundef flag isn't always there in calls. Will fix.

@rustbot author

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Feb 28, 2023
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Mar 1, 2023

⌛ Testing commit a6fe3a067f52cd65d5319322849957524a4c1ae9 with merge eed0ee1c58e10efdd617800c5e0c9043eba8df4b...

@bors
Copy link
Collaborator

bors commented Mar 1, 2023

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 1, 2023
@scottmcm
Copy link
Member Author

scottmcm commented Mar 1, 2023

@bors retry SSL read failure installing awscli

curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

@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 Mar 1, 2023
@bors
Copy link
Collaborator

bors commented Mar 1, 2023

⌛ Testing commit a6fe3a067f52cd65d5319322849957524a4c1ae9 with merge ac25a0161f301c029fba11896272744c0799b612...

@bors
Copy link
Collaborator

bors commented Mar 1, 2023

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 1, 2023
@scottmcm scottmcm force-pushed the unify-bytewise-eq-traits branch from a6fe3a0 to 44eec1d Compare March 1, 2023 22:42
@rust-log-analyzer

This comment has been minimized.

@scottmcm
Copy link
Member Author

scottmcm commented Mar 1, 2023

Oh, weird, bcmp doesn't get noundef on its arguments.

@bors r=the8472

@bors
Copy link
Collaborator

bors commented Mar 1, 2023

📌 Commit 44eec1d has been approved by the8472

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 Mar 1, 2023
@bors
Copy link
Collaborator

bors commented Mar 1, 2023

⌛ Testing commit 44eec1d with merge 0b4ba4c...

@bors
Copy link
Collaborator

bors commented Mar 2, 2023

☀️ Test successful - checks-actions
Approved by: the8472
Pushing 0b4ba4c to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 2, 2023
@bors bors merged commit 0b4ba4c into rust-lang:master Mar 2, 2023
@rustbot rustbot added this to the 1.69.0 milestone Mar 2, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (0b4ba4c): 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

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
1.7% [1.4%, 2.1%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

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

@scottmcm scottmcm deleted the unify-bytewise-eq-traits branch March 2, 2023 05:57
@rust-log-analyzer

This comment has been minimized.

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