summaryrefslogtreecommitdiff
path: root/dhall
diff options
context:
space:
mode:
authorNadrieril2019-04-23 17:59:10 +0200
committerNadrieril2019-04-23 18:29:22 +0200
commit4b1ad84cb2dad533069d685e212894d517d8fa57 (patch)
treeb538b23087522950c8fb44fd6bfa12736f2ca3b6 /dhall
parentd6fef3bc93decab238912580eaf2224f824be166 (diff)
Silence warnings
Diffstat (limited to '')
-rw-r--r--dhall/src/expr.rs3
-rw-r--r--dhall/src/traits/dynamic_type.rs2
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;