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/test/run-pass/non-built-in-quote.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/test/run-pass/non-built-in-quote.rs (limited to 'src/test') diff --git a/src/test/run-pass/non-built-in-quote.rs b/src/test/run-pass/non-built-in-quote.rs new file mode 100644 index 00000000000..c6dd3736857 --- /dev/null +++ b/src/test/run-pass/non-built-in-quote.rs @@ -0,0 +1,17 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![feature(macro_rules)] + +macro_rules! quote_tokens ( () => (()) ) + +pub fn main() { + quote_tokens!(); +} -- cgit 1.4.1-3-g733a5