Skip to content

Commit 6e971a8

Browse files
committed
update Termination trait docs
1 parent 3ea4493 commit 6e971a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/std/src/process.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2030,6 +2030,10 @@ pub fn id() -> u32 {
20302030
///
20312031
/// The default implementations are returning `libc::EXIT_SUCCESS` to indicate
20322032
/// a successful execution. In case of a failure, `libc::EXIT_FAILURE` is returned.
2033+
///
2034+
/// For the reason that different runtimes have diffrent specificatons on the
2035+
/// return value of the `main` function, this trait is likely to be available
2036+
/// only on standard library's runtime for type convenience.
20332037
#[cfg_attr(not(test), lang = "termination")]
20342038
#[unstable(feature = "termination_trait_lib", issue = "43301")]
20352039
#[rustc_on_unimplemented(

0 commit comments

Comments
 (0)