2019-08-29 08:56:13 +00:00
|
|
|
error: the function has a cognitive complexity of (28/25)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:6:4
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn main() {
|
|
|
|
| ^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (7/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:92:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn kaboom() {
|
|
|
|
| ^^^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:151:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn baa() {
|
|
|
|
| ^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:153:13
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | let x = || match 99 {
|
|
|
|
| ^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:171:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn bar() {
|
|
|
|
| ^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2023-07-02 12:35:19 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:183:4
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
LL | fn dont_warn_on_tests() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:192:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn barr() {
|
|
|
|
| ^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (3/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:203:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn barr2() {
|
|
|
|
| ^^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:220:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn barrr() {
|
|
|
|
| ^^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (3/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:231:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn barrr2() {
|
|
|
|
| ^^^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:248:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn barrrr() {
|
|
|
|
| ^^^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (3/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:259:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn barrrr2() {
|
|
|
|
| ^^^^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:276:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn cake() {
|
|
|
|
| ^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (4/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:287:8
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | pub fn read_file(input_path: &str) -> String {
|
|
|
|
| ^^^^^^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:319:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn void(void: Void) {
|
|
|
|
| ^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2018-10-06 16:18:06 +00:00
|
|
|
|
2019-09-08 10:39:42 +00:00
|
|
|
error: the function has a cognitive complexity of (8/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:371:4
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
LL | fn early_ret() -> i32 {
|
|
|
|
| ^^^^^^^^^
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2019-12-22 02:07:53 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:393:13
|
2019-12-22 02:07:53 +00:00
|
|
|
|
|
|
|
|
LL | let x = |a: i32, b: i32| -> i32 {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
|
|
|
|
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:407:8
|
2019-12-22 02:07:53 +00:00
|
|
|
|
|
|
|
|
LL | fn moo(&self) {
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
|
|
|
|
2022-11-21 19:34:47 +00:00
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:417:14
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
LL | async fn a() {
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
|
|
|
|
|
|
|
error: the function has a cognitive complexity of (2/1)
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/cognitive_complexity.rs:425:22
|
2022-11-21 19:34:47 +00:00
|
|
|
|
|
|
|
|
LL | pub async fn async_method() {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: you could split it up into multiple smaller functions
|
|
|
|
|
2023-07-02 12:35:19 +00:00
|
|
|
error: aborting due to 20 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|