From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: rust: auxiliary: generalize Registration over ForLt Date: Tue, 28 Apr 2026 13:47:57 +1000 Message-ID: In-Reply-To: <20260427221155.2144848-15-dakr@kernel.org> References: <20260427221155.2144848-1-dakr@kernel.org> <20260427221155.2144848-15-dakr@kernel.org> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review The `Registration::new` method now accepts `impl PinInit, E>` and transmutes to `'static` for storage: ```rust let data: Pin>>> = unsafe { core::mem::transmute(data) }; ``` This is the first explicit `transmute` for lifetime erasure. The reasoning is sound (lifetimes are erased at runtime) but this pattern should be documented as a general policy. The `registration_data` retrieval correctly shortens back from `'static` to `&self`'s lifetime via `ForLt::cast_ref`. --- Generated by Claude Code Patch Reviewer