Skip to content

Commit 07d13a6

Browse files
authored
Rollup merge of #146994 - cuviper:clippy-ci-recursion, r=Kobzol
Add `clippy::unconditional_recursion` to `./x clippy ci` The clippy lint catches some things that rustc's equivalent builtin lint does not, for example #146940: error: function cannot return without recursing --> library/std/src/path.rs:3428:5 | 3428 | / fn eq(&self, other: &String) -> bool { 3429 | | self == &*other 3430 | | } | |_____^ | note: recursive call site --> library/std/src/path.rs:3429:9 | 3429 | self == &*other | ^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unconditional_recursion = note: requested on the command line with `-D clippy::unconditional-recursion`
2 parents b184550 + a2d2869 commit 07d13a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/src/core/build_steps/clippy.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ impl Step for CI {
564564
"clippy::same_item_push".into(),
565565
"clippy::single_char_add_str".into(),
566566
"clippy::to_string_in_format_args".into(),
567+
"clippy::unconditional_recursion".into(),
567568
],
568569
forbid: vec![],
569570
};
@@ -591,6 +592,7 @@ impl Step for CI {
591592
"clippy::same_item_push".into(),
592593
"clippy::single_char_add_str".into(),
593594
"clippy::to_string_in_format_args".into(),
595+
"clippy::unconditional_recursion".into(),
594596
],
595597
forbid: vec![],
596598
};

0 commit comments

Comments
 (0)