about summary refs log tree commit diff
path: root/src/test/compile-fail-fulldeps
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-09-15 16:09:09 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2015-01-05 11:38:12 -0800
commit5e5924b79915326d81db2aebfe73d2a20b8506f1 (patch)
tree16d55df447ad54f7d8a0dff9a900d12e7b091dd1 /src/test/compile-fail-fulldeps
parentd1cf1b1e6bf0b33fe3bb9fa01d9d94f797c9f9fc (diff)
downloadrust-5e5924b79915326d81db2aebfe73d2a20b8506f1.tar.gz
rust-5e5924b79915326d81db2aebfe73d2a20b8506f1.zip
Replace LetSyntaxTT with MacroRulesTT
The implementation of LetSyntaxTT was specialized to macro_rules! in various
ways. This gets rid of the false generality and simplifies the code.
Diffstat (limited to 'src/test/compile-fail-fulldeps')
-rw-r--r--src/test/compile-fail-fulldeps/plugin-MacroRulesTT.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/compile-fail-fulldeps/plugin-MacroRulesTT.rs b/src/test/compile-fail-fulldeps/plugin-MacroRulesTT.rs
new file mode 100644
index 00000000000..302a64c5ed3
--- /dev/null
+++ b/src/test/compile-fail-fulldeps/plugin-MacroRulesTT.rs
@@ -0,0 +1,21 @@
+// 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 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// aux-build:macro_crate_MacroRulesTT.rs
+// ignore-stage1
+// ignore-android
+// error-pattern: plugin tried to register a new MacroRulesTT
+
+#![feature(phase)]
+
+#[phase(plugin)]
+extern crate macro_crate_MacroRulesTT;
+
+fn main() { }