mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
add some fix
Signed-off-by: ZHANGWENTAI <2092913428@qq.com>
This commit is contained in:
parent
161b01a9ac
commit
71e34231e0
@ -2031,9 +2031,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.
|
||||
/// 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…
Reference in New Issue
Block a user