File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 10
10
#![ feature( adt_const_params) ]
11
11
#![ feature( generic_const_exprs) ]
12
12
#![ feature( effects) ]
13
+ #![ feature( asm_const) ]
13
14
14
15
extern crate mallockit_proc_macro;
15
16
pub extern crate spin;
@@ -40,8 +41,9 @@ const ERROR: ! = "32-bit is not supported";
40
41
41
42
#[ cfg( not( any(
42
43
all( target_os = "linux" , target_arch = "x86_64" ) ,
43
- all( target_os = "macos" , target_arch = "x86_64" ) ,
44
44
all( target_os = "linux" , target_arch = "aarch64" ) ,
45
+ all( target_os = "macos" , target_arch = "x86_64" ) ,
46
+ all( target_os = "macos" , target_arch = "aarch64" ) ,
45
47
) ) ) ]
46
48
const ERROR : ! = r#"
47
49
❌ Unsupported Platform.
Original file line number Diff line number Diff line change
1
+ use std:: ptr:: addr_of;
2
+
1
3
use super :: Address ;
2
4
3
5
const ZONE_NAME : & ' static [ i8 ] = & [
@@ -18,7 +20,7 @@ pub static mut MALLOCKIT_MALLOC_ZONE: MallocZone = MallocZone {
18
20
batch_malloc : 0 as _ ,
19
21
// Nullable
20
22
batch_free : 0 as _ ,
21
- introspect : unsafe { & MALLOCKIT_MALLOC_INTROSPECTION } ,
23
+ introspect : unsafe { addr_of ! ( MALLOCKIT_MALLOC_INTROSPECTION ) } ,
22
24
version : 9 ,
23
25
memalign : zone_memalign,
24
26
free_definite_size : 0 as _ ,
You can’t perform that action at this time.
0 commit comments