about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-11-23 12:18:10 +0100
committerGitHub <noreply@github.com>2016-11-23 12:18:10 +0100
commit90a2671a3c059f166d5a431154a2d7632496f6e5 (patch)
tree4bf747df12cf274dcfb82cf215c5f9429c094761
parentcfc7fce2f09d71ccdfc21f87fd8c082a405612b3 (diff)
parentc0464eef175b81073052a173534f17d04e061a30 (diff)
downloadrust-90a2671a3c059f166d5a431154a2d7632496f6e5.tar.gz
rust-90a2671a3c059f166d5a431154a2d7632496f6e5.zip
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
-rw-r--r--src/test/run-pass-fulldeps/myriad-closures.rs (renamed from src/test/run-pass/myriad-closures.rs)8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/run-pass/myriad-closures.rs b/src/test/run-pass-fulldeps/myriad-closures.rs
index d2c9a5d562b..a946ec635b2 100644
--- a/src/test/run-pass/myriad-closures.rs
+++ b/src/test/run-pass-fulldeps/myriad-closures.rs
@@ -13,6 +13,9 @@
 // toolchain.
 // See https://github.com/rust-lang/rust/issues/34793 for more information.
 
+// Make sure we don't optimize anything away:
+// compile-flags: -C no-prepopulate-passes
+
 // Expand something exponentially
 macro_rules! go_bacterial {
     ($mac:ident) => ($mac!());
@@ -23,10 +26,7 @@ macro_rules! go_bacterial {
 }
 
 macro_rules! mk_closure {
-    () => ({
-        let c = |a: u32| a + 4;
-        let _ = c(2);
-    })
+    () => ((move || {})())
 }
 
 macro_rules! mk_fn {