Skip to content

Using <Iter>::new instead of exposing internal fields#76787

Merged
bors merged 3 commits into
rust-lang:masterfrom
tesuji:slice_iters_new
Sep 19, 2020
Merged

Using <Iter>::new instead of exposing internal fields#76787
bors merged 3 commits into
rust-lang:masterfrom
tesuji:slice_iters_new

Conversation

@tesuji

@tesuji tesuji commented Sep 16, 2020

Copy link
Copy Markdown
Contributor

As requested in #76311 (comment)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 16, 2020

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

Thanks, LGTM. It might be better to create the NonNull outside of the new functions so that these functions don't have any additional safety requirements.

Comment thread library/core/src/slice/iter.rs Outdated
Comment thread library/core/src/slice/mod.rs Outdated
@lcnr

lcnr commented Sep 17, 2020

Copy link
Copy Markdown
Contributor

slice.iter is quite hot, let's see if we somehow regress something here.

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@bors

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Awaiting bors try build completion

@bors

bors commented Sep 17, 2020

Copy link
Copy Markdown
Collaborator

⌛ Trying commit 75ea5bcb25469d100c5063fa3cf08ede866a2d32 with merge 949e85c6bc2e139a5e9b07b26df01c81c9ecd99e...

@bors

bors commented Sep 17, 2020

Copy link
Copy Markdown
Collaborator

☀️ Try build successful - checks-actions, checks-azure
Build commit: 949e85c6bc2e139a5e9b07b26df01c81c9ecd99e (949e85c6bc2e139a5e9b07b26df01c81c9ecd99e)

@rust-timer

Copy link
Copy Markdown
Collaborator

Queued 949e85c6bc2e139a5e9b07b26df01c81c9ecd99e with parent 95386b6, future comparison URL.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking try commit (949e85c6bc2e139a5e9b07b26df01c81c9ecd99e): comparison url.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying rollup- to bors.

Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up.

@bors rollup=never

@lcnr

lcnr commented Sep 17, 2020

Copy link
Copy Markdown
Contributor

You might have to put #[inline] on at least some of these functions.

@lcnr

lcnr commented Sep 17, 2020

Copy link
Copy Markdown
Contributor

@bors try @rust-timer queue

@rust-timer

Copy link
Copy Markdown
Collaborator

Awaiting bors try build completion

@bors

bors commented Sep 17, 2020

Copy link
Copy Markdown
Collaborator

⌛ Trying commit eafe1b365e6784208d7df8462d22da5c2b207f37 with merge d2df5ef8b0f37065ba646a8a28bb6085e0d3b724...

@bors

bors commented Sep 17, 2020

Copy link
Copy Markdown
Collaborator

☀️ Try build successful - checks-actions, checks-azure
Build commit: d2df5ef8b0f37065ba646a8a28bb6085e0d3b724 (d2df5ef8b0f37065ba646a8a28bb6085e0d3b724)

@rust-timer

Copy link
Copy Markdown
Collaborator

Queued d2df5ef8b0f37065ba646a8a28bb6085e0d3b724 with parent 95386b6, future comparison URL.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking try commit (d2df5ef8b0f37065ba646a8a28bb6085e0d3b724): comparison url.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying rollup- to bors.

Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up.

@bors rollup=never

Comment thread library/core/src/slice/mod.rs Outdated

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

LGTM

perf also seems fine now 👍

@lcnr

lcnr commented Sep 18, 2020

Copy link
Copy Markdown
Contributor

Thanks 👍

@bors r+ rollup=never

@bors

bors commented Sep 18, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 39732ab8f6e6493079d5e9364521e44d133049fa has been approved by lcnr

@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 Sep 18, 2020
@tesuji

tesuji commented Sep 18, 2020

Copy link
Copy Markdown
Contributor Author

Did you mark all the file as viewed ? Because I intend to squash some commits together.

@lcnr

lcnr commented Sep 18, 2020

Copy link
Copy Markdown
Contributor

now I did 😆 go ahead

@tesuji

tesuji commented Sep 18, 2020

Copy link
Copy Markdown
Contributor Author

Done.

@lcnr

lcnr commented Sep 18, 2020

Copy link
Copy Markdown
Contributor

@bors r+ rollup=never

@bors

bors commented Sep 18, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit b659370 has been approved by lcnr

@bors

bors commented Sep 18, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit b659370 with merge c6ab8e5...

@bors

bors commented Sep 19, 2020

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions, checks-azure
Approved by: lcnr
Pushing c6ab8e5 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 19, 2020
@bors bors merged commit c6ab8e5 into rust-lang:master Sep 19, 2020
@rustbot rustbot added this to the 1.48.0 milestone Sep 19, 2020
@tesuji tesuji deleted the slice_iters_new branch September 19, 2020 02:16
@bors bors mentioned this pull request Sep 19, 2020
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants