mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
refactor(pal/hermit): return ! to satisfy rust-analyzer
This silences this rust-analyzer-specific error: `expected !, found ()` Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
This commit is contained in:
@@ -49,9 +49,7 @@ pub fn unsupported_err() -> crate::io::Error {
|
||||
}
|
||||
|
||||
pub fn abort_internal() -> ! {
|
||||
unsafe {
|
||||
hermit_abi::abort();
|
||||
}
|
||||
unsafe { hermit_abi::abort() }
|
||||
}
|
||||
|
||||
pub fn hashmap_random_keys() -> (u64, u64) {
|
||||
@@ -104,7 +102,7 @@ pub unsafe fn cleanup() {}
|
||||
let result = main(argc as isize, argv);
|
||||
|
||||
crate::sys::thread_local::destructors::run();
|
||||
hermit_abi::exit(result);
|
||||
hermit_abi::exit(result)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
@@ -190,9 +190,7 @@ pub fn home_dir() -> Option<PathBuf> {
|
||||
}
|
||||
|
||||
pub fn exit(code: i32) -> ! {
|
||||
unsafe {
|
||||
hermit_abi::exit(code);
|
||||
}
|
||||
unsafe { hermit_abi::exit(code) }
|
||||
}
|
||||
|
||||
pub fn getpid() -> u32 {
|
||||
|
||||
Reference in New Issue
Block a user