File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1515
1616use super :: c;
1717use super :: fd:: { AsRawFd , BorrowedFd , FromRawFd , RawFd } ;
18- #[ cfg( feature = "runtime" ) ]
18+ #[ cfg( any ( feature = "event" , feature = " runtime") ) ]
1919use super :: io:: errno:: try_decode_error;
2020#[ cfg( target_pointer_width = "64" ) ]
2121use super :: io:: errno:: try_decode_u64;
@@ -874,7 +874,7 @@ pub(super) unsafe fn ret(raw: RetReg<R0>) -> io::Result<()> {
874874///
875875/// The caller must ensure that this is the return value of a syscall which
876876/// doesn't return on success.
877- #[ cfg( feature = "runtime" ) ]
877+ #[ cfg( any ( feature = "event" , feature = " runtime") ) ]
878878#[ inline]
879879pub ( super ) unsafe fn ret_error ( raw : RetReg < R0 > ) -> io:: Errno {
880880 try_decode_error ( raw)
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ pub(in crate::backend) unsafe fn try_decode_void<Num: RetNumber>(
236236/// # Safety
237237///
238238/// This must only be used with syscalls which do not return on success.
239- #[ cfg( feature = "runtime" ) ]
239+ #[ cfg( any ( feature = "event" , feature = " runtime") ) ]
240240#[ inline]
241241pub ( in crate :: backend) unsafe fn try_decode_error < Num : RetNumber > ( raw : RetReg < Num > ) -> io:: Errno {
242242 debug_assert ! ( raw. is_in_range( -4095 ..0 ) ) ;
Original file line number Diff line number Diff line change 1+ #[ cfg( feature = "pipe" ) ]
12#[ test]
23fn test_empty_buffers ( ) {
34 use rustix:: fd:: AsFd ;
You can’t perform that action at this time.
0 commit comments