We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 035a717 commit b506127Copy full SHA for b506127
library/std/src/process.rs
@@ -2030,6 +2030,11 @@ pub fn id() -> u32 {
2030
///
2031
/// The default implementations are returning `libc::EXIT_SUCCESS` to indicate
2032
/// a successful execution. In case of a failure, `libc::EXIT_FAILURE` is returned.
2033
+///
2034
+/// Note that this trait is supposed to be used in standard library runtime,
2035
+/// where returned value from main function is considered meaningful.
2036
+/// On the other hand, implementing Termination in no-std environment, where
2037
+/// there is no notion of `exit status`, has no effect or may possibly cause bugs.
2038
#[cfg_attr(not(test), lang = "termination")]
2039
#[unstable(feature = "termination_trait_lib", issue = "43301")]
2040
#[rustc_on_unimplemented(
0 commit comments