Rollup merge of #95207 - ZHANGWENTAI:update_termination_doc, r=yaahc
update Termination trait docs this pr add some statement about intending to provide `Termination` trait only on standard library's runtime. from #93448 r? `@Lokathor`
This commit is contained in:
commit
2aca599325
1 changed files with 5 additions and 0 deletions
|
@ -2030,6 +2030,11 @@ 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.
|
||||
///
|
||||
/// Because different runtimes have different specifications on the return value
|
||||
/// of the `main` function, this trait is likely to be available only on
|
||||
/// standard library's runtime for convenience. Other runtimes are not required
|
||||
/// to provide similar functionality.
|
||||
#[cfg_attr(not(test), lang = "termination")]
|
||||
#[unstable(feature = "termination_trait_lib", issue = "43301")]
|
||||
#[rustc_on_unimplemented(
|
||||
|
|
Loading…
Add table
Reference in a new issue