Skip to content

Commit

Permalink
Rollup merge of #72123 - jsgf:stabilize-arg0, r=sfackler
Browse files Browse the repository at this point in the history
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: #66510
  • Loading branch information
RalfJung authored May 22, 2020
2 parents 9c34481 + ff9646c commit 53d0046
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/ext/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub trait CommandExt {
///
/// 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>;
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/sys/vxworks/ext/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub trait CommandExt {
///
/// 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>;
Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/command/command-argv0-debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/command/command-argv0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 53d0046

Please sign in to comment.