File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,12 @@ pub(crate) mod naked;
37
37
#[ cfg( all( feature = "unwinding" , not( target_arch = "arm" ) ) ) ]
38
38
#[ allow( unused_extern_crates) ]
39
39
extern crate unwinding;
40
- #[ cfg( all ( feature = "unwinding" , target_arch = "arm" ) ) ]
40
+ #[ cfg( any ( not ( feature = "unwinding" ) , target_arch = "arm" ) ) ]
41
41
mod unwind_unimplemented;
42
+ // If we don't have "unwinding", provide stub functions for unwinding and
43
+ // panicking.
44
+ #[ cfg( not( feature = "unwinding" ) ) ]
45
+ mod stubs;
42
46
43
47
#[ cfg_attr( target_arch = "aarch64" , path = "arch/aarch64.rs" ) ]
44
48
#[ cfg_attr( target_arch = "x86_64" , path = "arch/x86_64.rs" ) ]
@@ -66,11 +70,6 @@ pub mod signal;
66
70
#[ cfg_attr( not( feature = "take-charge" ) , path = "thread/libc.rs" ) ]
67
71
pub mod thread;
68
72
69
- // If we don't have "unwinding", provide stub functions for unwinding and
70
- // panicking.
71
- #[ cfg( not( feature = "unwinding" ) ) ]
72
- mod stubs;
73
-
74
73
// Include definitions of `memcpy` and other functions called from LLVM
75
74
// Codegen. Normally, these would be defined by the platform libc, however with
76
75
// origin with `take-charge`, there is no libc. Otherwise normally, these
You can’t perform that action at this time.
0 commit comments