diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-08-15 19:51:33 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-08-15 20:24:13 +1000 |
| commit | 44f5ec7d56acb21cad9bcc0dbc13e70a749f35aa (patch) | |
| tree | 346cb276c0eef8a7b71104f94389edd1c084515e /compiler/rustc_codegen_llvm/src/back/profiling.rs | |
| parent | 8d0a04966c97eb2015c950396e54f31f5212a888 (diff) | |
| download | rust-44f5ec7d56acb21cad9bcc0dbc13e70a749f35aa.tar.gz rust-44f5ec7d56acb21cad9bcc0dbc13e70a749f35aa.zip | |
Avoid an explicit cast from `*const c_uchar` to `*const c_char`
As noted in the `ffi` module docs, passing pointer/length byte strings from Rust to C++ is easier if we declare them as `*const c_uchar` on the Rust side, but `const char *` (possibly signed) on the C++ side. This is allowed because both pointer types are ABI-compatible, regardless of char signedness.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/profiling.rs')
0 files changed, 0 insertions, 0 deletions
