Skip to content

Commit 868e7d4

Browse files
committed
cargo dev update_lints
1 parent 5f426d4 commit 868e7d4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clippy_lints/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
610610
&loops::NEEDLESS_COLLECT,
611611
&loops::NEEDLESS_RANGE_LOOP,
612612
&loops::NEVER_LOOP,
613+
&loops::SAME_ITEM_PUSH,
613614
&loops::WHILE_IMMUTABLE_CONDITION,
614615
&loops::WHILE_LET_LOOP,
615616
&loops::WHILE_LET_ON_ITERATOR,
616-
&loops::SAME_ITEM_PUSH,
617617
&macro_use::MACRO_USE_IMPORTS,
618618
&main_recursion::MAIN_RECURSION,
619619
&manual_async_fn::MANUAL_ASYNC_FN,
@@ -1293,6 +1293,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12931293
LintId::of(&loops::NEEDLESS_COLLECT),
12941294
LintId::of(&loops::NEEDLESS_RANGE_LOOP),
12951295
LintId::of(&loops::NEVER_LOOP),
1296+
LintId::of(&loops::SAME_ITEM_PUSH),
12961297
LintId::of(&loops::WHILE_IMMUTABLE_CONDITION),
12971298
LintId::of(&loops::WHILE_LET_LOOP),
12981299
LintId::of(&loops::WHILE_LET_ON_ITERATOR),
@@ -1406,7 +1407,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14061407
LintId::of(&repeat_once::REPEAT_ONCE),
14071408
LintId::of(&returns::NEEDLESS_RETURN),
14081409
LintId::of(&returns::UNUSED_UNIT),
1409-
LintId::of(&loops::SAME_ITEM_PUSH),
14101410
LintId::of(&serde_api::SERDE_API_MISUSE),
14111411
LintId::of(&single_component_path_imports::SINGLE_COMPONENT_PATH_IMPORTS),
14121412
LintId::of(&slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
@@ -1495,6 +1495,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14951495
LintId::of(&loops::EMPTY_LOOP),
14961496
LintId::of(&loops::FOR_KV_MAP),
14971497
LintId::of(&loops::NEEDLESS_RANGE_LOOP),
1498+
LintId::of(&loops::SAME_ITEM_PUSH),
14981499
LintId::of(&loops::WHILE_LET_ON_ITERATOR),
14991500
LintId::of(&main_recursion::MAIN_RECURSION),
15001501
LintId::of(&manual_async_fn::MANUAL_ASYNC_FN),
@@ -1545,7 +1546,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15451546
LintId::of(&regex::TRIVIAL_REGEX),
15461547
LintId::of(&returns::NEEDLESS_RETURN),
15471548
LintId::of(&returns::UNUSED_UNIT),
1548-
LintId::of(&loops::SAME_ITEM_PUSH),
15491549
LintId::of(&single_component_path_imports::SINGLE_COMPONENT_PATH_IMPORTS),
15501550
LintId::of(&strings::STRING_LIT_AS_BYTES),
15511551
LintId::of(&tabs_in_doc_comments::TABS_IN_DOC_COMMENTS),

src/lintlist/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,9 +1931,9 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
19311931
Lint {
19321932
name: "same_item_push",
19331933
group: "style",
1934-
desc: "default lint description",
1934+
desc: "the same item is pushed inside of a for loop",
19351935
deprecation: None,
1936-
module: "same_item_push",
1936+
module: "loops",
19371937
},
19381938
Lint {
19391939
name: "search_is_some",

0 commit comments

Comments
 (0)