Skip to content

Conversation

@DiuDiu777
Copy link
Contributor

PR Description

This PR adds detailed safety documentation to the VaListImpl::arg.

  • Bounded : Arg must be within the length of arg list when calling this method.
  • Typed and Init : The memory pointed to by the va_list must contain arguments of the correct types and sizes.

This PR focuses on addressing the two primary safety aspects of the arg method. If additional safety considerations are identified in the future, they will be incorporated in subsequent updates.

@rustbot
Copy link
Collaborator

rustbot commented Feb 13, 2025

r? @Amanieu

rustbot has assigned @Amanieu.
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

@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 Feb 13, 2025
@DiuDiu777 DiuDiu777 closed this Mar 10, 2025
@DiuDiu777 DiuDiu777 deleted the valist-doc branch March 10, 2025 02:19
@DiuDiu777 DiuDiu777 restored the valist-doc branch March 10, 2025 02:19
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 19, 2025
Add doc for va_list APIs

I observed that [PR146521](rust-lang#146521) submitted two weeks ago resolved some documentation issues related to `VaListImpl`, similar to the previous [PR136969](rust-lang#136969).

This PR specifically adds requirements about argument availability for `VaListImpl::arg`, and also adds safety descriptions to the three associated intrinsic APIs.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 19, 2025
Add doc for va_list APIs

I observed that [PR146521](rust-lang#146521) submitted two weeks ago resolved some documentation issues related to `VaListImpl`, similar to the previous [PR136969](rust-lang#136969).

This PR specifically adds requirements about argument availability for `VaListImpl::arg`, and also adds safety descriptions to the three associated intrinsic APIs.
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 20, 2025
Add doc for va_list APIs

I observed that [PR146521](rust-lang#146521) submitted two weeks ago resolved some documentation issues related to `VaListImpl`, similar to the previous [PR136969](rust-lang#136969).

This PR specifically adds requirements about argument availability for `VaListImpl::arg`, and also adds safety descriptions to the three associated intrinsic APIs.
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 20, 2025
Add doc for va_list APIs

I observed that [PR146521](rust-lang#146521) submitted two weeks ago resolved some documentation issues related to `VaListImpl`, similar to the previous [PR136969](rust-lang#136969).

This PR specifically adds requirements about argument availability for `VaListImpl::arg`, and also adds safety descriptions to the three associated intrinsic APIs.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 20, 2025
Add doc for va_list APIs

I observed that [PR146521](rust-lang#146521) submitted two weeks ago resolved some documentation issues related to `VaListImpl`, similar to the previous [PR136969](rust-lang#136969).

This PR specifically adds requirements about argument availability for `VaListImpl::arg`, and also adds safety descriptions to the three associated intrinsic APIs.
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.

3 participants