Skip to main content

exit_process

Function exit_process 

Source
pub(crate) fn exit_process(code: i32) -> !
Expand description

Exits the process by calling std::process::exit.

In CI, extra information will be printed to make failures easier to investigate.

If cfg!(test) is true, this will panic instead of exiting the process. Doing so avoids disturbing other tests in the process, and allows #[should_panic] to detect expected failures.