Skip to content

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

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
safer-rust:main
Mar 13, 2026
Merged

Add missing safety doc for CString::from_vec_unchecked and async_drop_in_place#153384
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
safer-rust:main

Conversation

@hxuhack
Copy link
Contributor

@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
@rust-log-analyzer

This comment has been minimized.

@joboet
Copy link
Member

joboet commented Mar 12, 2026

It looks fine, but I'm not familiar with async drop things, so
r? @oli-obk

In any case, you'll need to squash commits.

@rustbot rustbot assigned oli-obk and unassigned joboet Mar 12, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 12, 2026

oli-obk is not on the review rotation at the moment.
They may take a while to respond.

@hxuhack hxuhack force-pushed the main branch 3 times, most recently from 78c6f70 to 6de39ba Compare March 13, 2026 11:10
@rust-log-analyzer

This comment has been minimized.

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 13, 2026
@rustbot
Copy link
Collaborator

rustbot commented Mar 13, 2026

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Mar 13, 2026
@oli-obk
Copy link
Contributor

oli-obk commented Mar 13, 2026

@bors r+ rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 13, 2026

📌 Commit 3771c65 has been approved by oli-obk

It is now in the queue for this repository.

@rust-bors rust-bors bot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 13, 2026
rust-bors bot pushed a commit that referenced this pull request Mar 13, 2026
…uwer

Rollup of 7 pull requests

Successful merges:

 - #153650 (Streamline active job collection.)
 - #153707 (Remove `CycleErrorHandling`.)
 - #153384 (Add missing safety doc for CString::from_vec_unchecked and async_drop_in_place)
 - #153752 (fix(delegation): Filter Out Module Segments in Generic Args Inheritance)
 - #153797 (Compiletest: Fix compare-output-by-lines directive)
 - #153810 (compiletest: Use PYTHONPATH for lldb too, not only gdb)
 - #153820 (Rename `opt_span_diag_lint` into `opt_span_lint` and remove `emit_diag_lint`)
@rust-bors rust-bors bot merged commit 935805e into rust-lang:main Mar 13, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

6 participants