From 588127bf4105d8d4629304521abc3d992326a63a Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Thu, 18 Apr 2019 19:34:38 +0200 Subject: subst_shift in a single pass --- dhall/src/typecheck.rs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'dhall/src') diff --git a/dhall/src/typecheck.rs b/dhall/src/typecheck.rs index 5aaeb08..186384d 100644 --- a/dhall/src/typecheck.rs +++ b/dhall/src/typecheck.rs @@ -44,9 +44,9 @@ impl<'a> Normalized<'a> { fn unroll_ref(&self) -> &Expr { self.as_expr().as_ref() } - fn shift(&self, delta: isize, var: &V