From 439947345ef52ce04a66b1d4fa9c05d2b6964fa1 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Mon, 29 Apr 2019 21:52:47 +0200 Subject: Don't shift by mutable ref --- dhall/src/normalize.rs | 199 ++++++++++++++++++++++++++----------------------- 1 file changed, 106 insertions(+), 93 deletions(-) (limited to 'dhall') diff --git a/dhall/src/normalize.rs b/dhall/src/normalize.rs index 2fa3bc5..43e7292 100644 --- a/dhall/src/normalize.rs +++ b/dhall/src/normalize.rs @@ -4,7 +4,7 @@ use std::rc::Rc; use dhall_core::context::Context; use dhall_core::{ - rc, shift, shift0, Builtin, Const, ExprF, Integer, InterpolatedText, + rc, Builtin, Const, ExprF, Integer, InterpolatedText, InterpolatedTextContents, Label, Natural, SubExpr, V, X, }; use dhall_generator as dhall; @@ -53,10 +53,8 @@ impl<'a> PartiallyNormalized<'a> { Normalized(self.0.normalize_to_expr(), self.1, self.2) } pub(crate) fn shift(&self, delta: isize, var: &V