From 822d828f2f82790b1d0efaac402fe119c56d9006 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Thu, 11 Apr 2019 13:59:42 +0200 Subject: Remove premature #[inline(always)] Closes #57 --- dhall_core/src/core.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'dhall_core') diff --git a/dhall_core/src/core.rs b/dhall_core/src/core.rs index 03a34f1..353e5c3 100644 --- a/dhall_core/src/core.rs +++ b/dhall_core/src/core.rs @@ -285,7 +285,6 @@ impl Expr { self.map_shallow(recurse, S::clone, map_embed, Label::clone) } - #[inline(always)] pub fn traverse_embed( &self, map_embed: &F, @@ -317,7 +316,6 @@ impl Expr { self.map_shallow(recurse, S::clone, A::clone, map_label) } - #[inline(always)] pub fn roll(&self) -> SubExpr where S: Clone, @@ -359,7 +357,6 @@ impl Expr> { } impl ExprF { - #[inline(always)] pub fn as_ref(&self) -> ExprF<&SE, &L, &N, &E> where L: Ord, @@ -407,7 +404,6 @@ impl ExprF { } } - #[inline(always)] pub fn traverse( self, map_subexpr: F1, @@ -499,7 +495,6 @@ impl ExprF { }) } - #[inline(always)] pub fn map( self, mut map_subexpr: F1, @@ -526,7 +521,6 @@ impl ExprF { )) } - #[inline(always)] pub fn map_ref<'a, SE2, L2, N2, E2, F1, F2, F3, F4, F5>( &'a self, map_subexpr: F1, @@ -554,7 +548,6 @@ impl ExprF { ) } - #[inline(always)] pub fn map_ref_simple<'a, SE2, F1>( &'a self, map_subexpr: F1, @@ -575,7 +568,6 @@ impl ExprF { ) } - #[inline(always)] pub fn traverse_ref_simple<'a, SE2, Err, F1>( &'a self, map_subexpr: F1, @@ -596,7 +588,6 @@ impl ExprF { ) } - // #[inline(always)] // pub fn zip( // self, // other: ExprF @@ -641,7 +632,6 @@ impl ExprF { } impl SubExpr { - #[inline(always)] pub fn as_ref(&self) -> &Expr { self.0.as_ref() } @@ -677,7 +667,6 @@ impl SubExpr { self.map_ref(&map_expr, |_, e| map_expr(e)) } - #[inline(always)] pub fn unroll(&self) -> Expr where N: Clone, @@ -688,7 +677,6 @@ impl SubExpr { } impl Clone for SubExpr { - #[inline(always)] fn clone(&self) -> Self { SubExpr(Rc::clone(&self.0)) } -- cgit v1.2.3