refactor(pal/hermit): return `!` to satisfy rust-analyzer · model-checking/verify-rust-std@c337019

Original file line numberDiff line numberDiff line change

@@ -49,9 +49,7 @@ pub fn unsupported_err() -> crate::io::Error {

4949

}

5050
5151

pub fn abort_internal() -> ! {

52-

unsafe {

53-

hermit_abi::abort();

54-

}

52+

unsafe { hermit_abi::abort() }

5553

}

5654
5755

pub fn hashmap_random_keys() -> (u64, u64) {

@@ -104,7 +102,7 @@ pub unsafe extern "C" fn runtime_entry(

104102

let result = main(argc as isize, argv);

105103
106104

crate::sys::thread_local::destructors::run();

107-

hermit_abi::exit(result);

105+

hermit_abi::exit(result)

108106

}

109107
110108

#[inline]