From 80f4cfeef3e5dfc6f2aab36c2562b1c0d2b576d8 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Thu, 2 May 2019 20:19:45 +0200 Subject: Update dhall-lang submodule --- dhall-lang | 2 +- dhall/src/binary.rs | 2 +- dhall_core/src/parser.rs | 57 +++++++++++++++--------- dhall_core/src/printer.rs | 10 +++-- dhall_generated_parser/src/dhall.pest.visibility | 4 +- 5 files changed, 45 insertions(+), 30 deletions(-) diff --git a/dhall-lang b/dhall-lang index 1c8335d..7e3721f 160000 --- a/dhall-lang +++ b/dhall-lang @@ -1 +1 @@ -Subproject commit 1c8335d9362342c64d3b4ffaa2afac0eecdff209 +Subproject commit 7e3721f1a535e4be79af39b2b6d86ee7ce438879 diff --git a/dhall/src/binary.rs b/dhall/src/binary.rs index 7ded3a5..cadd456 100644 --- a/dhall/src/binary.rs +++ b/dhall/src/binary.rs @@ -30,7 +30,7 @@ fn cbor_value_to_dhall(data: &cbor::Value) -> Result { "Type" => Const(Const::Type), "Kind" => Const(Const::Kind), "Sort" => Const(Const::Sort), - s => Var(V(Label::from(s), 0)), + _ => Err(DecodeError::WrongFormatError("builtin".to_owned()))?, }, }, U64(n) => Var(V(Label::from("_"), *n as usize)), diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs index ba15bae..8f9957a 100644 --- a/dhall_core/src/parser.rs +++ b/dhall_core/src/parser.rs @@ -308,12 +308,12 @@ make_parser! { rule!(quoted_label