From afa3edf86c70ca70a4ca4514f1953d130fb3e870 Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Wed, 29 May 2019 13:20:16 +0200 Subject: [PATCH] Deprecates fixed-width integer type aliases Closes #1304 . --- src/fixed_width_ints.rs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/fixed_width_ints.rs b/src/fixed_width_ints.rs index 9b5a13c011934..0c25d28b366f8 100644 --- a/src/fixed_width_ints.rs +++ b/src/fixed_width_ints.rs @@ -2,11 +2,43 @@ //! //! These aliases are deprecated: use the Rust types instead. +#[deprecated( + since = "0.2.55", + note = "Use i8 instead." +)] pub type int8_t = i8; +#[deprecated( + since = "0.2.55", + note = "Use i16 instead." +)] pub type int16_t = i16; +#[deprecated( + since = "0.2.55", + note = "Use i32 instead." +)] pub type int32_t = i32; +#[deprecated( + since = "0.2.55", + note = "Use i64 instead." +)] pub type int64_t = i64; +#[deprecated( + since = "0.2.55", + note = "Use u8 instead." +)] pub type uint8_t = u8; +#[deprecated( + since = "0.2.55", + note = "Use u16 instead." +)] pub type uint16_t = u16; +#[deprecated( + since = "0.2.55", + note = "Use u32 instead." +)] pub type uint32_t = u32; +#[deprecated( + since = "0.2.55", + note = "Use u64 instead." +)] pub type uint64_t = u64;