diff options
Diffstat (limited to 'library/std/src/sys_common')
| -rw-r--r-- | library/std/src/sys_common/rt.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/std/src/sys_common/rt.rs b/library/std/src/sys_common/rt.rs index 5906b4e3e0e..c0c4a63cde9 100644 --- a/library/std/src/sys_common/rt.rs +++ b/library/std/src/sys_common/rt.rs @@ -5,6 +5,7 @@ use crate::thread::Thread; // One-time runtime initialization. // Runs before `main`. +// NOTE: this is not guaranteed to run, for example when Rust code is called externally. #[cfg_attr(test, allow(dead_code))] pub fn init(argc: isize, argv: *const *const u8) { static INIT: Once = Once::new(); @@ -23,8 +24,8 @@ pub fn init(argc: isize, argv: *const *const u8) { } // One-time runtime cleanup. -// Runs after `main` or at program exit. Note however that this is not guaranteed to run, -// for example when the program aborts. +// Runs after `main` or at program exit. +// NOTE: this is not guaranteed to run, for example when the program aborts. #[cfg_attr(test, allow(dead_code))] pub fn cleanup() { static CLEANUP: Once = Once::new(); |
