[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANiq72=p4P9MuFKNy28PdHSqznvW_8Tep1wjm3zPXqbZVrujfg@mail.gmail.com>
Date: Thu, 22 May 2025 11:47:10 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Miguel Ojeda <ojeda@...nel.org>
Cc: Alex Gaynor <alex.gaynor@...il.com>, Danilo Krummrich <dakr@...nel.org>,
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>, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org, patches@...ts.linux.dev
Subject: Re: [PATCH] rust: remove unneeded Rust 1.87.0 `allow(clippy::ptr_eq)`
On Tue, May 20, 2025 at 8:22 PM Miguel Ojeda <ojeda@...nel.org> wrote:
>
> Before a change to relax the lint was backported to Rust 1.87.0 before
> its release, Clippy was expected to warn with:
>
> error: use `core::ptr::eq` when comparing raw pointers
> --> rust/kernel/list.rs:438:12
> |
> 438 | if self.first == item {
> | ^^^^^^^^^^^^^^^^^^ help: try: `core::ptr::eq(self.first, item)`
> |
> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
> = note: `-D clippy::ptr-eq` implied by `-D warnings`
> = help: to override `-D warnings` add `#[allow(clippy::ptr_eq)]`
>
> The backported finally landed indeed, thus remove the `allow`s we added
> back then, which were added just in case the backport did not land
> in time.
>
> See commit a39f30870927 ("rust: allow Rust 1.87.0's `clippy::ptr_eq`
> lint") for details.
>
> Link: https://github.com/rust-lang/rust/pull/140859 [1]
> Signed-off-by: Miguel Ojeda <ojeda@...nel.org>
Applied to `rust-next` -- thanks everyone!
[ Reworded for clarity. - Miguel ]
Cheers,
Miguel
Powered by blists - more mailing lists