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 15
15
16
16
use super :: c;
17
17
use super :: fd:: { AsRawFd , BorrowedFd , FromRawFd , RawFd } ;
18
- #[ cfg( feature = "runtime" ) ]
18
+ #[ cfg( any ( feature = "event" , feature = " runtime") ) ]
19
19
use super :: io:: errno:: try_decode_error;
20
20
#[ cfg( target_pointer_width = "64" ) ]
21
21
use super :: io:: errno:: try_decode_u64;
@@ -874,7 +874,7 @@ pub(super) unsafe fn ret(raw: RetReg<R0>) -> io::Result<()> {
874
874
///
875
875
/// The caller must ensure that this is the return value of a syscall which
876
876
/// doesn't return on success.
877
- #[ cfg( feature = "runtime" ) ]
877
+ #[ cfg( any ( feature = "event" , feature = " runtime") ) ]
878
878
#[ inline]
879
879
pub ( super ) unsafe fn ret_error ( raw : RetReg < R0 > ) -> io:: Errno {
880
880
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>(
236
236
/// # Safety
237
237
///
238
238
/// This must only be used with syscalls which do not return on success.
239
- #[ cfg( feature = "runtime" ) ]
239
+ #[ cfg( any ( feature = "event" , feature = " runtime") ) ]
240
240
#[ inline]
241
241
pub ( in crate :: backend) unsafe fn try_decode_error < Num : RetNumber > ( raw : RetReg < Num > ) -> io:: Errno {
242
242
debug_assert ! ( raw. is_in_range( -4095 ..0 ) ) ;
Original file line number Diff line number Diff line change
1
+ #[ cfg( feature = "pipe" ) ]
1
2
#[ test]
2
3
fn test_empty_buffers ( ) {
3
4
use rustix:: fd:: AsFd ;
You can’t perform that action at this time.
0 commit comments