diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-06-24 20:24:10 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-06-24 20:40:33 -0700 |
| commit | 050595a82619515614674b6e5dfe16a123dab9c2 (patch) | |
| tree | 94c0ef8d3d09c340ddd22dd47fdf398195c728f0 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp | |
| parent | 5a3e2a4e921097c8f2bf6ea7565f8abe878cdbd4 (diff) | |
| download | rust-050595a82619515614674b6e5dfe16a123dab9c2.tar.gz rust-050595a82619515614674b6e5dfe16a123dab9c2.zip | |
core: VaArgSafe is an unsafe trait
`T: VaArgSafe` is relied on for soundness. Safe impls promise nothing. Therefore this must be an unsafe trait. Slightly pedantic, as only core can impl this, but we could choose to unseal the trait. That would allow soundly (but unsafely) implementing this for e.g. a `#[repr(C)] struct` that should be passable by varargs.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions
