diff options
| author | Miguel Ojeda <[email protected]> | 2025-05-20 18:21:25 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-05-22 09:46:50 +0000 |
| commit | bb941ea789f803cce766ca1e0f7c59a362aaf99a (patch) | |
| tree | ed49e7ece1c4de02763a36990d04eaf45ea93de8 /scripts/rustdoc_test_builder.rs | |
| parent | rust: str: fix typo in comment (diff) | |
| download | kernel-bb941ea789f803cce766ca1e0f7c59a362aaf99a.tar.gz kernel-bb941ea789f803cce766ca1e0f7c59a362aaf99a.zip | |
rust: remove unneeded Rust 1.87.0 `allow(clippy::ptr_eq)`
For the Rust 1.87.0 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)]`
However, a backport to relax a bit the `clippy::ptr_eq` finally landed,
and thus Clippy did not warn by the time the release happened.
Thus remove the `allow`s 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]
Reviewed-by: Alice Ryhl <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Reworded for clarity. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions
