about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-08-16 16:35:10 -0700
committerGitHub <noreply@github.com>2016-08-16 16:35:10 -0700
commit1bf5fa3269ba32ae21e349ac675bdedcc7e99a66 (patch)
treea7e9ecbddb7b1661c5455da1edc9e5c2d94c1140 /src/tools
parent514d4cef24a3a463d7423bd75d17335547c6a99c (diff)
parent98c8e0a05dd7b1ecbbda28c1d01e05c1e41b1638 (diff)
downloadrust-1bf5fa3269ba32ae21e349ac675bdedcc7e99a66.tar.gz
rust-1bf5fa3269ba32ae21e349ac675bdedcc7e99a66.zip
Auto merge of #35538 - cgswords:libproc_macro, r=nrc
Kicking off libproc_macro

This PR introduces `libproc_macro`, which is currently quite bare-bones (just a few macro construction tools and an initial `quote!` macro).

This PR also introduces a few test cases for it, and an additional `shim` file (at `src/libsyntax/ext/proc_macro_shim.rs` to allow a facsimile usage of Macros 2.0 *today*!
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/tidy/src/cargo.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/tidy/src/cargo.rs b/src/tools/tidy/src/cargo.rs
index 48016721d52..4932fd5147a 100644
--- a/src/tools/tidy/src/cargo.rs
+++ b/src/tools/tidy/src/cargo.rs
@@ -88,6 +88,12 @@ fn verify(tomlfile: &Path, libfile: &Path, bad: &mut bool) {
             continue
         }
 
+        // We want the compiler to depend on the proc_macro crate so that it is built and
+        // included in the end, but we don't want to actually use it in the compiler.
+        if toml.contains("name = \"rustc_driver\"") && krate == "proc_macro" {
+            continue
+        }
+
         if !librs.contains(&format!("extern crate {}", krate)) {
             println!("{} doesn't have `extern crate {}`, but Cargo.toml \
                       depends on it", libfile.display(), krate);