]> git.lizzy.rs Git - rust.git/commitdiff
Stabilize process_set_argv0 feature for Unix
authorJeremy Fitzhardinge <jsgf@fb.com>
Tue, 12 May 2020 00:19:25 +0000 (17:19 -0700)
committerJeremy Fitzhardinge <jsgf@fb.com>
Tue, 12 May 2020 16:34:23 +0000 (09:34 -0700)
This stabilizes process_set_argv0 targeting 1.45.0. It has been
useful in practice and seems useful as-is.

The equivalent feature could be implemented for Windows, but as far as I
know nobody has. That can be done separately.

Tracking issue: #66510

src/libstd/sys/unix/ext/process.rs
src/libstd/sys/vxworks/ext/process.rs
src/test/ui/command/command-argv0-debug.rs
src/test/ui/command/command-argv0.rs

index fa8670b4aecac0caa0c06b0da07f2989385b4322..048ce24d6ba889a8559297b84054c3526dc5aab4 100644 (file)
@@ -111,7 +111,7 @@ fn before_exec<F>(&mut self, f: F) -> &mut process::Command
     ///
     /// Set the first process argument, `argv[0]`, to something other than the
     /// default executable path.
-    #[unstable(feature = "process_set_argv0", issue = "66510")]
+    #[stable(feature = "process_set_argv0", since = "1.45.0")]
     fn arg0<S>(&mut self, arg: S) -> &mut process::Command
     where
         S: AsRef<OsStr>;
index 31e691dd1360b53df94ed31b3793d521f4efc812..c3710f4b9124d70a2e9326b9808efc2a92ad091f 100644 (file)
@@ -111,7 +111,7 @@ fn before_exec<F>(&mut self, f: F) -> &mut process::Command
     ///
     /// Set the first process argument, `argv[0]`, to something other than the
     /// default executable path.
-    #[unstable(feature = "process_set_argv0", issue = "66510")]
+    #[stable(feature = "process_set_argv0", since = "1.45.0")]
     fn arg0<S>(&mut self, arg: S) -> &mut process::Command
     where
         S: AsRef<OsStr>;
index 133d2ada2b26379b22540faaf9150ec4bb176329..cb948a91c1054babcbbabe8e3b793cfbe92a4246 100644 (file)
@@ -4,8 +4,6 @@
 // ignore-cloudabi no processes
 // ignore-emscripten no processes
 // ignore-sgx no processes
-#![feature(process_set_argv0)]
-
 use std::os::unix::process::CommandExt;
 use std::process::Command;
 
index 56a9fb4d39125d9855543368fb11f603fe18e2a4..e3394e0567cb857be3ffff16c9e7f2630a1a9ca7 100644 (file)
@@ -4,8 +4,6 @@
 // ignore-cloudabi no processes
 // ignore-emscripten no processes
 // ignore-sgx no processes
-#![feature(process_set_argv0)]
-
 use std::env;
 use std::os::unix::process::CommandExt;
 use std::process::Command;