Re: [PATCH v2 1/6] rust: ptr: rename `ProjectIndex::index` to `build_index`
From: Alexandre Courbot
Date: Thu Jun 04 2026 - 19:43:32 EST
On Tue Jun 2, 2026 at 11:17 PM JST, Gary Guo wrote:
> The corresponding `SliceIndex` trait in Rust uses `index` to mean the
> panicking variant, which is also being added to `ProjectIndex`. Hence
> rename our custom `build_error!` index variant to `build_index`.
>
> Suggested-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Link: https://lore.kernel.org/rust-for-linux/DI5LLN2V3XCS.34H4CG99N4MPA@xxxxxxxxxx
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>