File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 18
18
#![ feature( specialization) ]
19
19
#![ feature( core_intrinsics) ]
20
20
#![ feature( alloc_error_handler) ]
21
- #![ feature( vec_into_raw_parts) ]
22
21
#![ feature( strict_provenance) ]
23
22
#![ feature( is_some_and) ]
24
23
#![ cfg_attr( target_os = "none" , no_std) ]
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ pub trait SyscallInterface: Send + Sync {
45
45
envv. push ( core:: ptr:: null :: < u8 > ( ) ) ;
46
46
47
47
let argc = argv. len ( ) as i32 ;
48
- let argv = Box :: leak ( argv. into_boxed_slice ( ) ) . as_ptr ( ) ;
49
- let envv = Box :: leak ( envv. into_boxed_slice ( ) ) . as_ptr ( ) ;
48
+ let argv = argv. leak ( ) . as_ptr ( ) ;
49
+ let envv = envv. leak ( ) . as_ptr ( ) ;
50
50
51
51
( argc, argv, envv)
52
52
}
Original file line number Diff line number Diff line change @@ -174,9 +174,9 @@ impl SyscallInterface for Uhyve {
174
174
) ;
175
175
uhyve_send ( UHYVE_PORT_CMDVAL , & mut syscmdval) ;
176
176
177
- let ( argv_ptr , _ , _ ) = argv. into_raw_parts ( ) ;
178
- let ( env_ptr , _ , _ ) = env. into_raw_parts ( ) ;
179
- ( syscmdsize. argc , argv_ptr , env_ptr )
177
+ let argv = argv. leak ( ) . as_ptr ( ) ;
178
+ let env = env. leak ( ) . as_ptr ( ) ;
179
+ ( syscmdsize. argc , argv , env )
180
180
}
181
181
182
182
fn shutdown ( & self , arg : i32 ) -> ! {
You can’t perform that action at this time.
0 commit comments