about summary refs log tree commit diff
path: root/src/libstd/process.rs
diff options
context:
space:
mode:
authorLeSeulArtichaut <leseulartichaut@gmail.com>2020-05-22 18:30:26 +0200
committerLeSeulArtichaut <leseulartichaut@gmail.com>2020-05-22 18:33:12 +0200
commit01630b26ddcf647a6e87a0d6a18055a7c516cdbc (patch)
treebfe8d5860629beab0a9e39a7987b038eaa47b068 /src/libstd/process.rs
parenta9ca1ec9280ca1e5020edd699917c3367a30a798 (diff)
downloadrust-01630b26ddcf647a6e87a0d6a18055a7c516cdbc.tar.gz
rust-01630b26ddcf647a6e87a0d6a18055a7c516cdbc.zip
Implement `Sync` for `process::Command on unix and vxworks
Diffstat (limited to 'src/libstd/process.rs')
-rw-r--r--src/libstd/process.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index f7e7a5abf8e..4ba1940fd0e 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -2105,8 +2105,8 @@ mod tests {
     }
 
     #[test]
-    fn test_command_implements_send() {
-        fn take_send_type<T: Send>(_: T) {}
-        take_send_type(Command::new(""))
+    fn test_command_implements_send_sync() {
+        fn take_send_sync_type<T: Send + Sync>(_: T) {}
+        take_send_sync_type(Command::new(""))
     }
 }