diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-05-21 22:14:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-21 22:14:58 +0200 |
| commit | b9c6b337cec34c71369d3d0df6f91f2032383f20 (patch) | |
| tree | 1776f4808afde99841cd73ab342d8d6838f1217b /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | b5edec2811221a3939cac034516e8cd7c24b8271 (diff) | |
| parent | d8a22a281cc20dc58f1da62be02048622392da05 (diff) | |
| download | rust-b9c6b337cec34c71369d3d0df6f91f2032383f20.tar.gz rust-b9c6b337cec34c71369d3d0df6f91f2032383f20.zip | |
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`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
