about summary refs log tree commit diff
path: root/library/std/src/sys_common/process.rs
diff options
context:
space:
mode:
authorJohn Kugelman <john@kugelman.name>2021-10-30 23:37:32 -0400
committerJohn Kugelman <john@kugelman.name>2021-10-30 23:37:32 -0400
commita81d4b18ea7ee03733e983974400816684f78ebe (patch)
tree6ad8f58e2ef27985c4350a332d5e8ec77ee2b3f9 /library/std/src/sys_common/process.rs
parente249ce6b2345587d6e11052779c86adbad626dff (diff)
downloadrust-a81d4b18ea7ee03733e983974400816684f78ebe.tar.gz
rust-a81d4b18ea7ee03733e983974400816684f78ebe.zip
Add #[must_use] to remaining std functions (O-Z)
Diffstat (limited to 'library/std/src/sys_common/process.rs')
-rw-r--r--library/std/src/sys_common/process.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys_common/process.rs b/library/std/src/sys_common/process.rs
index 3d71219756a..2cd1e29f6c4 100644
--- a/library/std/src/sys_common/process.rs
+++ b/library/std/src/sys_common/process.rs
@@ -106,6 +106,7 @@ impl CommandEnv {
 /// This struct is created by
 /// [`Command::get_envs`][crate::process::Command::get_envs]. See its
 /// documentation for more.
+#[must_use = "iterators are lazy and do nothing unless consumed"]
 #[stable(feature = "command_access", since = "1.57.0")]
 #[derive(Debug)]
 pub struct CommandEnvs<'a> {