@@ -217,6 +217,7 @@ use crate::{fmt, fs, str};
217
217
///
218
218
/// [`wait`]: Child::wait
219
219
#[ stable( feature = "process" , since = "1.0.0" ) ]
220
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "Child" ) ]
220
221
pub struct Child {
221
222
pub ( crate ) handle : imp:: Process ,
222
223
@@ -2115,6 +2116,7 @@ impl Child {
2115
2116
/// [`ErrorKind`]: io::ErrorKind
2116
2117
/// [`InvalidInput`]: io::ErrorKind::InvalidInput
2117
2118
#[ stable( feature = "process" , since = "1.0.0" ) ]
2119
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "child_kill" ) ]
2118
2120
pub fn kill ( & mut self ) -> io:: Result < ( ) > {
2119
2121
self . handle . kill ( )
2120
2122
}
@@ -2135,6 +2137,7 @@ impl Child {
2135
2137
/// ```
2136
2138
#[ must_use]
2137
2139
#[ stable( feature = "process_id" , since = "1.3.0" ) ]
2140
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "child_id" ) ]
2138
2141
pub fn id ( & self ) -> u32 {
2139
2142
self . handle . id ( )
2140
2143
}
@@ -2375,6 +2378,7 @@ pub fn exit(code: i32) -> ! {
2375
2378
/// [panic hook]: crate::panic::set_hook
2376
2379
#[ stable( feature = "process_abort" , since = "1.17.0" ) ]
2377
2380
#[ cold]
2381
+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "process_abort" ) ]
2378
2382
pub fn abort ( ) -> ! {
2379
2383
crate :: sys:: abort_internal ( ) ;
2380
2384
}
0 commit comments