Skip to content

Commit

Permalink
Rollup merge of #37938 - michaelwoerister:move-myriad-closures, r=eddyb
Browse files Browse the repository at this point in the history
Move the myriad-closures.rs test case to run-pass-full test suite.

r? @eddyb
  • Loading branch information
GuillaumeGomez authored Nov 23, 2016
2 parents cfc7fce + c0464ee commit 90a2671
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!());
Expand All @@ -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 {
Expand Down

0 comments on commit 90a2671

Please sign in to comment.