summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-05-29 13:20:16 +0200
committergnzlbg <gonzalobg88@gmail.com>2019-05-29 13:20:16 +0200
commitafa3edf86c70ca70a4ca4514f1953d130fb3e870 (patch)
tree7b40e39bc00823575cf555b5184af0c33dcf793c
parenta0865265d48d64a0f42a7aeca18b292d051423ee (diff)
downloadrust-libc-afa3edf86c70ca70a4ca4514f1953d130fb3e870.tar.gz
Deprecates fixed-width integer type aliases
Closes #1304 .
-rw-r--r--src/fixed_width_ints.rs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/fixed_width_ints.rs b/src/fixed_width_ints.rs
index 9b5a13c011..0c25d28b36 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;