summaryrefslogtreecommitdiff
path: root/dhall
diff options
context:
space:
mode:
authorNadrieril2019-03-05 02:33:47 +0100
committerNadrieril2019-03-05 02:33:47 +0100
commitb3b3a61a903093cddb1e3835540de7b0d96ae822 (patch)
tree1e649bb9d5134454302ad2574cbd48a86acebcfc /dhall
parentb0fc75a52b9c0c7e74cb242a4c67b8ff19c1fd1d (diff)
Remove unused unstable features
Diffstat (limited to 'dhall')
-rw-r--r--dhall/src/lib.rs2
-rw-r--r--dhall/src/parser.rs7
2 files changed, 4 insertions, 5 deletions
diff --git a/dhall/src/lib.rs b/dhall/src/lib.rs
index e720ae1..9dbd3a6 100644
--- a/dhall/src/lib.rs
+++ b/dhall/src/lib.rs
@@ -1,6 +1,4 @@
#![feature(box_patterns)]
-#![feature(concat_idents)]
-#![feature(transpose_result)]
pub mod context;
mod core;
diff --git a/dhall/src/parser.rs b/dhall/src/parser.rs
index 47c520e..36e1726 100644
--- a/dhall/src/parser.rs
+++ b/dhall/src/parser.rs
@@ -208,10 +208,11 @@ macro_rules! match_children {
match_children!(@parse, $pairs $($rest)*);
};
(@parse, $pairs:expr, $x:ident? : $ty:ident $($rest:tt)*) => {
- let $x = $x.map($ty).transpose();
+ let $x = $x.map($ty);
let $x = match $x {
- Ok(x) => x,
- Err(e) => break Err(IterMatchError::Other(e)),
+ Some(Ok(x)) => Some(x),
+ Some(Err(e)) => break Err(IterMatchError::Other(e)),
+ None => None,
};
match_children!(@parse, $pairs $($rest)*);
};