@@ -272,7 +272,7 @@ impl TypeConverter {
272272 // in the case of pointers.
273273 CTypeKind :: Void => Ok ( mk ( )
274274 . set_mutbl ( mutbl)
275- . ptr_ty ( mk ( ) . path_ty ( vec ! [ "libc " , "c_void" ] ) ) ) ,
275+ . ptr_ty ( mk ( ) . path_ty ( vec ! [ "std" , "ffi ", "c_void" ] ) ) ) ,
276276
277277 CTypeKind :: VariableArray ( mut elt, _len) => {
278278 while let CTypeKind :: VariableArray ( elt_, _) = ctxt. resolve_type ( elt) . kind {
@@ -313,20 +313,20 @@ impl TypeConverter {
313313 match ctxt. index ( ctype) . kind {
314314 CTypeKind :: Void => Ok ( mk ( ) . tuple_ty ( vec ! [ ] ) ) ,
315315 CTypeKind :: Bool => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "bool" ] ) ) ) ,
316- CTypeKind :: Short => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_short" ] ) ) ) ,
317- CTypeKind :: Int => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_int" ] ) ) ) ,
318- CTypeKind :: Long => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_long" ] ) ) ) ,
319- CTypeKind :: LongLong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_longlong" ] ) ) ) ,
320- CTypeKind :: UShort => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_ushort" ] ) ) ) ,
321- CTypeKind :: UInt => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_uint" ] ) ) ) ,
322- CTypeKind :: ULong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_ulong" ] ) ) ) ,
323- CTypeKind :: ULongLong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_ulonglong" ] ) ) ) ,
324- CTypeKind :: SChar => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_schar" ] ) ) ) ,
325- CTypeKind :: UChar => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_uchar" ] ) ) ) ,
326- CTypeKind :: Char => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_char" ] ) ) ) ,
327- CTypeKind :: Double => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_double" ] ) ) ) ,
316+ CTypeKind :: Short => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_short" ] ) ) ) ,
317+ CTypeKind :: Int => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_int" ] ) ) ) ,
318+ CTypeKind :: Long => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_long" ] ) ) ) ,
319+ CTypeKind :: LongLong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_longlong" ] ) ) ) ,
320+ CTypeKind :: UShort => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_ushort" ] ) ) ) ,
321+ CTypeKind :: UInt => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_uint" ] ) ) ) ,
322+ CTypeKind :: ULong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_ulong" ] ) ) ) ,
323+ CTypeKind :: ULongLong => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_ulonglong" ] ) ) ) ,
324+ CTypeKind :: SChar => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_schar" ] ) ) ) ,
325+ CTypeKind :: UChar => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_uchar" ] ) ) ) ,
326+ CTypeKind :: Char => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_char" ] ) ) ) ,
327+ CTypeKind :: Double => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_double" ] ) ) ) ,
328328 CTypeKind :: LongDouble => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "f128" , "f128" ] ) ) ) ,
329- CTypeKind :: Float => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "libc " , "c_float" ] ) ) ) ,
329+ CTypeKind :: Float => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "std" , "ffi ", "c_float" ] ) ) ) ,
330330 CTypeKind :: Int128 => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "i128" ] ) ) ) ,
331331 CTypeKind :: UInt128 => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "u128" ] ) ) ) ,
332332 CTypeKind :: BFloat16 => Ok ( mk ( ) . path_ty ( mk ( ) . path ( vec ! [ "bf16" ] ) ) ) ,
0 commit comments