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.
1 parent ff8ed14 commit 4ecf505Copy full SHA for 4ecf505
library/std/src/sys/thread/unsupported.rs
@@ -4,6 +4,12 @@ use crate::num::NonZero;
4
use crate::thread::ThreadInit;
5
use crate::time::Duration;
6
7
+// Silence dead code warnings for the otherwise unused ThreadInit::init() call.
8
+#[expect(dead_code)]
9
+fn dummy_init_call(init: Box<ThreadInit>) {
10
+ drop(init.init());
11
+}
12
+
13
pub struct Thread(!);
14
15
pub const DEFAULT_MIN_STACK_SIZE: usize = 64 * 1024;
0 commit comments