diff options
author | Nadrieril | 2019-05-09 16:53:48 +0200 |
---|---|---|
committer | Nadrieril | 2019-05-09 16:53:48 +0200 |
commit | 32051979778436ea02cb406551f126fe22ea1636 (patch) | |
tree | bf2610cfc94b39e941a505946d50669b9674789c /dhall/src/core/value.rs | |
parent | 7538e29275720407ac172bb05cdbc028d95ff921 (diff) |
ExprF need not be generic in Label
Diffstat (limited to '')
-rw-r--r-- | dhall/src/core/value.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dhall/src/core/value.rs b/dhall/src/core/value.rs index e91b6bc..799cfac 100644 --- a/dhall/src/core/value.rs +++ b/dhall/src/core/value.rs @@ -58,7 +58,7 @@ pub(crate) enum Value { // contiguous text values must be merged. TextLit(Vec<InterpolatedTextContents<Thunk>>), // Invariant: this must not contain a value captured by one of the variants above. - PartialExpr(ExprF<Thunk, Label, X>), + PartialExpr(ExprF<Thunk, X>), } impl Value { @@ -433,7 +433,6 @@ impl Shift for Value { |v| Ok(v.shift(delta, var)?), |x, v| Ok(v.shift(delta, &var.under_binder(x))?), |x| Ok(X::clone(x)), - |l| Ok(Label::clone(l)), )?, ), }) @@ -459,7 +458,6 @@ impl Subst<Typed> for Value { ) }, X::clone, - Label::clone, )) } // Retry normalizing since substituting may allow progress |