about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2020-04-10 22:42:19 +0200
committerMark Rousskov <mark.simulacrum@gmail.com>2020-04-11 11:07:04 -0400
commit45ede927fb01ea7928267cc4caa2db75fd3be318 (patch)
tree526306c82224b1ce72216986d036b5fd77375c14 /src/librustc_data_structures
parent1f3b65921effc08ea1171bdbbcad70765ecacb22 (diff)
downloadrust-45ede927fb01ea7928267cc4caa2db75fd3be318.tar.gz
rust-45ede927fb01ea7928267cc4caa2db75fd3be318.zip
Depend on libc from crates.io
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/Cargo.toml1
-rw-r--r--src/librustc_data_structures/lib.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_data_structures/Cargo.toml b/src/librustc_data_structures/Cargo.toml
index c5707bd24f7..6d7022acc78 100644
--- a/src/librustc_data_structures/Cargo.toml
+++ b/src/librustc_data_structures/Cargo.toml
@@ -27,6 +27,7 @@ smallvec = { version = "1.0", features = ["union", "may_dangle"] }
 rustc_index = { path = "../librustc_index", package = "rustc_index" }
 bitflags = "1.2.1"
 measureme = "0.7.1"
+libc = "0.2"
 
 [dependencies.parking_lot]
 version = "0.10"
diff --git a/src/librustc_data_structures/lib.rs b/src/librustc_data_structures/lib.rs
index ba82e58d7a9..d0180911567 100644
--- a/src/librustc_data_structures/lib.rs
+++ b/src/librustc_data_structures/lib.rs
@@ -26,8 +26,6 @@
 
 #[macro_use]
 extern crate log;
-#[cfg(unix)]
-extern crate libc;
 #[macro_use]
 extern crate cfg_if;