315 lines
8.3 KiB
Plaintext
315 lines
8.3 KiB
Plaintext
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:20:25
|
|
|
|
|
LL | let w = { 3 };
|
|
| ^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
= note: `-D clippy::excessive-nesting` implied by `-D warnings`
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:66:17
|
|
|
|
|
LL | / impl C {
|
|
LL | | pub fn c() {}
|
|
LL | | }
|
|
| |_________________^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:80:25
|
|
|
|
|
LL | let x = { 1 }; // not a warning, but cc is
|
|
| ^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:97:17
|
|
|
|
|
LL | / pub mod e {
|
|
LL | | pub mod f {}
|
|
LL | | } // not here
|
|
| |_________________^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:110:18
|
|
|
|
|
LL | a_but_not({{{{{{{{0}}}}}}}});
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:111:12
|
|
|
|
|
LL | a.a({{{{{{{{{0}}}}}}}}});
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:112:12
|
|
|
|
|
LL | (0, {{{{{{{1}}}}}}});
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:117:25
|
|
|
|
|
LL | if true {
|
|
| _________________________^
|
|
LL | | if true {
|
|
LL | |
|
|
LL | | }
|
|
LL | | }
|
|
| |_________________^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:129:29
|
|
|
|
|
LL | let z = (|| {
|
|
| _____________________________^
|
|
LL | | let w = { 3 };
|
|
LL | | w
|
|
LL | | })();
|
|
| |_________________^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:148:13
|
|
|
|
|
LL | y += {{{{{5}}}}};
|
|
| ^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:149:20
|
|
|
|
|
LL | let z = y + {{{{{{{{{5}}}}}}}}};
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:150:12
|
|
|
|
|
LL | [0, {{{{{{{{{{0}}}}}}}}}}];
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:151:25
|
|
|
|
|
LL | let mut xx = [0; {{{{{{{{100}}}}}}}}];
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:152:11
|
|
|
|
|
LL | xx[{{{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}}}];
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:153:13
|
|
|
|
|
LL | &mut {{{{{{{{{{y}}}}}}}}}};
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:155:17
|
|
|
|
|
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
|
|
| ^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:155:28
|
|
|
|
|
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
|
|
| ^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:157:28
|
|
|
|
|
LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:157:48
|
|
|
|
|
LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
|
|
| ^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:159:14
|
|
|
|
|
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:159:35
|
|
|
|
|
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:161:23
|
|
|
|
|
LL | let d = D { d: {{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}} };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:163:8
|
|
|
|
|
LL | {{{{1;}}}}..{{{{{{3}}}}}};
|
|
| ^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:163:20
|
|
|
|
|
LL | {{{{1;}}}}..{{{{{{3}}}}}};
|
|
| ^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:164:8
|
|
|
|
|
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
|
|
| ^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:164:21
|
|
|
|
|
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:165:10
|
|
|
|
|
LL | ..{{{{{{{5}}}}}}};
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:166:11
|
|
|
|
|
LL | ..={{{{{3}}}}};
|
|
| ^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:167:8
|
|
|
|
|
LL | {{{{{1;}}}}}..;
|
|
| ^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:169:20
|
|
|
|
|
LL | loop { break {{{{1}}}} };
|
|
| ^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:170:13
|
|
|
|
|
LL | loop {{{{{{}}}}}}
|
|
| ^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:172:14
|
|
|
|
|
LL | match {{{{{{true}}}}}} {
|
|
| ^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:173:20
|
|
|
|
|
LL | true => {{{{}}}},
|
|
| ^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:174:21
|
|
|
|
|
LL | false => {{{{}}}},
|
|
| ^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:180:17
|
|
|
|
|
LL | / {
|
|
LL | | println!("warning! :)");
|
|
LL | | }
|
|
| |_________________^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:189:28
|
|
|
|
|
LL | async fn c() -> u32 {{{{{{{0}}}}}}}
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: this block is too nested
|
|
--> $DIR/excessive_nesting.rs:195:8
|
|
|
|
|
LL | {{{{b().await}}}};
|
|
| ^^^^^^^^^^^
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
error: aborting due to 37 previous errors
|
|
|