Skip to content

Commit 752bd67

Browse files
committed
Drop clippy::fn_address_comparisons
1 parent ab6c292 commit 752bd67

File tree

9 files changed

+69
-161
lines changed

9 files changed

+69
-161
lines changed

src/tools/clippy/clippy_lints/src/declared_lints.rs

-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,6 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
683683
crate::unit_types::LET_UNIT_VALUE_INFO,
684684
crate::unit_types::UNIT_ARG_INFO,
685685
crate::unit_types::UNIT_CMP_INFO,
686-
crate::unnamed_address::FN_ADDRESS_COMPARISONS_INFO,
687686
crate::unnecessary_box_returns::UNNECESSARY_BOX_RETURNS_INFO,
688687
crate::unnecessary_map_on_constructor::UNNECESSARY_MAP_ON_CONSTRUCTOR_INFO,
689688
crate::unnecessary_owned_empty_strings::UNNECESSARY_OWNED_EMPTY_STRINGS_INFO,

src/tools/clippy/clippy_lints/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ mod unicode;
328328
mod uninit_vec;
329329
mod unit_return_expecting_ord;
330330
mod unit_types;
331-
mod unnamed_address;
332331
mod unnecessary_box_returns;
333332
mod unnecessary_map_on_constructor;
334333
mod unnecessary_owned_empty_strings;
@@ -862,7 +861,6 @@ pub fn register_lints(store: &mut rustc_lint::LintStore, conf: &'static Conf) {
862861
store.register_early_pass(|| Box::new(option_env_unwrap::OptionEnvUnwrap));
863862
store.register_late_pass(move |_| Box::new(wildcard_imports::WildcardImports::new(warn_on_all_wildcard_imports)));
864863
store.register_late_pass(|_| Box::<redundant_pub_crate::RedundantPubCrate>::default());
865-
store.register_late_pass(|_| Box::new(unnamed_address::UnnamedAddress));
866864
store.register_late_pass(|_| Box::<dereference::Dereferencing<'_>>::default());
867865
store.register_late_pass(|_| Box::new(option_if_let_else::OptionIfLetElse));
868866
store.register_late_pass(|_| Box::new(future_not_send::FutureNotSend));

src/tools/clippy/clippy_lints/src/renamed_lints.rs

+1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ pub static RENAMED_LINTS: &[(&str, &str)] = &[
5959
("clippy::unknown_clippy_lints", "unknown_lints"),
6060
("clippy::unused_label", "unused_labels"),
6161
("clippy::vtable_address_comparisons", "ambiguous_wide_pointer_comparisons"),
62+
("clippy::fn_address_comparisons", "unpredictable_function_pointer_comparisons"),
6263
];

src/tools/clippy/clippy_lints/src/unnamed_address.rs

-60
This file was deleted.

src/tools/clippy/tests/ui/fn_address_comparisons.rs

-23
This file was deleted.

src/tools/clippy/tests/ui/fn_address_comparisons.stderr

-17
This file was deleted.

src/tools/clippy/tests/ui/rename.fixed

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#![allow(unknown_lints)]
5353
#![allow(unused_labels)]
5454
#![allow(ambiguous_wide_pointer_comparisons)]
55+
#![allow(unpredictable_function_pointer_comparisons)]
5556
#![warn(clippy::almost_complete_range)]
5657
#![warn(clippy::disallowed_names)]
5758
#![warn(clippy::blocks_in_if_conditions)]
@@ -109,5 +110,6 @@
109110
#![warn(unknown_lints)]
110111
#![warn(unused_labels)]
111112
#![warn(ambiguous_wide_pointer_comparisons)]
113+
#![warn(unpredictable_function_pointer_comparisons)]
112114

113115
fn main() {}

src/tools/clippy/tests/ui/rename.rs

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#![allow(unknown_lints)]
5353
#![allow(unused_labels)]
5454
#![allow(ambiguous_wide_pointer_comparisons)]
55+
#![allow(unpredictable_function_pointer_comparisons)]
5556
#![warn(clippy::almost_complete_letter_range)]
5657
#![warn(clippy::blacklisted_name)]
5758
#![warn(clippy::block_in_if_condition_expr)]
@@ -109,5 +110,6 @@
109110
#![warn(clippy::unknown_clippy_lints)]
110111
#![warn(clippy::unused_label)]
111112
#![warn(clippy::vtable_address_comparisons)]
113+
#![warn(clippy::fn_address_comparisons)]
112114

113115
fn main() {}

0 commit comments

Comments
 (0)