Re: [PATCH v1] rust: bug: fix warn_on macro build error on UML

FUJITA Tomonori <[email protected]>
Newsgroups org.infradead.lists.linux-um,org.kernel.vger.rust-for-linux
Message-ID <[email protected]>
On Fri, 7 Aug 2026 08:52:38 +0200
Miguel Ojeda <[email protected]> wrote:

> On Sat, Aug 1, 2026 at 5:41 AM FUJITA Tomonori <[email protected]> wrote:
>>
>> Use the free function `as_char_ptr_in_const_context()` instead, as other exported macros already do.
> 
> I reproduced this and the fix works -- thanks Tomonori!
> 
> Do we need to use the free function? i.e. this is not a const context,
> so should we do e.g.
> 
>     $crate::str::CStrExt::as_char_ptr
> 
> ?

Thanks, you are right. I'll send v2 shortly.

> Also:
> 
> Cc: [email protected]

Ok.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.