]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/cognitive_complexity.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / cognitive_complexity.stderr
CommitLineData
f20569fa
XL
1error: the function has a cognitive complexity of (28/25)
2 --> $DIR/cognitive_complexity.rs:6:4
3 |
4LL | fn main() {
5 | ^^^^
6 |
f20569fa 7 = help: you could split it up into multiple smaller functions
2b03887a 8 = note: `-D clippy::cognitive-complexity` implied by `-D warnings`
f20569fa
XL
9
10error: the function has a cognitive complexity of (7/1)
11 --> $DIR/cognitive_complexity.rs:91:4
12 |
13LL | fn kaboom() {
14 | ^^^^^^
15 |
16 = help: you could split it up into multiple smaller functions
17
18error: the function has a cognitive complexity of (2/1)
19 --> $DIR/cognitive_complexity.rs:149:4
20 |
21LL | fn baa() {
22 | ^^^
23 |
24 = help: you could split it up into multiple smaller functions
25
26error: the function has a cognitive complexity of (2/1)
27 --> $DIR/cognitive_complexity.rs:150:13
28 |
29LL | let x = || match 99 {
30 | ^^
31 |
32 = help: you could split it up into multiple smaller functions
33
34error: the function has a cognitive complexity of (2/1)
35 --> $DIR/cognitive_complexity.rs:167:4
36 |
37LL | fn bar() {
38 | ^^^
39 |
40 = help: you could split it up into multiple smaller functions
41
42error: the function has a cognitive complexity of (2/1)
43 --> $DIR/cognitive_complexity.rs:186:4
44 |
45LL | fn barr() {
46 | ^^^^
47 |
48 = help: you could split it up into multiple smaller functions
49
50error: the function has a cognitive complexity of (3/1)
51 --> $DIR/cognitive_complexity.rs:196:4
52 |
53LL | fn barr2() {
54 | ^^^^^
55 |
56 = help: you could split it up into multiple smaller functions
57
58error: the function has a cognitive complexity of (2/1)
59 --> $DIR/cognitive_complexity.rs:212:4
60 |
61LL | fn barrr() {
62 | ^^^^^
63 |
64 = help: you could split it up into multiple smaller functions
65
66error: the function has a cognitive complexity of (3/1)
67 --> $DIR/cognitive_complexity.rs:222:4
68 |
69LL | fn barrr2() {
70 | ^^^^^^
71 |
72 = help: you could split it up into multiple smaller functions
73
74error: the function has a cognitive complexity of (2/1)
75 --> $DIR/cognitive_complexity.rs:238:4
76 |
77LL | fn barrrr() {
78 | ^^^^^^
79 |
80 = help: you could split it up into multiple smaller functions
81
82error: the function has a cognitive complexity of (3/1)
83 --> $DIR/cognitive_complexity.rs:248:4
84 |
85LL | fn barrrr2() {
86 | ^^^^^^^
87 |
88 = help: you could split it up into multiple smaller functions
89
90error: the function has a cognitive complexity of (2/1)
91 --> $DIR/cognitive_complexity.rs:264:4
92 |
93LL | fn cake() {
94 | ^^^^
95 |
96 = help: you could split it up into multiple smaller functions
97
98error: the function has a cognitive complexity of (4/1)
99 --> $DIR/cognitive_complexity.rs:274:8
100 |
101LL | pub fn read_file(input_path: &str) -> String {
102 | ^^^^^^^^^
103 |
104 = help: you could split it up into multiple smaller functions
105
106error: the function has a cognitive complexity of (2/1)
107 --> $DIR/cognitive_complexity.rs:305:4
108 |
109LL | fn void(void: Void) {
110 | ^^^^
111 |
112 = help: you could split it up into multiple smaller functions
113
114error: the function has a cognitive complexity of (8/1)
115 --> $DIR/cognitive_complexity.rs:356:4
116 |
117LL | fn early_ret() -> i32 {
118 | ^^^^^^^^^
119 |
120 = help: you could split it up into multiple smaller functions
121
122error: the function has a cognitive complexity of (2/1)
123 --> $DIR/cognitive_complexity.rs:377:13
124 |
125LL | let x = |a: i32, b: i32| -> i32 {
126 | ^^^^^^^^^^^^^^^^
127 |
128 = help: you could split it up into multiple smaller functions
129
130error: the function has a cognitive complexity of (2/1)
131 --> $DIR/cognitive_complexity.rs:390:8
132 |
133LL | fn moo(&self) {
134 | ^^^
135 |
136 = help: you could split it up into multiple smaller functions
137
487cf647
FG
138error: the function has a cognitive complexity of (2/1)
139 --> $DIR/cognitive_complexity.rs:399:14
140 |
141LL | async fn a() {
142 | ^
143 |
144 = help: you could split it up into multiple smaller functions
145
146error: the function has a cognitive complexity of (2/1)
147 --> $DIR/cognitive_complexity.rs:406:22
148 |
149LL | pub async fn async_method() {
150 | ^^^^^^^^^^^^
151 |
152 = help: you could split it up into multiple smaller functions
153
154error: aborting due to 19 previous errors
f20569fa 155