You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I filed rust-lang/rust#30382 the feedback was mostly negative so I made it the convention to use x: *const T/*[N]*/ and x: *mut T/*[N]*/ instead of x: &[T; N] and x: &mut [T; N] in FFI function declarations. However, now we have rust-lang/rust#31227 and it seems there's pretty widespread agreement that the latter forms are better, so we should just use them everywhere applicable.
After I filed rust-lang/rust#30382 the feedback was mostly negative so I made it the convention to use
x: *const T/*[N]*/
andx: *mut T/*[N]*/
instead ofx: &[T; N]
andx: &mut [T; N]
in FFI function declarations. However, now we have rust-lang/rust#31227 and it seems there's pretty widespread agreement that the latter forms are better, so we should just use them everywhere applicable.See also #129.
The text was updated successfully, but these errors were encountered: