Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit aa7c42f

Browse files
committed
fixup! New lint: Recommend using ptr::eq when possible
Add missing modified files.
1 parent 5bad917 commit aa7c42f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,6 +1774,7 @@ Released 2018-09-13
17741774
[`print_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline
17751775
[`println_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string
17761776
[`ptr_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
1777+
[`ptr_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
17771778
[`ptr_offset_with_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
17781779
[`pub_enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_enum_variant_names
17791780
[`question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark

src/lintlist/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,13 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
18441844
deprecation: None,
18451845
module: "ptr",
18461846
},
1847+
Lint {
1848+
name: "ptr_eq",
1849+
group: "style",
1850+
desc: "use `std::ptr::eq` when comparing raw pointers",
1851+
deprecation: None,
1852+
module: "ptr_eq",
1853+
},
18471854
Lint {
18481855
name: "ptr_offset_with_cast",
18491856
group: "complexity",

0 commit comments

Comments
 (0)