Files
rust/library/alloc
Jonathan Brouwer 694e1f919a 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)]`: rust-lang/rust#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.
2026-05-30 23:05:32 +02:00
..