1
Fork 0

Stabilize Command::envs

Closes #38526
This commit is contained in:
Steven Fackler 2017-06-08 11:31:25 -04:00
parent bc9822af2e
commit 14c2f99f80
3 changed files with 1 additions and 6 deletions

View file

@ -34,7 +34,6 @@
#![feature(rustc_diagnostic_macros)] #![feature(rustc_diagnostic_macros)]
#![feature(slice_patterns)] #![feature(slice_patterns)]
#![feature(conservative_impl_trait)] #![feature(conservative_impl_trait)]
#![feature(command_envs)]
use rustc::dep_graph::WorkProduct; use rustc::dep_graph::WorkProduct;
use syntax_pos::symbol::Symbol; use syntax_pos::symbol::Symbol;

View file

@ -447,8 +447,6 @@ impl Command {
/// Basic usage: /// Basic usage:
/// ///
/// ```no_run /// ```no_run
/// #![feature(command_envs)]
///
/// use std::process::{Command, Stdio}; /// use std::process::{Command, Stdio};
/// use std::env; /// use std::env;
/// use std::collections::HashMap; /// use std::collections::HashMap;
@ -466,7 +464,7 @@ impl Command {
/// .spawn() /// .spawn()
/// .expect("printenv failed to start"); /// .expect("printenv failed to start");
/// ``` /// ```
#[unstable(feature = "command_envs", issue = "38526")] #[stable(feature = "command_envs", since = "1.19.0")]
pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Command pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Command
where I: IntoIterator<Item=(K, V)>, K: AsRef<OsStr>, V: AsRef<OsStr> where I: IntoIterator<Item=(K, V)>, K: AsRef<OsStr>, V: AsRef<OsStr>
{ {

View file

@ -10,8 +10,6 @@
// ignore-emscripten // ignore-emscripten
#![feature(command_envs)]
use std::process::Command; use std::process::Command;
use std::env; use std::env;
use std::collections::HashMap; use std::collections::HashMap;