about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZHANGWENTAI <2092913428@qq.com>2022-03-22 22:37:17 +0800
committerZHANGWENTAI <2092913428@qq.com>2022-03-22 22:37:17 +0800
commit6e971a8bc28705018f735bc075cb79ddd495601f (patch)
tree0ab27789f1e9fc851b8323a7574f1cdb5a4e8779
parent3ea44938e21f0de8ae7d4f6399a8a30f97867c70 (diff)
downloadrust-6e971a8bc28705018f735bc075cb79ddd495601f.tar.gz
rust-6e971a8bc28705018f735bc075cb79ddd495601f.zip
update Termination trait docs
-rw-r--r--library/std/src/process.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/process.rs b/library/std/src/process.rs
index d88ab625371..498be0aa262 100644
--- a/library/std/src/process.rs
+++ b/library/std/src/process.rs
@@ -2030,6 +2030,10 @@ pub fn id() -> u32 {
 ///
 /// The default implementations are returning `libc::EXIT_SUCCESS` to indicate
 /// a successful execution. In case of a failure, `libc::EXIT_FAILURE` is returned.
+///
+/// For the reason that different runtimes have diffrent specificatons on the
+/// return value of the `main` function, this trait is likely to be available 
+/// only on standard library's runtime for type convenience.
 #[cfg_attr(not(test), lang = "termination")]
 #[unstable(feature = "termination_trait_lib", issue = "43301")]
 #[rustc_on_unimplemented(