Auto merge of #49574 - tmccombs:stabilize-getpid, r=sfackler

Stabilize `std::process::id()`

Fixes #44971
This commit is contained in:
bors 2018-04-02 05:48:33 +00:00
commit 73f08719ea
1 changed files with 1 additions and 2 deletions

View File

@ -1420,14 +1420,13 @@ pub fn abort() -> ! {
/// Basic usage:
///
/// ```no_run
/// #![feature(getpid)]
/// use std::process;
///
/// println!("My pid is {}", process::id());
/// ```
///
///
#[unstable(feature = "getpid", issue = "44971", reason = "recently added")]
#[stable(feature = "getpid", since = "1.27.0")]
pub fn id() -> u32 {
::sys::os::getpid()
}