remove revisions

This commit is contained in:
Centri3 2023-06-08 10:15:58 -05:00
parent 5da34559ee
commit 6afb3555d3
6 changed files with 38 additions and 393 deletions

View File

@ -6,7 +6,7 @@
#![crate_type = "proc-macro"] #![crate_type = "proc-macro"]
#![feature(let_chains)] #![feature(let_chains)]
#![feature(proc_macro_span)] #![feature(proc_macro_span)]
#![allow(dead_code)] #![allow(clippy::excessive_nesting, dead_code)]
extern crate proc_macro; extern crate proc_macro;

View File

@ -1,7 +1,4 @@
//@aux-build:proc_macros.rs //@aux-build:proc_macros.rs
//@revisions: set above
//@[set] rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/excessive_nesting/set
//@[above] rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/excessive_nesting/above
#![rustfmt::skip] #![rustfmt::skip]
#![feature(custom_inner_attributes)] #![feature(custom_inner_attributes)]
#![allow(unused)] #![allow(unused)]

View File

@ -1,351 +0,0 @@
error: this block is too nested
--> $DIR/excessive_nesting.rs:22:21
|
LL | let z = {
| _____________________^
LL | | let w = { 3 };
LL | | w
LL | | };
| |_____________^
|
= 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:24
|
LL | pub fn b() {
| ________________________^
LL | | struct C;
LL | |
LL | | impl C {
LL | | pub fn c() {}
LL | | }
LL | | }
| |_____________^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:82:21
|
LL | fn cc() {
| _____________________^
LL | | let x = { 1 }; // not a warning, but cc is
LL | | }
| |_____________^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:86:21
|
LL | let x = { 1 }; // warning
| ^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:99: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
error: this block is too nested
--> $DIR/excessive_nesting.rs:113:17
|
LL | a_but_not({{{{{{{{0}}}}}}}});
| ^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:114:11
|
LL | a.a({{{{{{{{{0}}}}}}}}});
| ^^^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:115:11
|
LL | (0, {{{{{{{1}}}}}}});
| ^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:119:21
|
LL | if true {
| _____________________^
LL | | if true {
LL | | if true {
LL | |
LL | | }
LL | | }
LL | | }
| |_____________^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:131: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
error: this block is too nested
--> $DIR/excessive_nesting.rs:147:36
|
LL | !{boo as u32 + !{boo as u32 + !{boo as u32}}};
| ^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:151:12
|
LL | y += {{{{{5}}}}};
| ^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:152:19
|
LL | let z = y + {{{{{{{{{5}}}}}}}}};
| ^^^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:153:11
|
LL | [0, {{{{{{{{{{0}}}}}}}}}}];
| ^^^^^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:154:24
|
LL | let mut xx = [0; {{{{{{{{100}}}}}}}}];
| ^^^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:155:10
|
LL | xx[{{{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}}}];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:156:12
|
LL | &mut {{{{{{{{{{y}}}}}}}}}};
| ^^^^^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:158:16
|
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
| ^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:158:27
|
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
| ^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:160:27
|
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:160:47
|
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:162:13
|
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
| ^^^^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:162:34
|
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
| ^^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:164:22
|
LL | let d = D { d: {{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}} };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:166:7
|
LL | {{{{1;}}}}..{{{{{{3}}}}}};
| ^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:166:19
|
LL | {{{{1;}}}}..{{{{{{3}}}}}};
| ^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:167:7
|
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
| ^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:167:20
|
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:168:9
|
LL | ..{{{{{{{5}}}}}}};
| ^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:169:10
|
LL | ..={{{{{3}}}}};
| ^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:170:7
|
LL | {{{{{1;}}}}}..;
| ^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:172:19
|
LL | loop { break {{{{1}}}} };
| ^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:173:12
|
LL | loop {{{{{{}}}}}}
| ^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:175:13
|
LL | match {{{{{{true}}}}}} {
| ^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:176:19
|
LL | true => {{{{}}}},
| ^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:177:20
|
LL | false => {{{{}}}},
| ^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:182:13
|
LL | / {
LL | | {
LL | | println!("warning! :)");
LL | | }
LL | | }
| |_____________^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:192:27
|
LL | async fn c() -> u32 {{{{{{{0}}}}}}}
| ^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: this block is too nested
--> $DIR/excessive_nesting.rs:198:7
|
LL | {{{{b().await}}}};
| ^^^^^^^^^^^^^
|
= help: try refactoring your code to minimize nesting
error: aborting due to 39 previous errors

View File

@ -1,5 +1,5 @@
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:23:25 --> $DIR/excessive_nesting.rs:20:25
| |
LL | let w = { 3 }; LL | let w = { 3 };
| ^^^^^ | ^^^^^
@ -8,7 +8,7 @@ LL | let w = { 3 };
= note: `-D clippy::excessive-nesting` implied by `-D warnings` = note: `-D clippy::excessive-nesting` implied by `-D warnings`
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:69:17 --> $DIR/excessive_nesting.rs:66:17
| |
LL | / impl C { LL | / impl C {
LL | | pub fn c() {} LL | | pub fn c() {}
@ -18,7 +18,7 @@ LL | | }
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:83:25 --> $DIR/excessive_nesting.rs:80:25
| |
LL | let x = { 1 }; // not a warning, but cc is LL | let x = { 1 }; // not a warning, but cc is
| ^^^^^ | ^^^^^
@ -26,7 +26,7 @@ LL | let x = { 1 }; // not a warning, but cc is
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:100:17 --> $DIR/excessive_nesting.rs:97:17
| |
LL | / pub mod e { LL | / pub mod e {
LL | | pub mod f {} LL | | pub mod f {}
@ -36,7 +36,7 @@ LL | | } // not here
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:113:18 --> $DIR/excessive_nesting.rs:110:18
| |
LL | a_but_not({{{{{{{{0}}}}}}}}); LL | a_but_not({{{{{{{{0}}}}}}}});
| ^^^^^^^^^^^ | ^^^^^^^^^^^
@ -44,7 +44,7 @@ LL | a_but_not({{{{{{{{0}}}}}}}});
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:114:12 --> $DIR/excessive_nesting.rs:111:12
| |
LL | a.a({{{{{{{{{0}}}}}}}}}); LL | a.a({{{{{{{{{0}}}}}}}}});
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
@ -52,7 +52,7 @@ LL | a.a({{{{{{{{{0}}}}}}}}});
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:115:12 --> $DIR/excessive_nesting.rs:112:12
| |
LL | (0, {{{{{{{1}}}}}}}); LL | (0, {{{{{{{1}}}}}}});
| ^^^^^^^^^ | ^^^^^^^^^
@ -60,7 +60,7 @@ LL | (0, {{{{{{{1}}}}}}});
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:120:25 --> $DIR/excessive_nesting.rs:117:25
| |
LL | if true { LL | if true {
| _________________________^ | _________________________^
@ -73,7 +73,7 @@ LL | | }
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:132:29 --> $DIR/excessive_nesting.rs:129:29
| |
LL | let z = (|| { LL | let z = (|| {
| _____________________________^ | _____________________________^
@ -85,7 +85,7 @@ LL | | })();
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:151:13 --> $DIR/excessive_nesting.rs:148:13
| |
LL | y += {{{{{5}}}}}; LL | y += {{{{{5}}}}};
| ^^^^^ | ^^^^^
@ -93,7 +93,7 @@ LL | y += {{{{{5}}}}};
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:152:20 --> $DIR/excessive_nesting.rs:149:20
| |
LL | let z = y + {{{{{{{{{5}}}}}}}}}; LL | let z = y + {{{{{{{{{5}}}}}}}}};
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
@ -101,7 +101,7 @@ LL | let z = y + {{{{{{{{{5}}}}}}}}};
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:153:12 --> $DIR/excessive_nesting.rs:150:12
| |
LL | [0, {{{{{{{{{{0}}}}}}}}}}]; LL | [0, {{{{{{{{{{0}}}}}}}}}}];
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
@ -109,7 +109,7 @@ LL | [0, {{{{{{{{{{0}}}}}}}}}}];
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:154:25 --> $DIR/excessive_nesting.rs:151:25
| |
LL | let mut xx = [0; {{{{{{{{100}}}}}}}}]; LL | let mut xx = [0; {{{{{{{{100}}}}}}}}];
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
@ -117,7 +117,7 @@ LL | let mut xx = [0; {{{{{{{{100}}}}}}}}];
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:155:11 --> $DIR/excessive_nesting.rs:152:11
| |
LL | xx[{{{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}}}]; LL | xx[{{{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}}}];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -125,7 +125,7 @@ LL | xx[{{{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}}}];
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:156:13 --> $DIR/excessive_nesting.rs:153:13
| |
LL | &mut {{{{{{{{{{y}}}}}}}}}}; LL | &mut {{{{{{{{{{y}}}}}}}}}};
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
@ -133,7 +133,7 @@ LL | &mut {{{{{{{{{{y}}}}}}}}}};
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:158:17 --> $DIR/excessive_nesting.rs:155:17
| |
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}} LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
| ^^^^ | ^^^^
@ -141,7 +141,7 @@ LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:158:28 --> $DIR/excessive_nesting.rs:155:28
| |
LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}} LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
| ^^^^^^^^^^ | ^^^^^^^^^^
@ -149,7 +149,7 @@ LL | for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:160:28 --> $DIR/excessive_nesting.rs:157:28
| |
LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}} LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
@ -157,7 +157,7 @@ LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:160:48 --> $DIR/excessive_nesting.rs:157:48
| |
LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}} LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
| ^^^^^^^^ | ^^^^^^^^
@ -165,7 +165,7 @@ LL | while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:162:14 --> $DIR/excessive_nesting.rs:159:14
| |
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}} LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
@ -173,7 +173,7 @@ LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:162:35 --> $DIR/excessive_nesting.rs:159:35
| |
LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}} LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
@ -181,7 +181,7 @@ LL | while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:164:23 --> $DIR/excessive_nesting.rs:161:23
| |
LL | let d = D { d: {{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}} }; LL | let d = D { d: {{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}} };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -189,7 +189,7 @@ LL | let d = D { d: {{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}} };
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:166:8 --> $DIR/excessive_nesting.rs:163:8
| |
LL | {{{{1;}}}}..{{{{{{3}}}}}}; LL | {{{{1;}}}}..{{{{{{3}}}}}};
| ^^^^ | ^^^^
@ -197,7 +197,7 @@ LL | {{{{1;}}}}..{{{{{{3}}}}}};
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:166:20 --> $DIR/excessive_nesting.rs:163:20
| |
LL | {{{{1;}}}}..{{{{{{3}}}}}}; LL | {{{{1;}}}}..{{{{{{3}}}}}};
| ^^^^^^^ | ^^^^^^^
@ -205,7 +205,7 @@ LL | {{{{1;}}}}..{{{{{{3}}}}}};
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:167:8 --> $DIR/excessive_nesting.rs:164:8
| |
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}}; LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
| ^^^^ | ^^^^
@ -213,7 +213,7 @@ LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:167:21 --> $DIR/excessive_nesting.rs:164:21
| |
LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}}; LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -221,7 +221,7 @@ LL | {{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:168:10 --> $DIR/excessive_nesting.rs:165:10
| |
LL | ..{{{{{{{5}}}}}}}; LL | ..{{{{{{{5}}}}}}};
| ^^^^^^^^^ | ^^^^^^^^^
@ -229,7 +229,7 @@ LL | ..{{{{{{{5}}}}}}};
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:169:11 --> $DIR/excessive_nesting.rs:166:11
| |
LL | ..={{{{{3}}}}}; LL | ..={{{{{3}}}}};
| ^^^^^ | ^^^^^
@ -237,7 +237,7 @@ LL | ..={{{{{3}}}}};
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:170:8 --> $DIR/excessive_nesting.rs:167:8
| |
LL | {{{{{1;}}}}}..; LL | {{{{{1;}}}}}..;
| ^^^^^^ | ^^^^^^
@ -245,7 +245,7 @@ LL | {{{{{1;}}}}}..;
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:172:20 --> $DIR/excessive_nesting.rs:169:20
| |
LL | loop { break {{{{1}}}} }; LL | loop { break {{{{1}}}} };
| ^^^^^ | ^^^^^
@ -253,7 +253,7 @@ LL | loop { break {{{{1}}}} };
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:173:13 --> $DIR/excessive_nesting.rs:170:13
| |
LL | loop {{{{{{}}}}}} LL | loop {{{{{{}}}}}}
| ^^^^^^ | ^^^^^^
@ -261,7 +261,7 @@ LL | loop {{{{{{}}}}}}
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:175:14 --> $DIR/excessive_nesting.rs:172:14
| |
LL | match {{{{{{true}}}}}} { LL | match {{{{{{true}}}}}} {
| ^^^^^^^^^^ | ^^^^^^^^^^
@ -269,7 +269,7 @@ LL | match {{{{{{true}}}}}} {
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:176:20 --> $DIR/excessive_nesting.rs:173:20
| |
LL | true => {{{{}}}}, LL | true => {{{{}}}},
| ^^ | ^^
@ -277,7 +277,7 @@ LL | true => {{{{}}}},
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:177:21 --> $DIR/excessive_nesting.rs:174:21
| |
LL | false => {{{{}}}}, LL | false => {{{{}}}},
| ^^ | ^^
@ -285,7 +285,7 @@ LL | false => {{{{}}}},
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:183:17 --> $DIR/excessive_nesting.rs:180:17
| |
LL | / { LL | / {
LL | | println!("warning! :)"); LL | | println!("warning! :)");
@ -295,7 +295,7 @@ LL | | }
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:192:28 --> $DIR/excessive_nesting.rs:189:28
| |
LL | async fn c() -> u32 {{{{{{{0}}}}}}} LL | async fn c() -> u32 {{{{{{{0}}}}}}}
| ^^^^^^^^^ | ^^^^^^^^^
@ -303,7 +303,7 @@ LL | async fn c() -> u32 {{{{{{{0}}}}}}}
= help: try refactoring your code to minimize nesting = help: try refactoring your code to minimize nesting
error: this block is too nested error: this block is too nested
--> $DIR/excessive_nesting.rs:198:8 --> $DIR/excessive_nesting.rs:195:8
| |
LL | {{{{b().await}}}}; LL | {{{{b().await}}}};
| ^^^^^^^^^^^ | ^^^^^^^^^^^

View File

@ -1 +0,0 @@
excessive-nesting-threshold = 3