diff options
author | Nadrieril | 2019-11-11 09:16:38 +0000 |
---|---|---|
committer | Nadrieril | 2019-11-11 09:16:38 +0000 |
commit | 1837943ba9f92cf1d941c52d5b895f6573e152bf (patch) | |
tree | afeb3fdd427f859142b9286c9871e0f80960c0fd /dhall/src/phase/typecheck.rs | |
parent | 8a8eeeac3b4f7761fd0916ee69d182597090039d (diff) |
Run `cargo fmt`
Diffstat (limited to '')
-rw-r--r-- | dhall/src/phase/typecheck.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dhall/src/phase/typecheck.rs b/dhall/src/phase/typecheck.rs index 2e61fbc..9013c1f 100644 --- a/dhall/src/phase/typecheck.rs +++ b/dhall/src/phase/typecheck.rs @@ -249,7 +249,9 @@ fn type_of_builtin<E>(b: Builtin) -> Expr<E> { list ), ListLength => make_type!(forall (a: Type) -> (List a) -> Natural), - ListHead | ListLast => make_type!(forall (a: Type) -> (List a) -> Optional a), + ListHead | ListLast => { + make_type!(forall (a: Type) -> (List a) -> Optional a) + } ListIndexed => make_type!( forall (a: Type) -> (List a) -> @@ -373,7 +375,9 @@ fn type_last_layer( Import(_) => unreachable!( "There should remain no imports in a resolved expression" ), - Lam(_, _, _) | Pi(_, _, _) | Let(_, _, _, _) | Embed(_) | Var(_) => unreachable!(), + Lam(_, _, _) | Pi(_, _, _) | Let(_, _, _, _) | Embed(_) | Var(_) => { + unreachable!() + } App(f, a) => { let tf = f.get_type()?; let tf_borrow = tf.as_whnf(); |