Skip to content

Commit 992f226

Browse files
committed
Update tests to allow disallowed_names lint after merging latest master
1 parent 2b33f94 commit 992f226

18 files changed

+124
-116
lines changed

tests/ui/cognitive_complexity.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![warn(clippy::cognitive_complexity)]
22
#![allow(
3+
clippy::disallowed_names,
34
clippy::eq_op,
45
clippy::needless_borrows_for_generic_args,
56
clippy::needless_return,

tests/ui/cognitive_complexity.stderr

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: the function has a cognitive complexity of (28/25)
2-
--> tests/ui/cognitive_complexity.rs:11:4
2+
--> tests/ui/cognitive_complexity.rs:12:4
33
|
44
LL | fn main() {
55
| ^^^^
@@ -9,167 +9,167 @@ LL | fn main() {
99
= help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
1010

1111
error: the function has a cognitive complexity of (7/1)
12-
--> tests/ui/cognitive_complexity.rs:98:4
12+
--> tests/ui/cognitive_complexity.rs:99:4
1313
|
1414
LL | fn kaboom() {
1515
| ^^^^^^
1616
|
1717
= help: you could split it up into multiple smaller functions
1818

1919
error: the function has a cognitive complexity of (2/1)
20-
--> tests/ui/cognitive_complexity.rs:158:4
20+
--> tests/ui/cognitive_complexity.rs:159:4
2121
|
2222
LL | fn baa() {
2323
| ^^^
2424
|
2525
= help: you could split it up into multiple smaller functions
2626

2727
error: the function has a cognitive complexity of (2/1)
28-
--> tests/ui/cognitive_complexity.rs:161:13
28+
--> tests/ui/cognitive_complexity.rs:162:13
2929
|
3030
LL | let x = || match 99 {
3131
| ^^
3232
|
3333
= help: you could split it up into multiple smaller functions
3434

3535
error: the function has a cognitive complexity of (2/1)
36-
--> tests/ui/cognitive_complexity.rs:179:4
36+
--> tests/ui/cognitive_complexity.rs:180:4
3737
|
3838
LL | fn bar() {
3939
| ^^^
4040
|
4141
= help: you could split it up into multiple smaller functions
4242

4343
error: the function has a cognitive complexity of (2/1)
44-
--> tests/ui/cognitive_complexity.rs:192:4
44+
--> tests/ui/cognitive_complexity.rs:193:4
4545
|
4646
LL | fn dont_warn_on_tests() {
4747
| ^^^^^^^^^^^^^^^^^^
4848
|
4949
= help: you could split it up into multiple smaller functions
5050

5151
error: the function has a cognitive complexity of (2/1)
52-
--> tests/ui/cognitive_complexity.rs:202:4
52+
--> tests/ui/cognitive_complexity.rs:203:4
5353
|
5454
LL | fn barr() {
5555
| ^^^^
5656
|
5757
= help: you could split it up into multiple smaller functions
5858

5959
error: the function has a cognitive complexity of (3/1)
60-
--> tests/ui/cognitive_complexity.rs:214:4
60+
--> tests/ui/cognitive_complexity.rs:215:4
6161
|
6262
LL | fn barr2() {
6363
| ^^^^^
6464
|
6565
= help: you could split it up into multiple smaller functions
6666

6767
error: the function has a cognitive complexity of (2/1)
68-
--> tests/ui/cognitive_complexity.rs:232:4
68+
--> tests/ui/cognitive_complexity.rs:233:4
6969
|
7070
LL | fn barrr() {
7171
| ^^^^^
7272
|
7373
= help: you could split it up into multiple smaller functions
7474

7575
error: the function has a cognitive complexity of (3/1)
76-
--> tests/ui/cognitive_complexity.rs:244:4
76+
--> tests/ui/cognitive_complexity.rs:245:4
7777
|
7878
LL | fn barrr2() {
7979
| ^^^^^^
8080
|
8181
= help: you could split it up into multiple smaller functions
8282

8383
error: the function has a cognitive complexity of (2/1)
84-
--> tests/ui/cognitive_complexity.rs:262:4
84+
--> tests/ui/cognitive_complexity.rs:263:4
8585
|
8686
LL | fn barrrr() {
8787
| ^^^^^^
8888
|
8989
= help: you could split it up into multiple smaller functions
9090

9191
error: the function has a cognitive complexity of (3/1)
92-
--> tests/ui/cognitive_complexity.rs:274:4
92+
--> tests/ui/cognitive_complexity.rs:275:4
9393
|
9494
LL | fn barrrr2() {
9595
| ^^^^^^^
9696
|
9797
= help: you could split it up into multiple smaller functions
9898

9999
error: the function has a cognitive complexity of (2/1)
100-
--> tests/ui/cognitive_complexity.rs:292:4
100+
--> tests/ui/cognitive_complexity.rs:293:4
101101
|
102102
LL | fn cake() {
103103
| ^^^^
104104
|
105105
= help: you could split it up into multiple smaller functions
106106

107107
error: the function has a cognitive complexity of (4/1)
108-
--> tests/ui/cognitive_complexity.rs:304:8
108+
--> tests/ui/cognitive_complexity.rs:305:8
109109
|
110110
LL | pub fn read_file(input_path: &str) -> String {
111111
| ^^^^^^^^^
112112
|
113113
= help: you could split it up into multiple smaller functions
114114

115115
error: the function has a cognitive complexity of (2/1)
116-
--> tests/ui/cognitive_complexity.rs:337:4
116+
--> tests/ui/cognitive_complexity.rs:338:4
117117
|
118118
LL | fn void(void: Void) {
119119
| ^^^^
120120
|
121121
= help: you could split it up into multiple smaller functions
122122

123123
error: the function has a cognitive complexity of (8/1)
124-
--> tests/ui/cognitive_complexity.rs:390:4
124+
--> tests/ui/cognitive_complexity.rs:391:4
125125
|
126126
LL | fn early_ret() -> i32 {
127127
| ^^^^^^^^^
128128
|
129129
= help: you could split it up into multiple smaller functions
130130

131131
error: the function has a cognitive complexity of (2/1)
132-
--> tests/ui/cognitive_complexity.rs:413:13
132+
--> tests/ui/cognitive_complexity.rs:414:13
133133
|
134134
LL | let x = |a: i32, b: i32| -> i32 {
135135
| ^^^^^^^^^^^^^^^^
136136
|
137137
= help: you could split it up into multiple smaller functions
138138

139139
error: the function has a cognitive complexity of (2/1)
140-
--> tests/ui/cognitive_complexity.rs:428:8
140+
--> tests/ui/cognitive_complexity.rs:429:8
141141
|
142142
LL | fn moo(&self) {
143143
| ^^^
144144
|
145145
= help: you could split it up into multiple smaller functions
146146

147147
error: the function has a cognitive complexity of (2/1)
148-
--> tests/ui/cognitive_complexity.rs:439:14
148+
--> tests/ui/cognitive_complexity.rs:440:14
149149
|
150150
LL | async fn a() {
151151
| ^
152152
|
153153
= help: you could split it up into multiple smaller functions
154154

155155
error: the function has a cognitive complexity of (2/1)
156-
--> tests/ui/cognitive_complexity.rs:448:22
156+
--> tests/ui/cognitive_complexity.rs:449:22
157157
|
158158
LL | pub async fn async_method() {
159159
| ^^^^^^^^^^^^
160160
|
161161
= help: you could split it up into multiple smaller functions
162162

163163
error: the function has a cognitive complexity of (2/1)
164-
--> tests/ui/cognitive_complexity.rs:459:8
164+
--> tests/ui/cognitive_complexity.rs:460:8
165165
|
166166
LL | fn foo() {
167167
| ^^^
168168
|
169169
= help: you could split it up into multiple smaller functions
170170

171171
error: the function has a cognitive complexity of (2/1)
172-
--> tests/ui/cognitive_complexity.rs:466:8
172+
--> tests/ui/cognitive_complexity.rs:467:8
173173
|
174174
LL | fn bar() {
175175
| ^^^

0 commit comments

Comments
 (0)