2023-07-02 07:35:19 -05:00
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:25:25
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let w = { 3 };
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
= note: `-D clippy::excessive-nesting` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::excessive_nesting)]`
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:71:17
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | / impl C {
|
|
|
|
LL | | pub fn c() {}
|
|
|
|
LL | | }
|
|
|
|
| |_________________^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:85:25
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let x = { 1 }; // not a warning, but cc is
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:102:17
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
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
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:115:18
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | a_but_not({{{{{{{{0}}}}}}}});
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:116:12
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | a.a({{{{{{{{{0}}}}}}}}});
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:117:12
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | (0, {{{{{{{1}}}}}}});
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:122:25
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | if true {
|
|
|
|
| _________________________^
|
|
|
|
LL | | if true {
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
LL | | }
|
|
|
|
| |_________________^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:134:29
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let z = (|| {
|
|
|
|
| _____________________________^
|
|
|
|
LL | | let w = { 3 };
|
|
|
|
LL | | w
|
|
|
|
LL | | })();
|
|
|
|
| |_________________^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:153:13
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | y += {{{{{5}}}}};
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:154:20
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let z = y + {{{{{{{{{5}}}}}}}}};
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:155:12
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | [0, {{{{{{{{{{0}}}}}}}}}}];
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:156:25
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let mut xx = [0; {{{{{{{{100}}}}}}}}];
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:157:11
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | xx[{{{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}}}];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:158:13
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | &mut {{{{{{{{{{y}}}}}}}}}};
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:160:17
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:160:28
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:162:28
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:162:48
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:164:14
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:164:35
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:166:23
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | let d = D { d: {{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}} };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:168:8
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | {{{{1;}}}}..{{{{{{3}}}}}};
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:168:20
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | {{{{1;}}}}..{{{{{{3}}}}}};
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:169:8
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:169:21
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:170:10
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | ..{{{{{{{5}}}}}}};
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:171:11
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | ..={{{{{3}}}}};
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:172:8
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | {{{{{1;}}}}}..;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:174:20
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | loop { break {{{{1}}}} };
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:175:13
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | loop {{{{{{}}}}}}
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:177:14
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | match {{{{{{true}}}}}} {
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:178:20
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | true => {{{{}}}},
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:179:21
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | false => {{{{}}}},
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:185:17
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | / {
|
|
|
|
LL | | println!("warning! :)");
|
|
|
|
LL | | }
|
|
|
|
| |_________________^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:194:28
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | async fn c() -> u32 {{{{{{{0}}}}}}}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: this block is too nested
|
2023-08-31 00:24:49 -05:00
|
|
|
--> tests/ui-toml/excessive_nesting/excessive_nesting.rs:200:8
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | {{{{b().await}}}};
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try refactoring your code to minimize nesting
|
|
|
|
|
|
|
|
error: aborting due to 37 previous errors
|
|
|
|
|