From 60da93f9cc31439bce9295e428552aeeacfe48fc Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Mon, 1 Feb 2021 22:01:47 +0000 Subject: [PATCH] Don't mark time_t as deprecated on musl in rustc build --- src/unix/linux_like/linux/musl/mod.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/unix/linux_like/linux/musl/mod.rs b/src/unix/linux_like/linux/musl/mod.rs index 8aaa41b7045f2..de30fe9a7f9fb 100644 --- a/src/unix/linux_like/linux/musl/mod.rs +++ b/src/unix/linux_like/linux/musl/mod.rs @@ -1,10 +1,13 @@ pub type pthread_t = *mut ::c_void; pub type clock_t = c_long; -#[deprecated( - since = "0.2.80", - note = "This type is changed to 64-bit in musl 1.2.0, \ - we'll follow that change in the future release. \ - See #1848 for more info." +#[cfg_attr( + not(feature = "rustc-dep-of-std"), + deprecated( + since = "0.2.80", + note = "This type is changed to 64-bit in musl 1.2.0, \ + we'll follow that change in the future release. \ + See #1848 for more info." + ) )] pub type time_t = c_long; pub type suseconds_t = c_long;