Skip to content

Commit ff9646c

Browse files
committed
Stabilize process_set_argv0 feature for Unix
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: rust-lang#66510
1 parent 99cb9cc commit ff9646c

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

src/libstd/sys/unix/ext/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub trait CommandExt {
111111
///
112112
/// Set the first process argument, `argv[0]`, to something other than the
113113
/// default executable path.
114-
#[unstable(feature = "process_set_argv0", issue = "66510")]
114+
#[stable(feature = "process_set_argv0", since = "1.45.0")]
115115
fn arg0<S>(&mut self, arg: S) -> &mut process::Command
116116
where
117117
S: AsRef<OsStr>;

src/libstd/sys/vxworks/ext/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub trait CommandExt {
111111
///
112112
/// Set the first process argument, `argv[0]`, to something other than the
113113
/// default executable path.
114-
#[unstable(feature = "process_set_argv0", issue = "66510")]
114+
#[stable(feature = "process_set_argv0", since = "1.45.0")]
115115
fn arg0<S>(&mut self, arg: S) -> &mut process::Command
116116
where
117117
S: AsRef<OsStr>;

src/test/ui/command/command-argv0-debug.rs

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// ignore-cloudabi no processes
55
// ignore-emscripten no processes
66
// ignore-sgx no processes
7-
#![feature(process_set_argv0)]
8-
97
use std::os::unix::process::CommandExt;
108
use std::process::Command;
119

src/test/ui/command/command-argv0.rs

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// ignore-cloudabi no processes
55
// ignore-emscripten no processes
66
// ignore-sgx no processes
7-
#![feature(process_set_argv0)]
8-
97
use std::env;
108
use std::os::unix::process::CommandExt;
119
use std::process::Command;

0 commit comments

Comments
 (0)