diff options
Diffstat (limited to 'dhall/src')
-rw-r--r-- | dhall/src/expr.rs | 3 | ||||
-rw-r--r-- | dhall/src/traits/dynamic_type.rs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/dhall/src/expr.rs b/dhall/src/expr.rs index 1c3ec53..a548d32 100644 --- a/dhall/src/expr.rs +++ b/dhall/src/expr.rs @@ -114,6 +114,7 @@ impl<'a> From<Normalized<'a>> for Typed<'a> { } #[doc(hidden)] +#[allow(dead_code)] impl<'a> Typed<'a> { pub(crate) fn as_expr(&self) -> &SubExpr<X, Normalized<'a>> { &self.0 @@ -128,6 +129,7 @@ impl<'a> Normalized<'a> { pub(crate) fn into_expr(self) -> SubExpr<X, X> { self.0 } + #[allow(dead_code)] pub(crate) fn unnote<'b>(self) -> Normalized<'b> { Normalized(self.0, self.1, PhantomData) } @@ -150,6 +152,7 @@ impl<'a> Type<'a> { } impl<'a> SimpleType<'a> { + #[allow(dead_code)] pub(crate) fn into_type(self) -> Type<'a> { self.into_type_ctx(&crate::typecheck::TypecheckContext::new()) } diff --git a/dhall/src/traits/dynamic_type.rs b/dhall/src/traits/dynamic_type.rs index 3b34363..f783950 100644 --- a/dhall/src/traits/dynamic_type.rs +++ b/dhall/src/traits/dynamic_type.rs @@ -1,8 +1,10 @@ use crate::expr::*; use crate::traits::StaticType; +#[allow(unused_imports)] use crate::typecheck::{ type_of_const, TypeError, TypeMessage, TypecheckContext, }; +#[allow(unused_imports)] use dhall_core::{Const, ExprF}; use std::borrow::Cow; |