Skip to content

Commit d4f5e89

Browse files
committed
Stabilize std::process::id()
Fixes #44971
1 parent 06fa27d commit d4f5e89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/process.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1420,14 +1420,13 @@ pub fn abort() -> ! {
14201420
/// Basic usage:
14211421
///
14221422
/// ```no_run
1423-
/// #![feature(getpid)]
14241423
/// use std::process;
14251424
///
14261425
/// println!("My pid is {}", process::id());
14271426
/// ```
14281427
///
14291428
///
1430-
#[unstable(feature = "getpid", issue = "44971", reason = "recently added")]
1429+
#[stable(feature = "getpid", since = "1.27.0")]
14311430
pub fn id() -> u32 {
14321431
::sys::os::getpid()
14331432
}

0 commit comments

Comments
 (0)