Skip to content

Commit c0fbeea

Browse files
committed
Drop uplifted clippy::fn_null_check
1 parent f6d2bf6 commit c0fbeea

File tree

9 files changed

+64
-223
lines changed

9 files changed

+64
-223
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
171171
crate::float_literal::LOSSY_FLOAT_LITERAL_INFO,
172172
crate::floating_point_arithmetic::IMPRECISE_FLOPS_INFO,
173173
crate::floating_point_arithmetic::SUBOPTIMAL_FLOPS_INFO,
174-
crate::fn_null_check::FN_NULL_CHECK_INFO,
175174
crate::format::USELESS_FORMAT_INFO,
176175
crate::format_args::FORMAT_IN_FORMAT_ARGS_INFO,
177176
crate::format_args::TO_STRING_IN_FORMAT_ARGS_INFO,

src/tools/clippy/clippy_lints/src/fn_null_check.rs

-102
This file was deleted.

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

-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ mod extra_unused_type_parameters;
131131
mod fallible_impl_from;
132132
mod float_literal;
133133
mod floating_point_arithmetic;
134-
mod fn_null_check;
135134
mod format;
136135
mod format_args;
137136
mod format_impl;
@@ -1003,7 +1002,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10031002
semicolon_outside_block_ignore_multiline,
10041003
))
10051004
});
1006-
store.register_late_pass(|_| Box::new(fn_null_check::FnNullCheck));
10071005
store.register_late_pass(|_| Box::new(permissions_set_readonly_false::PermissionsSetReadonlyFalse));
10081006
store.register_late_pass(|_| Box::new(size_of_ref::SizeOfRef));
10091007
store.register_late_pass(|_| Box::new(multiple_unsafe_ops_per_block::MultipleUnsafeOpsPerBlock));

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

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pub static RENAMED_LINTS: &[(&str, &str)] = &[
4242
("clippy::for_loops_over_fallibles", "for_loops_over_fallibles"),
4343
("clippy::forget_copy", "forgetting_copy_types"),
4444
("clippy::forget_ref", "forgetting_references"),
45+
("clippy::fn_null_check", "incorrect_fn_null_checks"),
4546
("clippy::into_iter_on_array", "array_into_iter"),
4647
("clippy::invalid_atomic_ordering", "invalid_atomic_ordering"),
4748
("clippy::invalid_ref", "invalid_value"),

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

-22
This file was deleted.

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

-43
This file was deleted.

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

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#![allow(for_loops_over_fallibles)]
3838
#![allow(forgetting_copy_types)]
3939
#![allow(forgetting_references)]
40+
#![allow(incorrect_fn_null_checks)]
4041
#![allow(array_into_iter)]
4142
#![allow(invalid_atomic_ordering)]
4243
#![allow(invalid_value)]
@@ -89,6 +90,7 @@
8990
#![warn(for_loops_over_fallibles)]
9091
#![warn(forgetting_copy_types)]
9192
#![warn(forgetting_references)]
93+
#![warn(incorrect_fn_null_checks)]
9294
#![warn(array_into_iter)]
9395
#![warn(invalid_atomic_ordering)]
9496
#![warn(invalid_value)]

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

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#![allow(for_loops_over_fallibles)]
3838
#![allow(forgetting_copy_types)]
3939
#![allow(forgetting_references)]
40+
#![allow(incorrect_fn_null_checks)]
4041
#![allow(array_into_iter)]
4142
#![allow(invalid_atomic_ordering)]
4243
#![allow(invalid_value)]
@@ -89,6 +90,7 @@
8990
#![warn(clippy::for_loops_over_fallibles)]
9091
#![warn(clippy::forget_copy)]
9192
#![warn(clippy::forget_ref)]
93+
#![warn(clippy::fn_null_check)]
9294
#![warn(clippy::into_iter_on_array)]
9395
#![warn(clippy::invalid_atomic_ordering)]
9496
#![warn(clippy::invalid_ref)]

0 commit comments

Comments
 (0)