@@ -17,164 +17,172 @@ LL | fn kaboom() {
1717 = help: you could split it up into multiple smaller functions
1818
1919error: the function has a cognitive complexity of (2/1)
20- --> tests/ui/cognitive_complexity.rs:158:4
20+ --> tests/ui/cognitive_complexity.rs:121:4
21+ |
22+ LL | fn bloo() {
23+ | ^^^^
24+ |
25+ = help: you could split it up into multiple smaller functions
26+
27+ error: the function has a cognitive complexity of (2/1)
28+ --> tests/ui/cognitive_complexity.rs:159:4
2129 |
2230LL | fn baa() {
2331 | ^^^
2432 |
2533 = help: you could split it up into multiple smaller functions
2634
2735error: the function has a cognitive complexity of (2/1)
28- --> tests/ui/cognitive_complexity.rs:161 :13
36+ --> tests/ui/cognitive_complexity.rs:162 :13
2937 |
3038LL | let x = || match 99 {
3139 | ^^
3240 |
3341 = help: you could split it up into multiple smaller functions
3442
3543error: the function has a cognitive complexity of (2/1)
36- --> tests/ui/cognitive_complexity.rs:179 :4
44+ --> tests/ui/cognitive_complexity.rs:180 :4
3745 |
3846LL | fn bar() {
3947 | ^^^
4048 |
4149 = help: you could split it up into multiple smaller functions
4250
4351error: the function has a cognitive complexity of (2/1)
44- --> tests/ui/cognitive_complexity.rs:192 :4
52+ --> tests/ui/cognitive_complexity.rs:193 :4
4553 |
4654LL | fn dont_warn_on_tests() {
4755 | ^^^^^^^^^^^^^^^^^^
4856 |
4957 = help: you could split it up into multiple smaller functions
5058
5159error: the function has a cognitive complexity of (2/1)
52- --> tests/ui/cognitive_complexity.rs:202 :4
60+ --> tests/ui/cognitive_complexity.rs:203 :4
5361 |
5462LL | fn barr() {
5563 | ^^^^
5664 |
5765 = help: you could split it up into multiple smaller functions
5866
5967error: the function has a cognitive complexity of (3/1)
60- --> tests/ui/cognitive_complexity.rs:214 :4
68+ --> tests/ui/cognitive_complexity.rs:215 :4
6169 |
6270LL | fn barr2() {
6371 | ^^^^^
6472 |
6573 = help: you could split it up into multiple smaller functions
6674
6775error: the function has a cognitive complexity of (2/1)
68- --> tests/ui/cognitive_complexity.rs:232 :4
76+ --> tests/ui/cognitive_complexity.rs:233 :4
6977 |
7078LL | fn barrr() {
7179 | ^^^^^
7280 |
7381 = help: you could split it up into multiple smaller functions
7482
7583error: the function has a cognitive complexity of (3/1)
76- --> tests/ui/cognitive_complexity.rs:244 :4
84+ --> tests/ui/cognitive_complexity.rs:245 :4
7785 |
7886LL | fn barrr2() {
7987 | ^^^^^^
8088 |
8189 = help: you could split it up into multiple smaller functions
8290
8391error: the function has a cognitive complexity of (2/1)
84- --> tests/ui/cognitive_complexity.rs:262 :4
92+ --> tests/ui/cognitive_complexity.rs:263 :4
8593 |
8694LL | fn barrrr() {
8795 | ^^^^^^
8896 |
8997 = help: you could split it up into multiple smaller functions
9098
9199error: the function has a cognitive complexity of (3/1)
92- --> tests/ui/cognitive_complexity.rs:274 :4
100+ --> tests/ui/cognitive_complexity.rs:275 :4
93101 |
94102LL | fn barrrr2() {
95103 | ^^^^^^^
96104 |
97105 = help: you could split it up into multiple smaller functions
98106
99107error: the function has a cognitive complexity of (2/1)
100- --> tests/ui/cognitive_complexity.rs:292 :4
108+ --> tests/ui/cognitive_complexity.rs:293 :4
101109 |
102110LL | fn cake() {
103111 | ^^^^
104112 |
105113 = help: you could split it up into multiple smaller functions
106114
107115error: the function has a cognitive complexity of (4/1)
108- --> tests/ui/cognitive_complexity.rs:304 :8
116+ --> tests/ui/cognitive_complexity.rs:305 :8
109117 |
110118LL | pub fn read_file(input_path: &str) -> String {
111119 | ^^^^^^^^^
112120 |
113121 = help: you could split it up into multiple smaller functions
114122
115123error: the function has a cognitive complexity of (2/1)
116- --> tests/ui/cognitive_complexity.rs:337 :4
124+ --> tests/ui/cognitive_complexity.rs:338 :4
117125 |
118126LL | fn void(void: Void) {
119127 | ^^^^
120128 |
121129 = help: you could split it up into multiple smaller functions
122130
123131error: the function has a cognitive complexity of (8/1)
124- --> tests/ui/cognitive_complexity.rs:390 :4
132+ --> tests/ui/cognitive_complexity.rs:391 :4
125133 |
126134LL | fn early_ret() -> i32 {
127135 | ^^^^^^^^^
128136 |
129137 = help: you could split it up into multiple smaller functions
130138
131139error: the function has a cognitive complexity of (2/1)
132- --> tests/ui/cognitive_complexity.rs:413 :13
140+ --> tests/ui/cognitive_complexity.rs:414 :13
133141 |
134142LL | let x = |a: i32, b: i32| -> i32 {
135143 | ^^^^^^^^^^^^^^^^
136144 |
137145 = help: you could split it up into multiple smaller functions
138146
139147error: the function has a cognitive complexity of (2/1)
140- --> tests/ui/cognitive_complexity.rs:428 :8
148+ --> tests/ui/cognitive_complexity.rs:429 :8
141149 |
142150LL | fn moo(&self) {
143151 | ^^^
144152 |
145153 = help: you could split it up into multiple smaller functions
146154
147155error: the function has a cognitive complexity of (2/1)
148- --> tests/ui/cognitive_complexity.rs:439 :14
156+ --> tests/ui/cognitive_complexity.rs:440 :14
149157 |
150158LL | async fn a() {
151159 | ^
152160 |
153161 = help: you could split it up into multiple smaller functions
154162
155163error: the function has a cognitive complexity of (2/1)
156- --> tests/ui/cognitive_complexity.rs:448 :22
164+ --> tests/ui/cognitive_complexity.rs:449 :22
157165 |
158166LL | pub async fn async_method() {
159167 | ^^^^^^^^^^^^
160168 |
161169 = help: you could split it up into multiple smaller functions
162170
163171error: the function has a cognitive complexity of (2/1)
164- --> tests/ui/cognitive_complexity.rs:459 :8
172+ --> tests/ui/cognitive_complexity.rs:460 :8
165173 |
166174LL | fn foo() {
167175 | ^^^
168176 |
169177 = help: you could split it up into multiple smaller functions
170178
171179error: the function has a cognitive complexity of (2/1)
172- --> tests/ui/cognitive_complexity.rs:466 :8
180+ --> tests/ui/cognitive_complexity.rs:467 :8
173181 |
174182LL | fn bar() {
175183 | ^^^
176184 |
177185 = help: you could split it up into multiple smaller functions
178186
179- error: aborting due to 22 previous errors
187+ error: aborting due to 23 previous errors
180188
0 commit comments