@@ -284,7 +284,7 @@ impl TypeConverter {
284284 // in the case of pointers.
285285 CTypeKind :: Void => Ok ( mk ( )
286286 . set_mutbl ( mutbl)
287- . ptr_ty ( mk ( ) . path_ty ( vec ! [ "std " , "ffi" , "c_void" ] ) ) ) ,
287+ . ptr_ty ( mk ( ) . path_ty ( vec ! [ "core " , "ffi" , "c_void" ] ) ) ) ,
288288
289289 CTypeKind :: VariableArray ( mut elt, _len) => {
290290 while let CTypeKind :: VariableArray ( elt_, _) = ctxt. resolve_type ( elt) . kind {
@@ -325,23 +325,23 @@ impl TypeConverter {
325325 match ctxt. index ( ctype) . kind {
326326 CTypeKind :: Void => Ok ( mk ( ) . tuple_ty ( vec ! [ ] ) ) ,
327327 CTypeKind :: Bool => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "bool" ] ) ) ) ,
328- CTypeKind :: Short => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_short" ] ) ) ) ,
329- CTypeKind :: Int => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_int" ] ) ) ) ,
330- CTypeKind :: Long => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_long" ] ) ) ) ,
331- CTypeKind :: LongLong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_longlong" ] ) ) ) ,
332- CTypeKind :: UShort => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_ushort" ] ) ) ) ,
333- CTypeKind :: UInt => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_uint" ] ) ) ) ,
334- CTypeKind :: ULong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_ulong" ] ) ) ) ,
335- CTypeKind :: ULongLong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_ulonglong" ] ) ) ) ,
336- CTypeKind :: SChar => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_schar" ] ) ) ) ,
337- CTypeKind :: UChar => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_uchar" ] ) ) ) ,
338- CTypeKind :: Char => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_char" ] ) ) ) ,
339- CTypeKind :: Double => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_double" ] ) ) ) ,
328+ CTypeKind :: Short => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_short" ] ) ) ) ,
329+ CTypeKind :: Int => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_int" ] ) ) ) ,
330+ CTypeKind :: Long => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_long" ] ) ) ) ,
331+ CTypeKind :: LongLong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_longlong" ] ) ) ) ,
332+ CTypeKind :: UShort => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_ushort" ] ) ) ) ,
333+ CTypeKind :: UInt => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_uint" ] ) ) ) ,
334+ CTypeKind :: ULong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_ulong" ] ) ) ) ,
335+ CTypeKind :: ULongLong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_ulonglong" ] ) ) ) ,
336+ CTypeKind :: SChar => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_schar" ] ) ) ) ,
337+ CTypeKind :: UChar => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_uchar" ] ) ) ) ,
338+ CTypeKind :: Char => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_char" ] ) ) ) ,
339+ CTypeKind :: Double => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_double" ] ) ) ) ,
340340 CTypeKind :: LongDouble | CTypeKind :: Float128 => {
341341 self . use_crate ( ExternCrate :: F128 ) ;
342342 Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "f128" , "f128" ] ) ) )
343343 }
344- CTypeKind :: Float => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std " , "ffi" , "c_float" ] ) ) ) ,
344+ CTypeKind :: Float => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "core " , "ffi" , "c_float" ] ) ) ) ,
345345 CTypeKind :: Int128 => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "i128" ] ) ) ) ,
346346 CTypeKind :: UInt128 => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "u128" ] ) ) ) ,
347347 CTypeKind :: BFloat16 => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "bf16" ] ) ) ) ,
0 commit comments