Closed procedural closed 7 months ago
I think this is a t-libs-api issue, there are no open questions from the UCG side here. UCG is concerned with the language aspects of writing unsafe.
@RalfJung thanks, sure, I didn't know where to ask this. Can this issue be moved to the related repo?
t-libs-api has their own process that that wouldn't really make sense.
Discussing this on https://internals.rust-lang.org/ might be a good idea, otherwise the process is to file an ACP. You can also always ask on Zulip. :)
Currently, it's not allowed to pass a NULL pointer to
std::slice::from_raw_parts
, butI have a pointer that comes from a C function that can be either:
A) A non-NULL with a len > 0 B) A NULL with a len == 0
It would be neat if I could just write: