mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-20 10:55:14 +00:00
sys::init is not unsafe on teeos
This commit is contained in:
parent
88fa119c77
commit
bbf303ed14
@ -90,13 +90,14 @@ macro_rules! rtunwrap {
|
||||
// `compiler/rustc_session/src/config/sigpipe.rs`.
|
||||
#[cfg_attr(test, allow(dead_code))]
|
||||
unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
|
||||
#[cfg_attr(target_os = "teeos", allow(unused_unsafe))]
|
||||
unsafe {
|
||||
sys::init(argc, argv, sigpipe);
|
||||
sys::init(argc, argv, sigpipe)
|
||||
};
|
||||
|
||||
// Set up the current thread to give it the right name.
|
||||
let thread = Thread::new_main();
|
||||
thread::set_current(thread);
|
||||
}
|
||||
// Set up the current thread to give it the right name.
|
||||
let thread = Thread::new_main();
|
||||
thread::set_current(thread);
|
||||
}
|
||||
|
||||
// One-time runtime cleanup.
|
||||
|
Loading…
Reference in New Issue
Block a user