8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3492a6b + 0873299 commit d7aa7cfCopy full SHA for d7aa7cf
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