Skip to content

Commit ef7ecda

Browse files
sfacklerbrson
authored andcommitted
Stabilize Command::envs
Closes rust-lang#38526
1 parent 311b32b commit ef7ecda

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

Diff for: src/librustc_trans/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#![feature(slice_patterns)]
3636
#![feature(unicode)]
3737
#![feature(conservative_impl_trait)]
38-
#![feature(command_envs)]
3938

4039
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
4140
#![cfg_attr(stage0, feature(rustc_private))]

Diff for: src/libstd/process.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,6 @@ impl Command {
440440
/// Basic usage:
441441
///
442442
/// ```no_run
443-
/// #![feature(command_envs)]
444-
///
445443
/// use std::process::{Command, Stdio};
446444
/// use std::env;
447445
/// use std::collections::HashMap;
@@ -459,7 +457,7 @@ impl Command {
459457
/// .spawn()
460458
/// .expect("printenv failed to start");
461459
/// ```
462-
#[unstable(feature = "command_envs", issue = "38526")]
460+
#[stable(feature = "command_envs", since = "1.19.0")]
463461
pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Command
464462
where I: IntoIterator<Item=(K, V)>, K: AsRef<OsStr>, V: AsRef<OsStr>
465463
{

Diff for: src/test/run-pass/process-envs.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// ignore-emscripten
1212

13-
#![feature(command_envs)]
14-
1513
use std::process::Command;
1614
use std::env;
1715
use std::collections::HashMap;

0 commit comments

Comments
 (0)