1- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
1+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
22use backtrace:: { Backtrace , BacktraceFrame } ;
3- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
3+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
44use std:: os:: windows:: prelude:: AsRawHandle ;
55
6- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
6+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
77fn worker ( ) {
88 foo ( ) ;
99}
1010
11- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
11+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
1212fn foo ( ) {
1313 bar ( )
1414}
1515
16- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
16+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
1717fn bar ( ) {
1818 baz ( )
1919}
2020
21- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
21+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
2222fn baz ( ) {
2323 println ! ( "Hello from thread!" ) ;
2424 // Sleep for simple sync. Can't read thread that has finished running
@@ -28,7 +28,7 @@ fn baz() {
2828 }
2929}
3030
31- #[ cfg( all( windows, not( target_vendor = "uwp" ) ) ) ]
31+ #[ cfg( all( windows, not( target_vendor = "uwp" ) , feature = "std" ) ) ]
3232fn main ( ) {
3333 let thread = std:: thread:: spawn ( || {
3434 worker ( ) ;
@@ -53,5 +53,5 @@ fn main() {
5353
5454#[ cfg( not( all( windows, not( target_vendor = "uwp" ) ) ) ) ]
5555fn main ( ) {
56- println ! ( "This example is skipped on non Windows platforms" ) ;
56+ println ! ( "This example is skipped on non- Windows or no-std platforms" ) ;
5757}
0 commit comments