diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2023-09-26 23:56:38 -0400 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2023-10-05 18:21:47 -0400 |
| commit | d464b72970faf5769c6c02d52f21f8e26eb1727d (patch) | |
| tree | 1357c41f218e1ecc933587e8d654b1f5d7b6e647 /library/std/src/process.rs | |
| parent | cae0791da47bb01f16885eb233dcd66b0093a6e1 (diff) | |
| download | rust-d464b72970faf5769c6c02d52f21f8e26eb1727d.tar.gz rust-d464b72970faf5769c6c02d52f21f8e26eb1727d.zip | |
Add more diagnostic items for clippy
Diffstat (limited to 'library/std/src/process.rs')
| -rw-r--r-- | library/std/src/process.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/process.rs b/library/std/src/process.rs index e4ab1c17d96..e148635f581 100644 --- a/library/std/src/process.rs +++ b/library/std/src/process.rs @@ -526,6 +526,7 @@ impl fmt::Debug for ChildStderr { /// list_dir.status().expect("process failed to execute"); /// ``` #[stable(feature = "process", since = "1.0.0")] +#[cfg_attr(not(test), rustc_diagnostic_item = "Command")] pub struct Command { inner: imp::Command, } @@ -2196,6 +2197,7 @@ impl Child { /// process::exit(0x0100); /// ``` #[stable(feature = "rust1", since = "1.0.0")] +#[cfg_attr(not(test), rustc_diagnostic_item = "process_exit")] pub fn exit(code: i32) -> ! { crate::rt::cleanup(); crate::sys::os::exit(code) |
