1
- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
1
+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
2
2
use backtrace:: { Backtrace , BacktraceFrame } ;
3
- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
3
+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
4
4
use std:: os:: windows:: prelude:: AsRawHandle ;
5
5
6
- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
6
+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
7
7
fn worker ( ) {
8
8
foo ( ) ;
9
9
}
10
10
11
- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
11
+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
12
12
fn foo ( ) {
13
13
bar ( )
14
14
}
15
15
16
- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
16
+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
17
17
fn bar ( ) {
18
18
baz ( )
19
19
}
20
20
21
- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
21
+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
22
22
fn baz ( ) {
23
23
println ! ( "Hello from thread!" ) ;
24
24
// Sleep for simple sync. Can't read thread that has finished running
@@ -28,7 +28,7 @@ fn baz() {
28
28
}
29
29
}
30
30
31
- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
31
+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
32
32
fn main ( ) {
33
33
let thread = std:: thread:: spawn ( || {
34
34
worker ( ) ;
@@ -53,5 +53,5 @@ fn main() {
53
53
54
54
#[ cfg( not( all( windows, not( target_vendor = "uwp" ) ) ) ) ]
55
55
fn main ( ) {
56
- println ! ( "This example is skipped on non Windows platforms" ) ;
56
+ println ! ( "This example is skipped on non- Windows or no-std platforms" ) ;
57
57
}
0 commit comments