fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
4.4 KiB164 linesraw
1error: the function has a cognitive complexity of (28/25)
2  --> $DIR/cognitive_complexity.rs:6:4
3   |
4LL | fn main() {
5   |    ^^^^
6   |
7   = help: you could split it up into multiple smaller functions
8   = note: `-D clippy::cognitive-complexity` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
10
11error: the function has a cognitive complexity of (7/1)
12  --> $DIR/cognitive_complexity.rs:92:4
13   |
14LL | fn kaboom() {
15   |    ^^^^^^
16   |
17   = help: you could split it up into multiple smaller functions
18
19error: the function has a cognitive complexity of (2/1)
20  --> $DIR/cognitive_complexity.rs:151:4
21   |
22LL | fn baa() {
23   |    ^^^
24   |
25   = help: you could split it up into multiple smaller functions
26
27error: the function has a cognitive complexity of (2/1)
28  --> $DIR/cognitive_complexity.rs:153:13
29   |
30LL |     let x = || match 99 {
31   |             ^^
32   |
33   = help: you could split it up into multiple smaller functions
34
35error: the function has a cognitive complexity of (2/1)
36  --> $DIR/cognitive_complexity.rs:171:4
37   |
38LL | fn bar() {
39   |    ^^^
40   |
41   = help: you could split it up into multiple smaller functions
42
43error: the function has a cognitive complexity of (2/1)
44  --> $DIR/cognitive_complexity.rs:183:4
45   |
46LL | fn dont_warn_on_tests() {
47   |    ^^^^^^^^^^^^^^^^^^
48   |
49   = help: you could split it up into multiple smaller functions
50
51error: the function has a cognitive complexity of (2/1)
52  --> $DIR/cognitive_complexity.rs:192:4
53   |
54LL | fn barr() {
55   |    ^^^^
56   |
57   = help: you could split it up into multiple smaller functions
58
59error: the function has a cognitive complexity of (3/1)
60  --> $DIR/cognitive_complexity.rs:203:4
61   |
62LL | fn barr2() {
63   |    ^^^^^
64   |
65   = help: you could split it up into multiple smaller functions
66
67error: the function has a cognitive complexity of (2/1)
68  --> $DIR/cognitive_complexity.rs:220:4
69   |
70LL | fn barrr() {
71   |    ^^^^^
72   |
73   = help: you could split it up into multiple smaller functions
74
75error: the function has a cognitive complexity of (3/1)
76  --> $DIR/cognitive_complexity.rs:231:4
77   |
78LL | fn barrr2() {
79   |    ^^^^^^
80   |
81   = help: you could split it up into multiple smaller functions
82
83error: the function has a cognitive complexity of (2/1)
84  --> $DIR/cognitive_complexity.rs:248:4
85   |
86LL | fn barrrr() {
87   |    ^^^^^^
88   |
89   = help: you could split it up into multiple smaller functions
90
91error: the function has a cognitive complexity of (3/1)
92  --> $DIR/cognitive_complexity.rs:259:4
93   |
94LL | fn barrrr2() {
95   |    ^^^^^^^
96   |
97   = help: you could split it up into multiple smaller functions
98
99error: the function has a cognitive complexity of (2/1)
100  --> $DIR/cognitive_complexity.rs:276:4
101   |
102LL | fn cake() {
103   |    ^^^^
104   |
105   = help: you could split it up into multiple smaller functions
106
107error: the function has a cognitive complexity of (4/1)
108  --> $DIR/cognitive_complexity.rs:287:8
109   |
110LL | pub fn read_file(input_path: &str) -> String {
111   |        ^^^^^^^^^
112   |
113   = help: you could split it up into multiple smaller functions
114
115error: the function has a cognitive complexity of (2/1)
116  --> $DIR/cognitive_complexity.rs:319:4
117   |
118LL | fn void(void: Void) {
119   |    ^^^^
120   |
121   = help: you could split it up into multiple smaller functions
122
123error: the function has a cognitive complexity of (8/1)
124  --> $DIR/cognitive_complexity.rs:371:4
125   |
126LL | fn early_ret() -> i32 {
127   |    ^^^^^^^^^
128   |
129   = help: you could split it up into multiple smaller functions
130
131error: the function has a cognitive complexity of (2/1)
132  --> $DIR/cognitive_complexity.rs:393:13
133   |
134LL |     let x = |a: i32, b: i32| -> i32 {
135   |             ^^^^^^^^^^^^^^^^
136   |
137   = help: you could split it up into multiple smaller functions
138
139error: the function has a cognitive complexity of (2/1)
140  --> $DIR/cognitive_complexity.rs:407:8
141   |
142LL |     fn moo(&self) {
143   |        ^^^
144   |
145   = help: you could split it up into multiple smaller functions
146
147error: the function has a cognitive complexity of (2/1)
148  --> $DIR/cognitive_complexity.rs:417:14
149   |
150LL |     async fn a() {
151   |              ^
152   |
153   = help: you could split it up into multiple smaller functions
154
155error: the function has a cognitive complexity of (2/1)
156  --> $DIR/cognitive_complexity.rs:425:22
157   |
158LL |         pub async fn async_method() {
159   |                      ^^^^^^^^^^^^
160   |
161   = help: you could split it up into multiple smaller functions
162
163error: aborting due to 20 previous errors
164