Skip to content

Commit b702f0b

Browse files
committed
rename lint, detect multiple slices
1 parent 74df0f2 commit b702f0b

10 files changed

+462
-270
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4829,8 +4829,8 @@ Released 2018-09-13
48294829
[`mismatching_type_param_order`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatching_type_param_order
48304830
[`misnamed_getters`]: https://rust-lang.github.io/rust-clippy/master/index.html#misnamed_getters
48314831
[`misrefactored_assign_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#misrefactored_assign_op
4832-
[`missing_assert_for_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_assert_for_indexing
48334832
[`missing_assert_message`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_assert_message
4833+
[`missing_asserts_for_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_asserts_for_indexing
48344834
[`missing_const_for_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
48354835
[`missing_docs_in_private_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items
48364836
[`missing_enforced_import_renames`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_enforced_import_renames

clippy_lints/src/declared_lints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
425425
crate::misc_early::UNSEPARATED_LITERAL_SUFFIX_INFO,
426426
crate::misc_early::ZERO_PREFIXED_LITERAL_INFO,
427427
crate::mismatching_type_param_order::MISMATCHING_TYPE_PARAM_ORDER_INFO,
428-
crate::missing_assert_for_indexing::MISSING_ASSERT_FOR_INDEXING_INFO,
429428
crate::missing_assert_message::MISSING_ASSERT_MESSAGE_INFO,
429+
crate::missing_asserts_for_indexing::MISSING_ASSERTS_FOR_INDEXING_INFO,
430430
crate::missing_const_for_fn::MISSING_CONST_FOR_FN_INFO,
431431
crate::missing_doc::MISSING_DOCS_IN_PRIVATE_ITEMS_INFO,
432432
crate::missing_enforced_import_rename::MISSING_ENFORCED_IMPORT_RENAMES_INFO,

clippy_lints/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ mod minmax;
198198
mod misc;
199199
mod misc_early;
200200
mod mismatching_type_param_order;
201-
mod missing_assert_for_indexing;
202201
mod missing_assert_message;
202+
mod missing_asserts_for_indexing;
203203
mod missing_const_for_fn;
204204
mod missing_doc;
205205
mod missing_enforced_import_rename;
@@ -971,7 +971,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
971971
store.register_late_pass(|_| Box::new(manual_slice_size_calculation::ManualSliceSizeCalculation));
972972
store.register_early_pass(|| Box::new(suspicious_doc_comments::SuspiciousDocComments));
973973
store.register_late_pass(|_| Box::new(items_after_test_module::ItemsAfterTestModule));
974-
store.register_late_pass(|_| Box::new(missing_assert_for_indexing::MissingAssertsForIndexing));
974+
store.register_late_pass(|_| Box::new(missing_asserts_for_indexing::MissingAssertsForIndexing));
975975
// add lints here, do not remove this comment, it's used in `new_lint`
976976
}
977977

0 commit comments

Comments
 (0)