diff options
author | Nadrieril | 2019-04-18 22:20:40 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-18 23:24:58 +0200 |
commit | 0682a84eadc383e1d5747576298c9160737e0e99 (patch) | |
tree | cdc1dabca561c77fc7cf1ad8975eef8ee71c5166 /dhall/src/typecheck.rs | |
parent | 486a26eb7cea0c99818fde2c3fd933f7aca40b52 (diff) |
Label is redundant in EnvItem::Skip
Diffstat (limited to 'dhall/src/typecheck.rs')
-rw-r--r-- | dhall/src/typecheck.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dhall/src/typecheck.rs b/dhall/src/typecheck.rs index 186384d..65128cd 100644 --- a/dhall/src/typecheck.rs +++ b/dhall/src/typecheck.rs @@ -378,7 +378,8 @@ fn type_with( let ret = match e.as_ref() { Lam(x, t, b) => { let t = mktype(ctx, t.clone())?; - let ctx2 = ctx.insert(x.clone(), t.clone()).map(|e| e.shift0(1, x)); + let ctx2 = + ctx.insert(x.clone(), t.clone()).map(|_, e| e.shift0(1, x)); let b = type_with(&ctx2, b.clone())?; Ok(RetExpr(Pi( x.clone(), @@ -394,7 +395,7 @@ fn type_with( ); let ctx2 = - ctx.insert(x.clone(), ta.clone()).map(|e| e.shift0(1, x)); + ctx.insert(x.clone(), ta.clone()).map(|_, e| e.shift0(1, x)); let tb = type_with(&ctx2, tb.clone())?; let kB = ensure_is_const!( &tb.get_type()?, |