From 250c4861438d9b156655fb9c933e64fce921f5ec Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 16 Jul 2018 19:36:55 -0700 Subject: [PATCH] Fix derive code --- schala-codegen/src/lib.rs | 4 ++-- schala-lang/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schala-codegen/src/lib.rs b/schala-codegen/src/lib.rs index b2f7a24..8228161 100644 --- a/schala-codegen/src/lib.rs +++ b/schala-codegen/src/lib.rs @@ -66,7 +66,7 @@ pub fn derive_programming_language_interface(input: TokenStream) -> TokenStream //let pass_names: Vec = passes.iter().map(|pass| pass.0.to_string()).collect(); let pass_descriptors = passes.iter().map(|pass| { - let name: String = pass.0.to_string(); + let name = pass.0.to_string(); let opts: Vec = match &pass.1 { None => vec![], Some(opts) => opts.iter().map(|o| o.to_string()).collect(), @@ -74,7 +74,7 @@ pub fn derive_programming_language_interface(input: TokenStream) -> TokenStream quote! { PassDescriptor { - name: #name, + name: #name.to_string(), debug_options: vec![#(format!(#opts)),*] } } diff --git a/schala-lang/src/lib.rs b/schala-lang/src/lib.rs index ecd1863..626285c 100644 --- a/schala-lang/src/lib.rs +++ b/schala-lang/src/lib.rs @@ -31,7 +31,7 @@ mod typechecking; mod reduced_ast; mod eval; -trace_macros!(true); +//trace_macros!(true); #[derive(ProgrammingLanguageInterface)] #[LanguageName = "Schala"] #[SourceFileExtension = "schala"]