Re: [PATCH] rust: disallow use of `CStr::as_ptr`
From: Miguel Ojeda
Date: Wed Jan 21 2026 - 13:12:13 EST
On Wed, Jan 21, 2026 at 6:33 PM Gary Guo <gary@xxxxxxxxxxx> wrote:
>
> These are the methods that we want people to use? The "internal implementation"
> means that the use of `CStr::as_char()` is the internal implementation detail of
> `as_char_ptr` so it's okay. But nobody else should use it.
Yeah, not sure how I read that, sorry. And obviously we can't (easily)
add it to `core` one.
Cheers,
Miguel