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

Miguel Ojeda <[email protected]>
Newsgroups org.kernel.vger.rust-for-linux,org.infradead.lists.linux-um
Message-ID <CANiq72kzmPnu_UPHryLMSwGMmTruirNUL5H+aD4tMiNUqqRELw@mail.gmail.com>
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

?

Also:

Cc: [email protected]

And Cc'ing David for UML in case he is interested.

Cheers,
Miguel
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.