Re: [PATCH v1] rust: bug: fix warn_on macro build error on UML
FUJITA Tomonori <[email protected]>
| Newsgroups | org.kernel.vger.rust-for-linux,org.infradead.lists.linux-um |
|---|---|
| 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.