Skip to content

Commit 90a2671

Browse files
Rollup merge of #37938 - michaelwoerister:move-myriad-closures, r=eddyb
Move the myriad-closures.rs test case to run-pass-full test suite. r? @eddyb
2 parents cfc7fce + c0464ee commit 90a2671

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/run-pass/myriad-closures.rs renamed to src/test/run-pass-fulldeps/myriad-closures.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
// toolchain.
1414
// See https://github.com/rust-lang/rust/issues/34793 for more information.
1515

16+
// Make sure we don't optimize anything away:
17+
// compile-flags: -C no-prepopulate-passes
18+
1619
// Expand something exponentially
1720
macro_rules! go_bacterial {
1821
($mac:ident) => ($mac!());
@@ -23,10 +26,7 @@ macro_rules! go_bacterial {
2326
}
2427

2528
macro_rules! mk_closure {
26-
() => ({
27-
let c = |a: u32| a + 4;
28-
let _ = c(2);
29-
})
29+
() => ((move || {})())
3030
}
3131

3232
macro_rules! mk_fn {

0 commit comments

Comments
 (0)