From 104a8a4a0632ee69e642521ea03239af88366346 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Wed, 4 Mar 2020 21:54:34 +0000 Subject: Implement conservative sanity checking --- dhall/src/semantics/resolve/env.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dhall/src/semantics/resolve/env.rs') diff --git a/dhall/src/semantics/resolve/env.rs b/dhall/src/semantics/resolve/env.rs index 2342dcc..5a7f139 100644 --- a/dhall/src/semantics/resolve/env.rs +++ b/dhall/src/semantics/resolve/env.rs @@ -85,16 +85,16 @@ impl ImportEnv { Ok(match self.cache.get(&location) { Some(expr) => expr.clone(), None => { - // Push the current import on the stack + // Push the current location on the stack self.stack.push(location); // Resolve the import recursively let expr = do_resolve(self)?; - // Remove import from the stack. + // Remove location from the stack. let location = self.stack.pop().unwrap(); - // Add the import to the cache + // Add the resolved import to the cache self.cache.insert(location, expr.clone()); expr -- cgit v1.2.3