We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54435f7 commit 0873299Copy full SHA for 0873299
std/src/rt.rs
@@ -90,13 +90,14 @@ macro_rules! rtunwrap {
90
// `compiler/rustc_session/src/config/sigpipe.rs`.
91
#[cfg_attr(test, allow(dead_code))]
92
unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
93
+ #[cfg_attr(target_os = "teeos", allow(unused_unsafe))]
94
unsafe {
- sys::init(argc, argv, sigpipe);
95
+ sys::init(argc, argv, sigpipe)
96
+ };
97
- // Set up the current thread to give it the right name.
- let thread = Thread::new_main();
98
- thread::set_current(thread);
99
- }
+ // Set up the current thread to give it the right name.
+ let thread = Thread::new_main();
100
+ thread::set_current(thread);
101
}
102
103
// One-time runtime cleanup.
0 commit comments