@@ -283,17 +283,14 @@ libc_bitflags! {
283
283
/// Sends or requests out-of-band data on sockets that support this notion
284
284
/// (e.g., of type [`Stream`](enum.SockType.html)); the underlying protocol must also
285
285
/// support out-of-band data.
286
- #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
287
286
MSG_OOB ;
288
287
/// Peeks at an incoming message. The data is treated as unread and the next
289
288
/// [`recv()`](fn.recv.html)
290
289
/// or similar function shall still return this data.
291
- #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
292
290
MSG_PEEK ;
293
291
/// Receive operation blocks until the full amount of data can be
294
292
/// returned. The function may return smaller amount of data if a signal
295
293
/// is caught, an error or disconnect occurs.
296
- #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
297
294
MSG_WAITALL ;
298
295
/// Enables nonblocking operation; if the operation would block,
299
296
/// `EAGAIN` or `EWOULDBLOCK` is returned. This provides similar
@@ -305,10 +302,8 @@ libc_bitflags! {
305
302
/// which will affect all threads in
306
303
/// the calling process and as well as other processes that hold
307
304
/// file descriptors referring to the same open file description.
308
- #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
309
305
MSG_DONTWAIT ;
310
306
/// Receive flags: Control Data was discarded (buffer too small)
311
- #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
312
307
MSG_CTRUNC ;
313
308
/// For raw ([`Packet`](addr/enum.AddressFamily.html)), Internet datagram
314
309
/// (since Linux 2.4.27/2.6.8),
@@ -318,18 +313,15 @@ libc_bitflags! {
318
313
/// domain ([unix(7)](https://linux.die.net/man/7/unix)) sockets.
319
314
///
320
315
/// For use with Internet stream sockets, see [tcp(7)](https://linux.die.net/man/7/tcp).
321
- #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
322
316
MSG_TRUNC ;
323
317
/// Terminates a record (when this notion is supported, as for
324
318
/// sockets of type [`SeqPacket`](enum.SockType.html)).
325
- #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
326
319
MSG_EOR ;
327
320
/// This flag specifies that queued errors should be received from
328
321
/// the socket error queue. (For more details, see
329
322
/// [recvfrom(2)](https://linux.die.net/man/2/recvfrom))
330
323
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
331
324
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
332
- #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
333
325
MSG_ERRQUEUE ;
334
326
/// Set the `close-on-exec` flag for the file descriptor received via a UNIX domain
335
327
/// file descriptor using the `SCM_RIGHTS` operation (described in
@@ -345,7 +337,6 @@ libc_bitflags! {
345
337
target_os = "netbsd" ,
346
338
target_os = "openbsd" ) ) ]
347
339
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
348
- #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
349
340
MSG_CMSG_CLOEXEC ;
350
341
/// Requests not to send `SIGPIPE` errors when the other end breaks the connection.
351
342
/// (For more details, see [send(2)](https://linux.die.net/man/2/send)).
@@ -360,7 +351,6 @@ libc_bitflags! {
360
351
target_os = "openbsd" ,
361
352
target_os = "solaris" ) ) ]
362
353
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
363
- #[ allow( deprecated) ] // Suppress useless warnings from libc PR 2963
364
354
MSG_NOSIGNAL ;
365
355
}
366
356
}
@@ -1581,8 +1571,7 @@ pub struct MultiHeaders<S> {
1581
1571
addresses: Box <[ mem:: MaybeUninit <S >] >,
1582
1572
// while we are not using it directly - this is used to store control messages
1583
1573
// and we retain pointers to them inside items array
1584
- #[ allow( dead_code) ]
1585
- cmsg_buffers: Option <Box <[ u8 ] >>,
1574
+ _cmsg_buffers: Option <Box <[ u8 ] >>,
1586
1575
msg_controllen: usize ,
1587
1576
}
1588
1577
@@ -1630,7 +1619,7 @@ impl<S> MultiHeaders<S> {
1630
1619
Self {
1631
1620
items: items. into_boxed_slice( ) ,
1632
1621
addresses,
1633
- cmsg_buffers,
1622
+ _cmsg_buffers : cmsg_buffers,
1634
1623
msg_controllen,
1635
1624
}
1636
1625
}
0 commit comments