2023-04-20 13:03:25 +00:00
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:19:21
|
|
|
|
|
|
|
|
|
LL | let z = {
|
|
|
|
| _____________________^
|
|
|
|
LL | | let w = { 3 };
|
|
|
|
LL | | w
|
|
|
|
LL | | };
|
|
|
|
| |_____________^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
= note: `-D clippy::excessive-nesting` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:63:24
|
|
|
|
|
|
|
|
|
LL | pub fn b() {
|
|
|
|
| ________________________^
|
|
|
|
LL | | struct C;
|
|
|
|
LL | |
|
|
|
|
LL | | impl C {
|
|
|
|
LL | | pub fn c() {}
|
|
|
|
LL | | }
|
|
|
|
LL | | }
|
|
|
|
| |_____________^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:79:21
|
|
|
|
|
|
|
|
|
LL | fn cc() {
|
|
|
|
| _____________________^
|
2023-04-28 19:22:24 +00:00
|
|
|
LL | | let x = { 1 }; // not a warning, but cc is
|
2023-04-20 13:03:25 +00:00
|
|
|
LL | | }
|
|
|
|
| |_____________^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:83:21
|
|
|
|
|
|
|
|
|
LL | let x = { 1 }; // warning
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:93:13
|
|
|
|
|
|
|
|
|
LL | / pub mod d {
|
|
|
|
LL | | pub mod e {
|
|
|
|
LL | | pub mod f {}
|
|
|
|
LL | | } // not here
|
|
|
|
LL | | } // only warning should be here
|
|
|
|
| |_____________^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:107:17
|
|
|
|
|
|
|
|
|
LL | a_but_not({{{{{{{{0}}}}}}}});
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:108:11
|
|
|
|
|
|
|
|
|
LL | a.a({{{{{{{{{0}}}}}}}}});
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:109:11
|
|
|
|
|
|
|
|
|
LL | (0, {{{{{{{1}}}}}}});
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:113:21
|
|
|
|
|
|
|
|
|
LL | if true {
|
|
|
|
| _____________________^
|
|
|
|
LL | | if true {
|
|
|
|
LL | | if true {
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
LL | | }
|
|
|
|
LL | | }
|
|
|
|
| |_____________^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:125:25
|
|
|
|
|
|
|
|
|
LL | let y = (|| {
|
|
|
|
| _________________________^
|
|
|
|
LL | | let z = (|| {
|
|
|
|
LL | | let w = { 3 };
|
|
|
|
LL | | w
|
|
|
|
LL | | })();
|
|
|
|
LL | | z
|
|
|
|
LL | | })();
|
|
|
|
| |_____________^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:33:13
|
|
|
|
|
|
|
|
|
LL | / {
|
|
|
|
LL | | {
|
|
|
|
LL | | {
|
|
|
|
LL | | {
|
|
|
|
... |
|
|
|
|
LL | | }
|
|
|
|
LL | | }
|
|
|
|
| |_____________^
|
|
|
|
...
|
|
|
|
LL | xx!();
|
|
|
|
| ----- in this macro invocation
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
= note: this error originates in the macro `xx` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: this block is too nested
|
|
|
|
--> $DIR/excessive_nesting.rs:140:36
|
|
|
|
|
|
|
|
|
LL | !{boo as u32 + !{boo as u32 + !{boo as u32}}};
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:144:12
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | y += {{{{{5}}}}};
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:145:19
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | let z = y + {{{{{{{{{5}}}}}}}}};
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:146:11
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | [0, {{{{{{{{{{0}}}}}}}}}}];
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:147:24
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | let mut xx = [0; {{{{{{{{100}}}}}}}}];
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:148:10
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | xx[{{{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}}}];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:149:12
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | &mut {{{{{{{{{{y}}}}}}}}}};
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:151:16
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:151:27
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:153:27
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:153:47
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:155:13
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:155:34
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:157:22
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | let d = D { d: {{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}} };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:159:7
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | {{{{1;}}}}..{{{{{{3}}}}}};
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:159:19
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | {{{{1;}}}}..{{{{{{3}}}}}};
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:160:7
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:160:20
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:161:9
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | ..{{{{{{{5}}}}}}};
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:162:10
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | ..={{{{{3}}}}};
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:163:7
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | {{{{{1;}}}}}..;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:165:19
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | loop { break {{{{1}}}} };
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:166:12
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | loop {{{{{{}}}}}}
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:168:13
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | match {{{{{{true}}}}}} {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:169:19
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | true => {{{{}}}},
|
|
|
|
| ^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:170:20
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | false => {{{{}}}},
|
|
|
|
| ^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:175:13
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | / {
|
|
|
|
LL | | {
|
|
|
|
LL | | println!("warning! :)");
|
|
|
|
LL | | }
|
|
|
|
LL | | }
|
|
|
|
| |_____________^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:185:27
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | async fn c() -> u32 {{{{{{{0}}}}}}}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-04-28 19:22:24 +00:00
|
|
|
--> $DIR/excessive_nesting.rs:191:7
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
|
LL | {{{{b().await}}}};
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2023-04-28 19:22:24 +00:00
|
|
|
= help: try refactoring your code to minimize nesting
|
2023-04-20 13:03:25 +00:00
|
|
|
|
|
|
|
error: aborting due to 40 previous errors
|
|
|
|
|