From 1b04830147e7ea7f74281a9ef6b28363f44a110d Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Tue, 19 Nov 2019 06:42:33 -0500 Subject: [PATCH] Make BoxedParser available to releases --- src/parse/parser.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/parse/parser.rs b/src/parse/parser.rs index 35fcbb7125..7840f1d5a4 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -1319,12 +1319,10 @@ where // explosions in types (and thus monomorphization, and thus build time), // but has runtime overhead, so we only use these in debug builds. -#[cfg(debug_assertions)] pub struct BoxedParser<'a, Output> { parser: Box + 'a>, } -#[cfg(debug_assertions)] impl<'a, Output> BoxedParser<'a, Output> { fn new

(parser: P) -> Self where @@ -1336,7 +1334,6 @@ impl<'a, Output> BoxedParser<'a, Output> { } } -#[cfg(debug_assertions)] impl<'a, Output> Parser<'a, Output> for BoxedParser<'a, Output> { fn parse(&self, arena: &'a Bump, state: State<'a>) -> ParseResult<'a, Output> { self.parser.parse(arena, state)