about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-04-02 05:48:33 +0000
committerbors <bors@rust-lang.org>2018-04-02 05:48:33 +0000
commit73f08719ea4cad8b8e9461bfb6d3b0ae088d2795 (patch)
tree1237ff23d6e94d34fd6e7034a5e3cd257d096fe8 /src/libstd
parentacad4cc9812b1f5e7080e9ca98818088694d3327 (diff)
parentd4f5e89ee0e1ef0025a3e090f1e06af8272e97bc (diff)
downloadrust-73f08719ea4cad8b8e9461bfb6d3b0ae088d2795.tar.gz
rust-73f08719ea4cad8b8e9461bfb6d3b0ae088d2795.zip
Auto merge of #49574 - tmccombs:stabilize-getpid, r=sfackler
Stabilize `std::process::id()`

Fixes #44971
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/process.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index 92e9f48f7eb..b463a6d88fe 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -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()
 }