diff options
author | Nadrieril | 2019-05-04 14:58:18 +0200 |
---|---|---|
committer | Nadrieril | 2019-05-04 14:58:18 +0200 |
commit | 1b1c34b90bb4bf3859b05b1da6db2dcb374996bb (patch) | |
tree | a344a360f8735a3f33d05c04568d9449efa7ba4c /dhall_proc_macros | |
parent | b6f57069b75febf1d312a98efcd6544c9db2fe59 (diff) |
Move `Note`s into the spine of the AST
Diffstat (limited to '')
-rw-r--r-- | dhall_proc_macros/src/quote.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dhall_proc_macros/src/quote.rs b/dhall_proc_macros/src/quote.rs index c2323fa..e11bbaa 100644 --- a/dhall_proc_macros/src/quote.rs +++ b/dhall_proc_macros/src/quote.rs @@ -27,7 +27,7 @@ pub fn subexpr(input: proc_macro::TokenStream) -> proc_macro::TokenStream { // Returns an expression of type ExprF<T, _, _>, where T is the // type of the subexpressions after interpolation. -pub fn quote_exprf<TS>(expr: ExprF<TS, Label, X, X>) -> TokenStream +pub fn quote_exprf<TS>(expr: ExprF<TS, Label, X>) -> TokenStream where TS: quote::ToTokens + std::fmt::Debug, { @@ -103,7 +103,6 @@ fn quote_subexpr( |e| quote_subexpr(e, ctx), |l, e| quote_subexpr(e, &ctx.insert(l.clone(), ())), |_| unreachable!(), - |_| unreachable!(), Label::clone, ) { Var(V(ref s, n)) => { @@ -138,7 +137,6 @@ fn quote_expr(expr: &Expr<X, X>, ctx: &Context<Label, ()>) -> TokenStream { |e| quote_subexpr(e, ctx), |l, e| quote_subexpr(e, &ctx.insert(l.clone(), ())), |_| unreachable!(), - |_| unreachable!(), Label::clone, ) { Var(V(ref s, n)) => { |