Re: [PATCH v16 12/17] rust: sync: lock/global: Rename B to G in trait bounds
From: Benno Lossin
Date: Mon Dec 22 2025 - 01:23:32 EST
On Mon Dec 15, 2025 at 6:57 PM CET, Lyude Paul wrote:
> Due to the introduction of Backend::BackendInContext, if we want to be able
> support Lock types with a Context we need to be able to handle the fact
> that the Backend for a returned Guard may not exactly match the Backend for
> the lock. Before we add this though, rename B to G in all of our trait
> bounds to make sure things don't become more difficult to understand once
> we add a Backend bound.
Would be better to have this patch directly before the patch that needs
this.
Reviewed-by: Benno Lossin <lossin@xxxxxxxxxx>
Cheers,
Benno
>
> There should be no functional changes in this patch.
>
> Signed-off-by: Lyude Paul <lyude@xxxxxxxxxx>