about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-27 17:40:52 +0200
committerGitHub <noreply@github.com>2019-07-27 17:40:52 +0200
commit51769b3012b3f2819bbcde05a574e6f3015b7d37 (patch)
tree3bda6c31bb326cb96e871a1d751a0d9756e8a7b6
parent513ab54360d2e8cd608c9f62855699e678659e7d (diff)
parent98f29f5e38bc385f661fc81d67f980bc0e91d6e4 (diff)
Rollup merge of #63036 - topecongiro:add-lib-section, r=matklad
Add lib section to rustc_lexer's Cargo.toml

This is required to fix the rustc-ap-syntax build error in the recent version. The error could also be fixed on the [rustc-auto-publish](https://github.com/alexcrichton/rustc-auto-publish) side by manually adding `[lib]` section if one does not exist. The latter approach, however, may have a surprising side effect, so I am opting for a simpler solution for now.

r? @alexcrichton
-rw-r--r--src/librustc_lexer/Cargo.toml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_lexer/Cargo.toml b/src/librustc_lexer/Cargo.toml
index 9c0230e8322..0dbcda618ec 100644
--- a/src/librustc_lexer/Cargo.toml
+++ b/src/librustc_lexer/Cargo.toml
@@ -7,3 +7,9 @@ edition = "2018"
 # Note that this crate purposefully does not depend on other rustc crates
 [dependencies]
 unicode-xid = { version = "0.1.0", optional = true }
+
+# Note: do not remove this blank `[lib]` section.
+# This will be used when publishing this crate as `rustc-ap-rustc_lexer`.
+[lib]
+doctest = false
+name = "rustc_lexer"