Skip to content

Commit a9b9fd9

Browse files
brendanzabalexcrichton
authored andcommitted
---
yaml --- r: 121306 b: refs/heads/dist-snap c: 779ca97 h: refs/heads/master v: v3
1 parent ceb34cd commit a9b9fd9

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: ff9f92ce5224f5e27b8dc39ffc02eb9481f7cff1
9+
refs/heads/dist-snap: 779ca97525176bc1d764f1b88906363290fcf851
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libcore/mem.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -173,84 +173,84 @@ pub unsafe fn move_val_init<T>(dst: &mut T, src: T) {
173173
///
174174
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
175175
#[inline]
176-
#[stable]
176+
#[deprecated = "use `Int::to_little_endian` instead"]
177177
pub fn to_le16(x: u16) -> u16 { x.to_little_endian() }
178178

179179
/// Convert an u32 to little endian from the target's endianness.
180180
///
181181
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
182182
#[inline]
183-
#[stable]
183+
#[deprecated = "use `Int::to_little_endian` instead"]
184184
pub fn to_le32(x: u32) -> u32 { x.to_little_endian() }
185185

186186
/// Convert an u64 to little endian from the target's endianness.
187187
///
188188
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
189189
#[inline]
190-
#[stable]
190+
#[deprecated = "use `Int::to_little_endian` instead"]
191191
pub fn to_le64(x: u64) -> u64 { x.to_little_endian() }
192192

193193
/// Convert an u16 to big endian from the target's endianness.
194194
///
195195
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
196196
#[inline]
197-
#[stable]
197+
#[deprecated = "use `Int::to_big_endian` instead"]
198198
pub fn to_be16(x: u16) -> u16 { x.to_big_endian() }
199199

200200
/// Convert an u32 to big endian from the target's endianness.
201201
///
202202
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
203203
#[inline]
204-
#[stable]
204+
#[deprecated = "use `Int::to_big_endian` instead"]
205205
pub fn to_be32(x: u32) -> u32 { x.to_big_endian() }
206206

207207
/// Convert an u64 to big endian from the target's endianness.
208208
///
209209
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
210210
#[inline]
211-
#[stable]
211+
#[deprecated = "use `Int::to_big_endian` instead"]
212212
pub fn to_be64(x: u64) -> u64 { x.to_big_endian() }
213213

214214
/// Convert an u16 from little endian to the target's endianness.
215215
///
216216
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
217217
#[inline]
218-
#[stable]
218+
#[deprecated = "use `Int::from_little_endian` instead"]
219219
pub fn from_le16(x: u16) -> u16 { Int::from_little_endian(x) }
220220

221221
/// Convert an u32 from little endian to the target's endianness.
222222
///
223223
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
224224
#[inline]
225-
#[stable]
225+
#[deprecated = "use `Int::from_little_endian` instead"]
226226
pub fn from_le32(x: u32) -> u32 { Int::from_little_endian(x) }
227227

228228
/// Convert an u64 from little endian to the target's endianness.
229229
///
230230
/// On little endian, this is a no-op. On big endian, the bytes are swapped.
231231
#[inline]
232-
#[stable]
232+
#[deprecated = "use `Int::from_little_endian` instead"]
233233
pub fn from_le64(x: u64) -> u64 { Int::from_little_endian(x) }
234234

235235
/// Convert an u16 from big endian to the target's endianness.
236236
///
237237
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
238238
#[inline]
239-
#[stable]
239+
#[deprecated = "use `Int::from_big_endian` instead"]
240240
pub fn from_be16(x: u16) -> u16 { Int::from_big_endian(x) }
241241

242242
/// Convert an u32 from big endian to the target's endianness.
243243
///
244244
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
245245
#[inline]
246-
#[stable]
246+
#[deprecated = "use `Int::from_big_endian` instead"]
247247
pub fn from_be32(x: u32) -> u32 { Int::from_big_endian(x) }
248248

249249
/// Convert an u64 from big endian to the target's endianness.
250250
///
251251
/// On big endian, this is a no-op. On little endian, the bytes are swapped.
252252
#[inline]
253-
#[stable]
253+
#[deprecated = "use `Int::from_big_endian` instead"]
254254
pub fn from_be64(x: u64) -> u64 { Int::from_big_endian(x) }
255255

256256
/// Swap the values at two mutable locations of the same type, without

0 commit comments

Comments
 (0)