Skip to content

Document unsafety in library/core/src/slice/mod.rs#75066

Merged
bors merged 6 commits into
rust-lang:masterfrom
poliorcetics:document-unsafety-in-core-slice
Aug 12, 2020
Merged

Document unsafety in library/core/src/slice/mod.rs#75066
bors merged 6 commits into
rust-lang:masterfrom
poliorcetics:document-unsafety-in-core-slice

Conversation

@poliorcetics

Copy link
Copy Markdown
Contributor

Restart where #73555 left off, helping with #66219.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @LukasKalbertodt

(rust_highfive has picked a reviewer for you, use r? to override)

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

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

Looks good overall! I have added some inline comments, some of which are only small nits.

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

@LukasKalbertodt LukasKalbertodt 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 for the quick update and for not amending/force-pushing -- a separate commit makes reviewing updates for these kinds of PRs a lot easier.

Three inline comments still.

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

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

Just one point left!

Comment thread library/core/src/slice/mod.rs Outdated
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Aug 12, 2020
…y-comments, r=Mark-Simulacrum

Accept more safety comments

This accepts more `// SAFETY:` comments from `tidy`.

This is done after the current behaviour of requiring text one the same line (because spaces are stripped so the last space never pass if there is no text on the same line) bit me once more in rust-lang#75066

This could potentially accept empty `// SAFETY:` comments but `tidy` is an internal tool used only here so my reasoning is reviews will catch those.
@LukasKalbertodt

Copy link
Copy Markdown
Contributor

@bors r+ rollup=iffy

Again, thanks a lot!

@bors

bors commented Aug 12, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit a308e74 has been approved by LukasKalbertodt

@bors

bors commented Aug 12, 2020

Copy link
Copy Markdown
Collaborator

🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened

@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 Aug 12, 2020
@emilyalbini

Copy link
Copy Markdown
Member

@bors treeclosed-

@bors

bors commented Aug 12, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit a308e74 with merge ded20c9...

@bors

bors commented Aug 12, 2020

Copy link
Copy Markdown
Collaborator

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

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 12, 2020
@bors bors merged commit ded20c9 into rust-lang:master Aug 12, 2020
@poliorcetics poliorcetics deleted the document-unsafety-in-core-slice branch August 12, 2020 17:27
@cuviper cuviper added this to the 1.47.0 milestone May 2, 2024
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