Skip to content

Commit 60da93f

Browse files
committed
Don't mark time_t as deprecated on musl in rustc build
1 parent aead99a commit 60da93f

File tree

1 file changed

+8
-5
lines changed
  • src/unix/linux_like/linux/musl

1 file changed

+8
-5
lines changed

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
pub type pthread_t = *mut ::c_void;
22
pub type clock_t = c_long;
3-
#[deprecated(
4-
since = "0.2.80",
5-
note = "This type is changed to 64-bit in musl 1.2.0, \
6-
we'll follow that change in the future release. \
7-
See #1848 for more info."
3+
#[cfg_attr(
4+
not(feature = "rustc-dep-of-std"),
5+
deprecated(
6+
since = "0.2.80",
7+
note = "This type is changed to 64-bit in musl 1.2.0, \
8+
we'll follow that change in the future release. \
9+
See #1848 for more info."
10+
)
811
)]
912
pub type time_t = c_long;
1013
pub type suseconds_t = c_long;

0 commit comments

Comments
 (0)