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/src/typecheck.rs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'dhall') diff --git a/dhall/src/typecheck.rs b/dhall/src/typecheck.rs index 91846bc..2a527fb 100644 --- a/dhall/src/typecheck.rs +++ b/dhall/src/typecheck.rs @@ -24,53 +24,42 @@ impl Resolved { } } impl Typed { - #[inline(always)] fn as_expr(&self) -> &SubExpr { &self.0 } - #[inline(always)] fn into_expr(self) -> SubExpr { self.0 } - #[inline(always)] pub fn get_type(&self) -> &Type { &self.1 } - #[inline(always)] fn get_type_move(self) -> Type { self.1 } } impl Normalized { - #[inline(always)] fn as_expr(&self) -> &SubExpr { &self.0 } - #[inline(always)] pub(crate) fn into_expr(self) -> SubExpr { self.0 } - #[inline(always)] pub fn get_type(&self) -> &Type { &self.1 } - #[inline(always)] pub(crate) fn into_type(self) -> Type { crate::expr::Type(TypeInternal::Expr(Box::new(self))) } // Expose the outermost constructor - #[inline(always)] fn unroll_ref(&self) -> &Expr { self.as_expr().as_ref() } - #[inline(always)] fn shift(&self, delta: isize, var: &V