Skip to content

Commit 87448a9

Browse files
committed
Add deprecated tag on __int128, __uint128, __int128_t, __uint128_t
1 parent 4159080 commit 87448a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/primitives.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,16 @@ cfg_if! {
129129
// [0]: https://github.com/rust-lang/rust/issues/54341
130130

131131
/// C `__int128` (a GCC extension that's part of many ABIs)
132+
#[deprecated(since = "1.0", note = "Use i128 instead.")]
132133
pub type __int128 = i128;
133134
/// C `unsigned __int128` (a GCC extension that's part of many ABIs)
135+
#[deprecated(since = "1.0", note = "Use u128 instead.")]
134136
pub type __uint128 = u128;
135137
/// C __int128_t (alternate name for [__int128][])
138+
#[deprecated(since = "1.0", note = "Use i128 instead.")]
136139
pub type __int128_t = i128;
137140
/// C __uint128_t (alternate name for [__uint128][])
141+
#[deprecated(since = "1.0", note = "Use u128 instead.")]
138142
pub type __uint128_t = u128;
139143

140144
// NOTE: if you add more platforms to here, you may need to cfg
@@ -181,8 +185,10 @@ cfg_if! {
181185
)
182186
))] {
183187
/// C `__int128_t`
188+
#[deprecated(since = "1.0", note = "Use i128 instead.")]
184189
pub type __int128_t = i128;
185190
/// C `__uint128_t`
191+
#[deprecated(since = "1.0", note = "Use ux128 instead.")]
186192
pub type __uint128_t = u128;
187193
}
188194
}

0 commit comments

Comments
 (0)