Skip to content

Add safety section for AllocatorClone - #165811

Open
yilin0518 wants to merge 1 commit into
rust-lang:mainfrom
yilin0518:AllocatorClone_revise
Open

yilin0518 wants to merge 1 commit into
rust-lang:mainfrom
yilin0518:AllocatorClone_revise

Conversation

@yilin0518

Copy link
Copy Markdown
Contributor

This PR only contains doc-changes. I found this trait when I was reviewing missing-safety unsafe trait in std. So I adjusted the content of the doc. The meaning of the original doc is not altered.

@rustbot rustbot added A-allocators Area: Custom and system allocators 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 Nov 11, 2026
@rustbot

rustbot commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

r? @nia-e

rustbot has assigned @nia-e.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 38 candidates
  • Random selection from JohnTitor, Mark-Simulacrum, maxdexh, nia-e

@rust-log-analyzer

This comment has been minimized.

@yilin0518
yilin0518 force-pushed the AllocatorClone_revise branch from 860b8d0 to 62f8a85 Compare November 11, 2026 12:02

@nia-e nia-e left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

some tiny nitpicks with wording (mostly issues I had with the original docs, tbf). thanks!

View changes since this review

Comment thread library/core/src/alloc/mod.rs Resolved
Comment thread library/core/src/alloc/mod.rs Resolved
@yilin0518
yilin0518 force-pushed the AllocatorClone_revise branch from 62f8a85 to 6bd836b Compare November 13, 2026 02:55
@yilin0518

Copy link
Copy Markdown
Contributor Author

@nia-e you can take a look and merge this PR. Thank you!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-allocators Area: Custom and system allocators 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants