Skip to content

Add missing safety doc for CString::from_vec_unchecked and async_drop_in_place#153384

Open
hxuhack wants to merge 7 commits intorust-lang:mainfrom
safer-rust:main
Open

Add missing safety doc for CString::from_vec_unchecked and async_drop_in_place#153384
hxuhack wants to merge 7 commits intorust-lang:mainfrom
safer-rust:main

Conversation

@hxuhack
Copy link

@hxuhack hxuhack commented Mar 4, 2026

Add missing safety documentation for two unsafe APIs:

  • CString::from_vec_unchecked – # Safety: the caller must ensure v contains no NUL bytes in its contents.
  • async_drop_in_place – # Safety: see [ptr::drop_in_place] for safety requirements.

@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 Mar 4, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 4, 2026

r? @joboet

rustbot has assigned @joboet.
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: @scottmcm, libs
  • @scottmcm, libs expanded to 8 candidates
  • Random selection from Mark-Simulacrum, joboet, scottmcm, tgross35

@rust-log-analyzer

This comment has been minimized.

@rustbot
Copy link
Collaborator

rustbot commented Mar 7, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rustbot

This comment has been minimized.

@rustbot rustbot added has-merge-commits PR has merge commits, merge with caution. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 7, 2026
@rustbot rustbot removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. has-merge-commits PR has merge commits, merge with caution. labels Mar 7, 2026
Clarify safety concerns in async_drop_in_place documentation.
@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

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.

5 participants