@@ -217,6 +217,7 @@ use crate::{fmt, fs, str};
217217///
218218/// [`wait`]: Child::wait
219219#[ stable( feature = "process" , since = "1.0.0" ) ]
220+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "Child" ) ]
220221pub struct Child {
221222 pub ( crate ) handle : imp:: Process ,
222223
@@ -2115,6 +2116,7 @@ impl Child {
21152116 /// [`ErrorKind`]: io::ErrorKind
21162117 /// [`InvalidInput`]: io::ErrorKind::InvalidInput
21172118 #[ stable( feature = "process" , since = "1.0.0" ) ]
2119+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "child_kill" ) ]
21182120 pub fn kill ( & mut self ) -> io:: Result < ( ) > {
21192121 self . handle . kill ( )
21202122 }
@@ -2135,6 +2137,7 @@ impl Child {
21352137 /// ```
21362138 #[ must_use]
21372139 #[ stable( feature = "process_id" , since = "1.3.0" ) ]
2140+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "child_id" ) ]
21382141 pub fn id ( & self ) -> u32 {
21392142 self . handle . id ( )
21402143 }
@@ -2375,6 +2378,7 @@ pub fn exit(code: i32) -> ! {
23752378/// [panic hook]: crate::panic::set_hook
23762379#[ stable( feature = "process_abort" , since = "1.17.0" ) ]
23772380#[ cold]
2381+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "process_abort" ) ]
23782382pub fn abort ( ) -> ! {
23792383 crate :: sys:: abort_internal ( ) ;
23802384}
0 commit comments