rust/tests/ui-toml/excessive_nesting/excessive_nesting.stderr

315 lines
8.3 KiB
Plaintext
Raw Normal View History

error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:21: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
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:67:17
|
LL | / impl C {
LL | | pub fn c() {}
LL | | }
| |_________________^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:81:25
|
LL | let x = { 1 }; // not a warning, but cc is
| ^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:98:17
|
LL | / pub mod e {
2023-04-28 14:22:24 -05:00
LL | | pub mod f {}
LL | | } // not here
| |_________________^
2023-04-28 14:22:24 -05:00
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:111:18
|
LL | a_but_not({{{{{{{{0}}}}}}}});
| ^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:112:12
|
LL | a.a({{{{{{{{{0}}}}}}}}});
| ^^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:113:12
|
LL | (0, {{{{{{{1}}}}}}});
| ^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:118:25
|
LL | if true {
| _________________________^
LL | | if true {
LL | |
LL | | }
LL | | }
| |_________________^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:130:29
2023-04-28 14:22:24 -05:00
|
LL | let z = (|| {
| _____________________________^
2023-04-28 14:22:24 -05:00
LL | | let w = { 3 };
LL | | w
LL | | })();
| |_________________^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:149:13
|
LL | y += {{{{{5}}}}};
| ^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:150:20
|
LL | let z = y + {{{{{{{{{5}}}}}}}}};
| ^^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:151:12
|
LL | [0, {{{{{{{{{{0}}}}}}}}}}];
| ^^^^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:152:25
|
LL | let mut xx = [0; {{{{{{{{100}}}}}}}}];
| ^^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:153:11
|
LL | xx[{{{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}}}];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:154:13
|
LL | &mut {{{{{{{{{{y}}}}}}}}}};
| ^^^^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:156:17
|
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
| ^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:156:28
|
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
| ^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:158:28
|
LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
| ^^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:158:48
|
LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
| ^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:160:14
|
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
| ^^^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:160:35
|
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
| ^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:162:23
|
LL | let d = D { d: {{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}} };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:164:8
|
LL | {{{{1;}}}}..{{{{{{3}}}}}};
| ^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:164:20
|
LL | {{{{1;}}}}..{{{{{{3}}}}}};
| ^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:165:8
|
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
| ^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:165:21
|
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:166:10
|
LL | ..{{{{{{{5}}}}}}};
| ^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:167:11
|
LL | ..={{{{{3}}}}};
| ^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:168:8
|
LL | {{{{{1;}}}}}..;
| ^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:170:20
|
LL | loop { break {{{{1}}}} };
| ^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:171:13
|
LL | loop {{{{{{}}}}}}
| ^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:173:14
|
LL | match {{{{{{true}}}}}} {
| ^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:174:20
|
LL | true => {{{{}}}},
| ^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:175:21
|
LL | false => {{{{}}}},
| ^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:181:17
|
LL | / {
LL | | println!("warning! :)");
LL | | }
| |_________________^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:190:28
|
LL | async fn c() -> u32 {{{{{{{0}}}}}}}
| ^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: this block is too nested
2023-06-10 06:54:00 -05:00
--> $DIR/excessive_nesting.rs:196:8
|
LL | {{{{b().await}}}};
| ^^^^^^^^^^^
|
2023-04-28 14:22:24 -05:00
= help: try refactoring your code to minimize nesting
error: aborting due to 37 previous errors