From e79179a255857eaf49df9073456a0dc65ecd371e Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Tue, 24 Nov 2026 08:23:00 +0100 Subject: [PATCH] cuda-driver: the copy ring asks its arena for the stage slot count by static dispatch, not through a dyn view (STRA-338) admitted_slots coerced the read lease to &dyn RingArena only to call stage_slots on it. RingArena::stage_slots(read) is the same method of the same impl without the vtable; the Ring keeps its own dyn field, which has its exception entry. --- .../original_group/copy_ring/ring/ring_construction.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/cuda-driver/src/mmq/resident/original_group/copy_ring/ring/ring_construction.rs b/crates/cuda-driver/src/mmq/resident/original_group/copy_ring/ring/ring_construction.rs index 45e4ce8a..24006409 100644 --- a/crates/cuda-driver/src/mmq/resident/original_group/copy_ring/ring/ring_construction.rs +++ b/crates/cuda-driver/src/mmq/resident/original_group/copy_ring/ring/ring_construction.rs @@ -59,8 +59,7 @@ impl<'read, 'ctx> Ring<'read, 'ctx> { schedule: &OriginalMmqCopySchedule<'ctx>, layer: usize, ) -> Result { - let admitted: &dyn RingArena = read; - let count = admitted.stage_slots()?; + let count = RingArena::stage_slots(read)?; schedule.validate_context(context)?; if !schedule_serves_ring(schedule.ring_slots(), count) { let e = Error::InvalidProjectionShape;