rust/tests/ui/cognitive_complexity.stderr

165 lines
4.5 KiB
Plaintext
Raw Normal View History

error: the function has a cognitive complexity of (28/25)
--> tests/ui/cognitive_complexity.rs:6:4
|
LL | fn main() {
| ^^^^
|
= help: you could split it up into multiple smaller functions
2022-09-22 11:04:22 -05:00
= note: `-D clippy::cognitive-complexity` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::cognitive_complexity)]`
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (7/1)
--> tests/ui/cognitive_complexity.rs:92:4
2018-12-27 09:57:55 -06:00
|
LL | fn kaboom() {
| ^^^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (2/1)
--> tests/ui/cognitive_complexity.rs:151:4
2018-12-27 09:57:55 -06:00
|
LL | fn baa() {
| ^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (2/1)
--> tests/ui/cognitive_complexity.rs:153:13
2018-12-27 09:57:55 -06:00
|
LL | let x = || match 99 {
| ^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (2/1)
--> tests/ui/cognitive_complexity.rs:171:4
2018-12-27 09:57:55 -06:00
|
LL | fn bar() {
| ^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
error: the function has a cognitive complexity of (2/1)
--> tests/ui/cognitive_complexity.rs:183:4
|
LL | fn dont_warn_on_tests() {
| ^^^^^^^^^^^^^^^^^^
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (2/1)
--> tests/ui/cognitive_complexity.rs:192:4
2018-12-27 09:57:55 -06:00
|
LL | fn barr() {
| ^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (3/1)
--> tests/ui/cognitive_complexity.rs:203:4
2018-12-27 09:57:55 -06:00
|
LL | fn barr2() {
| ^^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (2/1)
--> tests/ui/cognitive_complexity.rs:220:4
2018-12-27 09:57:55 -06:00
|
LL | fn barrr() {
| ^^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (3/1)
--> tests/ui/cognitive_complexity.rs:231:4
2018-12-27 09:57:55 -06:00
|
LL | fn barrr2() {
| ^^^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (2/1)
--> tests/ui/cognitive_complexity.rs:248:4
2018-12-27 09:57:55 -06:00
|
LL | fn barrrr() {
| ^^^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (3/1)
--> tests/ui/cognitive_complexity.rs:259:4
2018-12-27 09:57:55 -06:00
|
LL | fn barrrr2() {
| ^^^^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (2/1)
--> tests/ui/cognitive_complexity.rs:276:4
2018-12-27 09:57:55 -06:00
|
LL | fn cake() {
| ^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (4/1)
--> tests/ui/cognitive_complexity.rs:287:8
2018-12-27 09:57:55 -06:00
|
LL | pub fn read_file(input_path: &str) -> String {
| ^^^^^^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (2/1)
--> tests/ui/cognitive_complexity.rs:319:4
2018-12-27 09:57:55 -06:00
|
LL | fn void(void: Void) {
| ^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
2018-10-06 11:18:06 -05:00
2019-09-08 05:39:42 -05:00
error: the function has a cognitive complexity of (8/1)
--> tests/ui/cognitive_complexity.rs:371:4
2018-12-27 09:57:55 -06:00
|
LL | fn early_ret() -> i32 {
| ^^^^^^^^^
2018-12-27 09:57:55 -06:00
|
= help: you could split it up into multiple smaller functions
error: the function has a cognitive complexity of (2/1)
--> tests/ui/cognitive_complexity.rs:393: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)
--> tests/ui/cognitive_complexity.rs:407: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)
--> tests/ui/cognitive_complexity.rs:417: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)
--> tests/ui/cognitive_complexity.rs:425:22
|
LL | pub async fn async_method() {
| ^^^^^^^^^^^^
|
= help: you could split it up into multiple smaller functions
error: aborting due to 20 previous errors
2018-01-16 10:06:27 -06:00