From 13b41000ea7b6fdcc399a817ec4e3e3b9b1281a3 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sat, 27 Jul 2019 17:21:42 +0900 Subject: [PATCH 1/2] Add lib section to rustc_lexer's Cargo.toml --- src/librustc_lexer/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/librustc_lexer/Cargo.toml b/src/librustc_lexer/Cargo.toml index 9c0230e83221f..9dcd39ee03965 100644 --- a/src/librustc_lexer/Cargo.toml +++ b/src/librustc_lexer/Cargo.toml @@ -7,3 +7,7 @@ edition = "2018" # Note that this crate purposefully does not depend on other rustc crates [dependencies] unicode-xid = { version = "0.1.0", optional = true } + +[lib] +doctest = false +name = "rustc_lexer" From 98f29f5e38bc385f661fc81d67f980bc0e91d6e4 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sat, 27 Jul 2019 22:10:09 +0900 Subject: [PATCH 2/2] Add comment --- src/librustc_lexer/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_lexer/Cargo.toml b/src/librustc_lexer/Cargo.toml index 9dcd39ee03965..0dbcda618ecac 100644 --- a/src/librustc_lexer/Cargo.toml +++ b/src/librustc_lexer/Cargo.toml @@ -8,6 +8,8 @@ edition = "2018" [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"