From fc1b908322a5a2ebf8aa599d7178accdd3cbaed9 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Fri, 26 Sep 2014 17:14:23 -0700 Subject: Hide the quote_*! macros when the feature gate is off This makes it easier to experiment with improved quasiquoting as an ordinary plugin library. The list of quote macros in feature_gate.rs was already out of sync; this commit also prevents that problem in the future. --- src/librustc/driver/driver.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/librustc') diff --git a/src/librustc/driver/driver.rs b/src/librustc/driver/driver.rs index 33e6579fb87..05d83e5fc0f 100644 --- a/src/librustc/driver/driver.rs +++ b/src/librustc/driver/driver.rs @@ -288,8 +288,9 @@ pub fn phase_2_configure_and_expand(sess: &Session, os::setenv("PATH", os::join_paths(new_path.as_slice()).unwrap()); } let cfg = syntax::ext::expand::ExpansionConfig { - deriving_hash_type_parameter: sess.features.borrow().default_type_params, crate_name: crate_name.to_string(), + deriving_hash_type_parameter: sess.features.borrow().default_type_params, + enable_quotes: sess.features.borrow().quote, }; let ret = syntax::ext::expand::expand_crate(&sess.parse_sess, cfg, -- cgit 1.4.1-3-g733a5