Repository navigation
make the safety documentation consistent in task::LocalWaker - #164213
Merged
Merged
Conversation
Collaborator
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
yilin0518
force-pushed
the
fix_local_waker
branch
from
October 13, 2026 03:30
5f77588 to
ac009af
Compare
JohnTitor
approved these changes
Oct 16, 2026
Contributor
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Oct 17, 2026
…itor make the safety documentation consistent in task::LocalWaker This PR only contains a doc-only modification: To make the format of safety documentation consistent in `taks::LocalWaker`. As a member of [safer-rust](https://github.com/safer-rust), we continue to improve the quality of safety doc in Rust std. We has a [Rust goal](rust-lang/goals#511) to push us to work. Thank you for your review and looking for your suggestion!
jhpratt
added a commit
to jhpratt/rust
that referenced
this pull request
Oct 17, 2026
…itor make the safety documentation consistent in task::LocalWaker This PR only contains a doc-only modification: To make the format of safety documentation consistent in `taks::LocalWaker`. As a member of [safer-rust](https://github.com/safer-rust), we continue to improve the quality of safety doc in Rust std. We has a [Rust goal](rust-lang/goals#511) to push us to work. Thank you for your review and looking for your suggestion!
rust-bors Bot
pushed a commit
that referenced
this pull request
Oct 17, 2026
Rollup of 10 pull requests Successful merges: - #163731 (Add bootstrap step to build the TPDE plugin) - #160404 (fd-views: AsRef<File>&Co. for BorrowedFd) - #161698 (Fix rmeta-link metadata not being read on AIX) - #164016 (Tighten (absence of) return attribute checks in `some-abis-do-extend-params-to-32-bits.rs`) - #164424 (diagnostic: skip wrong loops when explaining borrow errors) - #162444 (Make `std::fs::{File, ReadDir, DirEntry}` always `needs_drop` even when unsupported.) - #163862 (Collect all limit attributes during TyCtxt creation) - #164213 (make the safety documentation consistent in task::LocalWaker) - #164356 (Add missing full stop) - #164374 (core: hint: fix `unlikely`'s example polarity typo)
jhpratt
added a commit
to jhpratt/rust
that referenced
this pull request
Oct 17, 2026
…itor make the safety documentation consistent in task::LocalWaker This PR only contains a doc-only modification: To make the format of safety documentation consistent in `taks::LocalWaker`. As a member of [safer-rust](https://github.com/safer-rust), we continue to improve the quality of safety doc in Rust std. We has a [Rust goal](rust-lang/goals#511) to push us to work. Thank you for your review and looking for your suggestion!
rust-bors Bot
pushed a commit
that referenced
this pull request
Oct 17, 2026
Rollup of 10 pull requests Successful merges: - #161698 (Fix rmeta-link metadata not being read on AIX) - #163373 (Canonicalize operands for commutative binary ops) - #164016 (Tighten (absence of) return attribute checks in `some-abis-do-extend-params-to-32-bits.rs`) - #164424 (diagnostic: skip wrong loops when explaining borrow errors) - #138744 (Add methods to TCP and UDP sockets to modify hop limit) - #162444 (Make `std::fs::{File, ReadDir, DirEntry}` always `needs_drop` even when unsupported.) - #163862 (Collect all limit attributes during TyCtxt creation) - #164213 (make the safety documentation consistent in task::LocalWaker) - #164356 (Add missing full stop) - #164374 (core: hint: fix `unlikely`'s example polarity typo)
rust-bors Bot
pushed a commit
that referenced
this pull request
Oct 17, 2026
Rollup of 10 pull requests Successful merges: - #161698 (Fix rmeta-link metadata not being read on AIX) - #163373 (Canonicalize operands for commutative binary ops) - #164016 (Tighten (absence of) return attribute checks in `some-abis-do-extend-params-to-32-bits.rs`) - #164424 (diagnostic: skip wrong loops when explaining borrow errors) - #138744 (Add methods to TCP and UDP sockets to modify hop limit) - #162444 (Make `std::fs::{File, ReadDir, DirEntry}` always `needs_drop` even when unsupported.) - #163862 (Collect all limit attributes during TyCtxt creation) - #164213 (make the safety documentation consistent in task::LocalWaker) - #164356 (Add missing full stop) - #164374 (core: hint: fix `unlikely`'s example polarity typo)
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Oct 17, 2026
…itor make the safety documentation consistent in task::LocalWaker This PR only contains a doc-only modification: To make the format of safety documentation consistent in `taks::LocalWaker`. As a member of [safer-rust](https://github.com/safer-rust), we continue to improve the quality of safety doc in Rust std. We has a [Rust goal](rust-lang/goals#511) to push us to work. Thank you for your review and looking for your suggestion!
This was referenced Oct 17, 2026
rust-bors Bot
pushed a commit
that referenced
this pull request
Oct 17, 2026
…uwer Rollup of 11 pull requests Successful merges: - #162809 (Remap local def ids for deterministic metadata encoding) - #163373 (Canonicalize operands for commutative binary ops) - #164016 (Tighten (absence of) return attribute checks in `some-abis-do-extend-params-to-32-bits.rs`) - #164259 (std: make SOLID `sockaddr_storage` large enough for IPv6) - #164424 (diagnostic: skip wrong loops when explaining borrow errors) - #138744 (Add methods to TCP and UDP sockets to modify hop limit) - #162444 (Make `std::fs::{File, ReadDir, DirEntry}` always `needs_drop` even when unsupported.) - #163862 (Collect all limit attributes during TyCtxt creation) - #164213 (make the safety documentation consistent in task::LocalWaker) - #164356 (Add missing full stop) - #164374 (core: hint: fix `unlikely`'s example polarity typo)
rust-bors Bot
pushed a commit
that referenced
this pull request
Oct 17, 2026
Rollup merge of #164213 - yilin0518:fix_local_waker, r=JohnTitor make the safety documentation consistent in task::LocalWaker This PR only contains a doc-only modification: To make the format of safety documentation consistent in `taks::LocalWaker`. As a member of [safer-rust](https://github.com/safer-rust), we continue to improve the quality of safety doc in Rust std. We has a [Rust goal](rust-lang/goals#511) to push us to work. Thank you for your review and looking for your suggestion!
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Oct 31, 2026
…Titor Add safety section for from_utf8_unchecked/from_raw_parts This PR only contains doc changes and similar to rust-lang#164213, rust-lang#164241. This PR add `# Safety` section for `from_utf8_unchecked(mut)` and `from_raw_parts(mut)`. This can unify the safety doc in `str` thus all `pub unsafe fn` have `# Safety` section. Thank you for your review.
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Oct 31, 2026
…Titor Add safety section for from_utf8_unchecked/from_raw_parts This PR only contains doc changes and similar to rust-lang#164213, rust-lang#164241. This PR add `# Safety` section for `from_utf8_unchecked(mut)` and `from_raw_parts(mut)`. This can unify the safety doc in `str` thus all `pub unsafe fn` have `# Safety` section. Thank you for your review.
rust-bors Bot
pushed a commit
that referenced
this pull request
Oct 31, 2026
Rollup merge of #165019 - yilin0518:unify-unsafe-str, r=JohnTitor Add safety section for from_utf8_unchecked/from_raw_parts This PR only contains doc changes and similar to #164213, #164241. This PR add `# Safety` section for `from_utf8_unchecked(mut)` and `from_raw_parts(mut)`. This can unify the safety doc in `str` thus all `pub unsafe fn` have `# Safety` section. Thank you for your review.
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 3, 2026
make the safety documentation consistent in Ptr module This PR only contains doc changes. Similar to PR rust-lang#164213 , "make the safety documentation consistent in task::LocalWaker", the reason for this is that I found the current documentation has different representations. So I refactored this documentation in the `ptr` module and kept only the most commonly used pattern.
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 3, 2026
make the safety documentation consistent in Ptr module This PR only contains doc changes. Similar to PR rust-lang#164213 , "make the safety documentation consistent in task::LocalWaker", the reason for this is that I found the current documentation has different representations. So I refactored this documentation in the `ptr` module and kept only the most commonly used pattern.
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 3, 2026
make the safety documentation consistent in Ptr module This PR only contains doc changes. Similar to PR rust-lang#164213 , "make the safety documentation consistent in task::LocalWaker", the reason for this is that I found the current documentation has different representations. So I refactored this documentation in the `ptr` module and kept only the most commonly used pattern.
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 3, 2026
make the safety documentation consistent in Ptr module This PR only contains doc changes. Similar to PR rust-lang#164213 , "make the safety documentation consistent in task::LocalWaker", the reason for this is that I found the current documentation has different representations. So I refactored this documentation in the `ptr` module and kept only the most commonly used pattern.
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 3, 2026
make the safety documentation consistent in Ptr module This PR only contains doc changes. Similar to PR rust-lang#164213 , "make the safety documentation consistent in task::LocalWaker", the reason for this is that I found the current documentation has different representations. So I refactored this documentation in the `ptr` module and kept only the most commonly used pattern.
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Nov 3, 2026
make the safety documentation consistent in Ptr module This PR only contains doc changes. Similar to PR rust-lang#164213 , "make the safety documentation consistent in task::LocalWaker", the reason for this is that I found the current documentation has different representations. So I refactored this documentation in the `ptr` module and kept only the most commonly used pattern.
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 4, 2026
Rollup merge of #164241 - yilin0518:fix_ptr_unsafe, r=JohnTitor make the safety documentation consistent in Ptr module This PR only contains doc changes. Similar to PR #164213 , "make the safety documentation consistent in task::LocalWaker", the reason for this is that I found the current documentation has different representations. So I refactored this documentation in the `ptr` module and kept only the most commonly used pattern.
RalfJung
pushed a commit
to RalfJung/miri
that referenced
this pull request
Nov 4, 2026
make the safety documentation consistent in Ptr module This PR only contains doc changes. Similar to PR rust-lang/rust#164213 , "make the safety documentation consistent in task::LocalWaker", the reason for this is that I found the current documentation has different representations. So I refactored this documentation in the `ptr` module and kept only the most commonly used pattern.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR only contains a doc-only modification: To make the format of safety documentation consistent in
taks::LocalWaker. As a member of safer-rust, we continue to improve the quality of safety doc in Rust std. We has a Rust goal to push us to work.Thank you for your review and looking for your suggestion!