rust-clippy/tests/ui/cognitive_complexity.stderr

164 lines
4.3 KiB
Text
Raw Normal View History

error: the function has a cognitive complexity of (28/25)
--> $DIR/cognitive_complexity.rs:6:4
|
LL | fn main() {
| ^^^^
|
= 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`
2019-09-08 10:39:42 +00:00
error: the function has a cognitive complexity of (7/1)
--> $DIR/cognitive_complexity.rs:91:4
2018-12-27 15:57:55 +00:00
|
LL | fn kaboom() {
| ^^^^^^
2018-12-27 15:57:55 +00:00
|
= 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)
--> $DIR/cognitive_complexity.rs:149:4
2018-12-27 15:57:55 +00:00
|
LL | fn baa() {
| ^^^
2018-12-27 15:57:55 +00:00
|
= 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)
--> $DIR/cognitive_complexity.rs:150:13
2018-12-27 15:57:55 +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
2019-09-08 10:39:42 +00:00
error: the function has a cognitive complexity of (2/1)
--> $DIR/cognitive_complexity.rs:167:4
2018-12-27 15:57:55 +00:00
|
LL | fn bar() {
| ^^^
2018-12-27 15:57:55 +00:00
|
= help: you could split it up into multiple smaller functions
error: the function has a cognitive complexity of (2/1)
--> $DIR/cognitive_complexity.rs:178:4
|
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)
--> $DIR/cognitive_complexity.rs:186:4
2018-12-27 15:57:55 +00:00
|
LL | fn barr() {
| ^^^^
2018-12-27 15:57:55 +00:00
|
= 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 (3/1)
--> $DIR/cognitive_complexity.rs:196:4
2018-12-27 15:57:55 +00:00
|
LL | fn barr2() {
| ^^^^^
2018-12-27 15:57:55 +00:00
|
= 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)
--> $DIR/cognitive_complexity.rs:212:4
2018-12-27 15:57:55 +00:00
|
LL | fn barrr() {
| ^^^^^
2018-12-27 15:57:55 +00:00
|
= 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 (3/1)
--> $DIR/cognitive_complexity.rs:222:4
2018-12-27 15:57:55 +00:00
|
LL | fn barrr2() {
| ^^^^^^
2018-12-27 15:57:55 +00:00
|
= 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)
--> $DIR/cognitive_complexity.rs:238:4
2018-12-27 15:57:55 +00:00
|
LL | fn barrrr() {
| ^^^^^^
2018-12-27 15:57:55 +00:00
|
= 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 (3/1)
--> $DIR/cognitive_complexity.rs:248:4
2018-12-27 15:57:55 +00:00
|
LL | fn barrrr2() {
| ^^^^^^^
2018-12-27 15:57:55 +00:00
|
= 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)
--> $DIR/cognitive_complexity.rs:264:4
2018-12-27 15:57:55 +00:00
|
LL | fn cake() {
| ^^^^
2018-12-27 15:57:55 +00:00
|
= 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 (4/1)
--> $DIR/cognitive_complexity.rs:274:8
2018-12-27 15:57:55 +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
2019-09-08 10:39:42 +00:00
error: the function has a cognitive complexity of (2/1)
--> $DIR/cognitive_complexity.rs:305:4
2018-12-27 15:57:55 +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)
--> $DIR/cognitive_complexity.rs:356:4
2018-12-27 15:57:55 +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
error: the function has a cognitive complexity of (2/1)
--> $DIR/cognitive_complexity.rs:377:13
|
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)
--> $DIR/cognitive_complexity.rs:390:8
|
LL | fn moo(&self) {
| ^^^
|
= help: you could split it up into multiple smaller functions
error: the function has a cognitive complexity of (2/1)
--> $DIR/cognitive_complexity.rs:399:14
|
LL | async fn a() {
| ^
|
= help: you could split it up into multiple smaller functions
error: the function has a cognitive complexity of (2/1)
--> $DIR/cognitive_complexity.rs:406:22
|
LL | pub async fn async_method() {
| ^^^^^^^^^^^^
|
= help: you could split it up into multiple smaller functions
error: aborting due to 20 previous errors
2018-01-16 16:06:27 +00:00