about summary refs log tree commit diff
path: root/src/libstd/process.rs
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-01-30 17:10:53 +0800
committerGitHub <noreply@github.com>2018-01-30 17:10:53 +0800
commit4dbfc8ddbfd091aefa4b0af674b6625378ce34fe (patch)
treebf5724b80636bc2a853c3178fc8790ecb83fc655 /src/libstd/process.rs
parentf06a391a40dca2adc4ba15385ec27ecd949ed103 (diff)
parent077d3434aa8a2a3064afcc1c9406a49d0acf0a8d (diff)
downloadrust-4dbfc8ddbfd091aefa4b0af674b6625378ce34fe.tar.gz
rust-4dbfc8ddbfd091aefa4b0af674b6625378ce34fe.zip
Rollup merge of #47760 - little-dude:master, r=alexcrichton
implement Send for process::Command on unix

closes https://github.com/rust-lang/rust/issues/47751
Diffstat (limited to 'src/libstd/process.rs')
-rw-r--r--src/libstd/process.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index 5c66ac6ddde..9b2f815b713 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -1843,4 +1843,10 @@ mod tests {
         }
         assert!(events > 0);
     }
+
+    #[test]
+    fn test_command_implements_send() {
+        fn take_send_type<T: Send>(_: T) {}
+        take_send_type(Command::new(""))
+    }
 }