[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANiq72mZYSd2bFRY30HbHQAsptbr9YYa6Veak6_eehMXxNKyLA@mail.gmail.com>
Date: Thu, 19 Jun 2025 21:31:33 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Benno Lossin <lossin@...nel.org>
Cc: Christian <christiansantoslima21@...il.com>, Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>, Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org, ~lkcamp/patches@...ts.sr.ht,
richard120310@...il.com
Subject: Re: [PATCH v7] rust: transmute: Add methods for FromBytes trait
On Wed, Jun 18, 2025 at 9:29 PM Benno Lossin <lossin@...nel.org> wrote:
>
> Yes, the prelude won't have precedence over locally defined items. So if
> someone does
>
> mod core {}
>
> your_macro_that_uses_core!(); // <-- will error with `core::mem` not existing
Yeah, ideally the custom prelude thing (or Clippy or similar) could
warn about having any collisions with things in the custom prelude to
begin with.
Cheers,
Miguel
Powered by blists - more mailing lists