@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user