summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/cognitive_complexity.stderr
blob: 5824631fa83baabe42b09b6a0ba55995ed56ad53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
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
   = note: `-D clippy::cognitive-complexity` implied by `-D warnings`

error: the function has a cognitive complexity of (7/1)
  --> $DIR/cognitive_complexity.rs:91:4
   |
LL | fn kaboom() {
   |    ^^^^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (2/1)
  --> $DIR/cognitive_complexity.rs:149:4
   |
LL | fn baa() {
   |    ^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (2/1)
  --> $DIR/cognitive_complexity.rs:150:13
   |
LL |     let x = || match 99 {
   |             ^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (2/1)
  --> $DIR/cognitive_complexity.rs:167:4
   |
LL | fn bar() {
   |    ^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (2/1)
  --> $DIR/cognitive_complexity.rs:186:4
   |
LL | fn barr() {
   |    ^^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (3/1)
  --> $DIR/cognitive_complexity.rs:196:4
   |
LL | fn barr2() {
   |    ^^^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (2/1)
  --> $DIR/cognitive_complexity.rs:212:4
   |
LL | fn barrr() {
   |    ^^^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (3/1)
  --> $DIR/cognitive_complexity.rs:222:4
   |
LL | fn barrr2() {
   |    ^^^^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (2/1)
  --> $DIR/cognitive_complexity.rs:238:4
   |
LL | fn barrrr() {
   |    ^^^^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (3/1)
  --> $DIR/cognitive_complexity.rs:248:4
   |
LL | fn barrrr2() {
   |    ^^^^^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (2/1)
  --> $DIR/cognitive_complexity.rs:264:4
   |
LL | fn cake() {
   |    ^^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (4/1)
  --> $DIR/cognitive_complexity.rs:274:8
   |
LL | pub fn read_file(input_path: &str) -> String {
   |        ^^^^^^^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (2/1)
  --> $DIR/cognitive_complexity.rs:305:4
   |
LL | fn void(void: Void) {
   |    ^^^^
   |
   = help: you could split it up into multiple smaller functions

error: the function has a cognitive complexity of (8/1)
  --> $DIR/cognitive_complexity.rs:356:4
   |
LL | fn early_ret() -> 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: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 19 previous errors