Skip to content

Commit 810af57

Browse files
committed
rename lint, detect multiple slices
1 parent 4851362 commit 810af57

10 files changed

+462
-270
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4828,8 +4828,8 @@ Released 2018-09-13
48284828
[`mismatching_type_param_order`]: https://rust-lang.github.io/rust-clippy/master/index.html#mismatching_type_param_order
48294829
[`misnamed_getters`]: https://rust-lang.github.io/rust-clippy/master/index.html#misnamed_getters
48304830
[`misrefactored_assign_op`]: https://rust-lang.github.io/rust-clippy/master/index.html#misrefactored_assign_op
4831-
[`missing_assert_for_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_assert_for_indexing
48324831
[`missing_assert_message`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_assert_message
4832+
[`missing_asserts_for_indexing`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_asserts_for_indexing
48334833
[`missing_const_for_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn
48344834
[`missing_docs_in_private_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_docs_in_private_items
48354835
[`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
@@ -424,8 +424,8 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
424424
crate::misc_early::UNSEPARATED_LITERAL_SUFFIX_INFO,
425425
crate::misc_early::ZERO_PREFIXED_LITERAL_INFO,
426426
crate::mismatching_type_param_order::MISMATCHING_TYPE_PARAM_ORDER_INFO,
427-
crate::missing_assert_for_indexing::MISSING_ASSERT_FOR_INDEXING_INFO,
428427
crate::missing_assert_message::MISSING_ASSERT_MESSAGE_INFO,
428+
crate::missing_asserts_for_indexing::MISSING_ASSERTS_FOR_INDEXING_INFO,
429429
crate::missing_const_for_fn::MISSING_CONST_FOR_FN_INFO,
430430
crate::missing_doc::MISSING_DOCS_IN_PRIVATE_ITEMS_INFO,
431431
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
@@ -197,8 +197,8 @@ mod minmax;
197197
mod misc;
198198
mod misc_early;
199199
mod mismatching_type_param_order;
200-
mod missing_assert_for_indexing;
201200
mod missing_assert_message;
201+
mod missing_asserts_for_indexing;
202202
mod missing_const_for_fn;
203203
mod missing_doc;
204204
mod missing_enforced_import_rename;
@@ -962,7 +962,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
962962
store.register_late_pass(|_| Box::new(tests_outside_test_module::TestsOutsideTestModule));
963963
store.register_late_pass(|_| Box::new(manual_slice_size_calculation::ManualSliceSizeCalculation));
964964
store.register_early_pass(|| Box::new(suspicious_doc_comments::SuspiciousDocComments));
965-
store.register_late_pass(|_| Box::new(missing_assert_for_indexing::MissingAssertsForIndexing));
965+
store.register_late_pass(|_| Box::new(missing_asserts_for_indexing::MissingAssertsForIndexing));
966966
// add lints here, do not remove this comment, it's used in `new_lint`
967967
}
968968

0 commit comments

Comments
 (0)