From d6cbee16586be9013bebfa8dc9e7aa0a31c8c55f Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Wed, 20 Mar 2019 22:46:07 +0100 Subject: Make parser implementation non-recursive --- dhall/tests/common/mod.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'dhall') diff --git a/dhall/tests/common/mod.rs b/dhall/tests/common/mod.rs index a635fb1..75aee38 100644 --- a/dhall/tests/common/mod.rs +++ b/dhall/tests/common/mod.rs @@ -24,22 +24,7 @@ macro_rules! make_spec_test { #[allow(non_snake_case)] fn $name() { use crate::common::*; - - if cfg!(feature = "nothreads") { - run_test($path, Feature::$type); - } else { - use std::thread; - // The parser stack overflows even on small files - // when compiled without optimizations - thread::Builder::new() - .stack_size(16 * 1024 * 1024) - .spawn(move || { - run_test($path, Feature::$type); - }) - .unwrap() - .join() - .unwrap(); - } + run_test($path, Feature::$type); } }; } -- cgit v1.2.3