From 9edd494000ba6580e7a363404217570a079d1a38 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 22 Nov 2020 17:32:10 +0800 Subject: [PATCH] Fix builds. --- examples/repl.rs | 3 +++ src/module/mod.rs | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/repl.rs b/examples/repl.rs index 24be5392..d5ca863f 100644 --- a/examples/repl.rs +++ b/examples/repl.rs @@ -140,9 +140,12 @@ fn main() { .gen_fn_signatures(false) .into_iter() .for_each(|f| println!("{}", f)); + + #[cfg(not(feature = "no_functions"))] main_ast .iter_functions() .for_each(|(_, _, _, _, f)| println!("{}", f)); + println!(); continue; } diff --git a/src/module/mod.rs b/src/module/mod.rs index 924f383f..c4d5147b 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -1584,7 +1584,6 @@ impl Module { /// variables and functions as one flattened namespace. /// /// If the module is already indexed, this method has no effect. - #[cfg(not(feature = "no_module"))] pub fn build_index(&mut self) -> &mut Self { // Collect a particular module. fn index_module<'a>(