Skip to content

Commit d393419

Browse files
committed
actually make cargo test pass...
1 parent 7d0148f commit d393419

File tree

3 files changed

+68
-97
lines changed

3 files changed

+68
-97
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/target-ra
2+
13
# Used by CI to be able to push:
24
/.github/deploy_key
35
out

tests/ui-toml/excessive_nesting/excessive_nesting.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
// aux-build:macro_rules.rs
1+
//@aux-build:macro_rules.rs
22
#![rustfmt::skip]
33
#![feature(custom_inner_attributes)]
44
#![allow(unused)]
55
#![allow(clippy::let_and_return)]
66
#![allow(clippy::redundant_closure_call)]
77
#![allow(clippy::no_effect)]
88
#![allow(clippy::unnecessary_operation)]
9+
#![allow(clippy::never_loop)]
910
#![warn(clippy::excessive_nesting)]
1011
#![allow(clippy::collapsible_if)]
1112

@@ -142,25 +143,25 @@ fn main() {
142143
y += {{{{{5}}}}};
143144
let z = y + {{{{{{{{{5}}}}}}}}};
144145
[0, {{{{{{{{{{0}}}}}}}}}}];
145-
let mut xx = [0; {{{{{{{{1}}}}}}}}];
146+
let mut xx = [0; {{{{{{{{100}}}}}}}}];
146147
xx[{{{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}}}];
147148
&mut {{{{{{{{{{y}}}}}}}}}};
148149

149150
for i in {{{{xx}}}} {{{{{{{{}}}}}}}}
150151

151-
while let Some(i) = {{{{{xx.pop()}}}}} {{{{{{{}}}}}}}
152+
while let Some(i) = {{{{{{Some(1)}}}}}} {{{{{{{}}}}}}}
152153

153154
while {{{{{{{{true}}}}}}}} {{{{{{{{{}}}}}}}}}
154155

155156
let d = D { d: {{{{{{{{{{{{{{{{{{{{{{{3}}}}}}}}}}}}}}}}}}}}}}} };
156157

157-
{{{{1}}}}..{{{{{{3}}}}}};
158-
{{{{1}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
158+
{{{{1;}}}}..{{{{{{3}}}}}};
159+
{{{{1;}}}}..={{{{{{{{{{{{{{{{{{{{{{{{{{6}}}}}}}}}}}}}}}}}}}}}}}}}};
159160
..{{{{{{{5}}}}}}};
160161
..={{{{{3}}}}};
161-
{{{{{1}}}}}..;
162+
{{{{{1;}}}}}..;
162163

163-
loop { break {{{{1}}}} }
164+
loop { break {{{{1}}}} };
164165
loop {{{{{{}}}}}}
165166

166167
match {{{{{{true}}}}}} {

0 commit comments

Comments
 (0)