Files
rust/library/std/src
Matthias Krüger b9c6b337ce Rollup merge of #141341 - folkertdev:limit-VaArgSafe-impls, r=workingjubilee
limit impls of `VaArgSafe` to just types that are actually safe

tracking issue: https://github.com/rust-lang/rust/issues/44930

Retrieving 8- or 16-bit integer arguments from a `VaList` is not safe, because such types are subject to upcasting. See https://github.com/rust-lang/rust/issues/61275#issuecomment-2193942535 for more detail.

This PR also makes the instances of `VaArgSafe` visible in the documentation, and uses a private sealed trait to make sure users cannot create additional impls of `VaArgSafe`, which would almost certainly cause UB.

r? `@workingjubilee`
2025-05-21 22:14:58 +02:00
..
2025-05-12 15:33:30 +02:00
2024-11-02 11:27:14 +01:00
2025-04-04 14:47:04 +02:00
2025-05-21 07:48:46 +02:00
2025-05-12 15:33:37 +02:00
2025-02-13 13:10:28 -08:00
2025-05-12 15:33:37 +02:00
2025-01-11 06:35:21 +02:00
2025-02-25 09:08:22 +05:30
2024-04-08 11:57:17 +00:00
2025-04-28 11:13:50 +02:00
2025-03-10 21:23:32 +08:00
2025-05-15 11:20:13 +02:00
2025-02-07 16:54:07 +01:00