Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 51769b3

Browse files
authoredJul 27, 2019
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
2 parents 513ab54 + 98f29f5 commit 51769b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/librustc_lexer/Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ edition = "2018"
77
# Note that this crate purposefully does not depend on other rustc crates
88
[dependencies]
99
unicode-xid = { version = "0.1.0", optional = true }
10+
11+
# Note: do not remove this blank `[lib]` section.
12+
# This will be used when publishing this crate as `rustc-ap-rustc_lexer`.
13+
[lib]
14+
doctest = false
15+
name = "rustc_lexer"

0 commit comments

Comments
 (0)
Please sign in to comment.