From d454d31ea07b70ff6d3f8d4d1014d37d954241dd Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 7 Apr 2019 12:29:48 +0200 Subject: Universe hierarchy is overkill --- dhall/src/expr.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dhall/src/expr.rs') diff --git a/dhall/src/expr.rs b/dhall/src/expr.rs index 75d7690..555db2f 100644 --- a/dhall/src/expr.rs +++ b/dhall/src/expr.rs @@ -8,19 +8,19 @@ pub struct Parsed(pub(crate) SubExpr, pub(crate) ImportRoot); pub struct Resolved(pub(crate) SubExpr); #[derive(Debug, Clone)] -pub struct Typed(pub(crate) SubExpr, pub(crate) Type<'static>); +pub struct Typed(pub(crate) SubExpr, pub(crate) Type); #[derive(Debug, Clone)] -pub struct Type<'a>(pub(crate) std::borrow::Cow<'a, TypeInternal>); +pub struct Type(pub(crate) TypeInternal); #[derive(Debug, Clone)] pub(crate) enum TypeInternal { Expr(Box), - Universe(usize), + Untyped, } #[derive(Debug, Clone)] -pub struct Normalized(pub(crate) SubExpr, pub(crate) Type<'static>); +pub struct Normalized(pub(crate) SubExpr, pub(crate) Type); impl PartialEq for Parsed { fn eq(&self, other: &Self) -> bool { -- cgit v1.2.3