From 408bba76bd95a2aabd49046443950a37771f6008 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 4 May 2019 16:13:18 +0200 Subject: Thread Spans through the AST --- dhall_proc_macros/src/quote.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhall_proc_macros') diff --git a/dhall_proc_macros/src/quote.rs b/dhall_proc_macros/src/quote.rs index e11bbaa..eaf4946 100644 --- a/dhall_proc_macros/src/quote.rs +++ b/dhall_proc_macros/src/quote.rs @@ -11,7 +11,7 @@ pub fn expr(input: proc_macro::TokenStream) -> proc_macro::TokenStream { let no_import = |_: &Import| -> X { panic!("Don't use import in dhall::expr!()") }; let expr = expr.map_embed(no_import); - let output = quote_expr(&expr.unroll(), &Context::new()); + let output = quote_expr(expr.as_ref(), &Context::new()); output.into() } -- cgit v1.2.3