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
Rollup merge of #156109 - Paladynee:lib/cast-slice-improvements, r=jhpratt
Migrate libraries from ptr::slice_from_raw_parts to .cast_slice
Tracking issue for `#![feature(ptr_cast_slice)]`: #149103
This commit updates most callsites of ptr::slice_from_raw_parts within ./library to the more concise but unstable postfix `.cast_slice()` method on raw pointers, using the `ptr_cast_slice` feature. Some tests in alloctests have also been updated.
No functional change, debatably improved readability.
0 commit comments