Re: [PATCH v3 05/10] rust: uaccess: add UserSliceWriter::write_slice_file()
From: Miguel Ojeda
Date: Fri Oct 24 2025 - 14:07:16 EST
On Thu, Oct 23, 2025 at 1:20 PM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> I would love to have infallible conversions from usize to u64 (and u32
> to usize), but we can't really modify the stdlib to add them.
I don't have a link at hand now, but we already (recently too, I
think) discussed having these "we know it is infallible in the kernel"
conversions. Maybe there was a patch posted even.
Otherwise, I will create a good first issue.
Cheers,
Miguel