Skip to content

Commit 1243859

Browse files
committed
core: ensure VaList passes improper_ctypes lint
Ensure the core::ffi::VaList structure passes the improper_ctypes lint.
1 parent a9da8fc commit 1243859

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/libcore/ffi.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ impl fmt::Debug for VaListImpl {
7979
all supported platforms",
8080
issue = "44930")]
8181
struct VaListImpl {
82-
stack: *mut (),
83-
gr_top: *mut (),
84-
vr_top: *mut (),
82+
stack: *mut c_void,
83+
gr_top: *mut c_void,
84+
vr_top: *mut c_void,
8585
gr_offs: i32,
8686
vr_offs: i32,
8787
}
@@ -98,8 +98,8 @@ struct VaListImpl {
9898
gpr: u8,
9999
fpr: u8,
100100
reserved: u16,
101-
overflow_arg_area: *mut (),
102-
reg_save_area: *mut (),
101+
overflow_arg_area: *mut c_void,
102+
reg_save_area: *mut c_void,
103103
}
104104

105105
/// x86_64 ABI implementation of a `va_list`.
@@ -113,8 +113,8 @@ struct VaListImpl {
113113
struct VaListImpl {
114114
gp_offset: i32,
115115
fp_offset: i32,
116-
overflow_arg_area: *mut (),
117-
reg_save_area: *mut (),
116+
overflow_arg_area: *mut c_void,
117+
reg_save_area: *mut c_void,
118118
}
119119

120120
/// A wrapper for a `va_list`

0 commit comments

Comments
 (0)