From 723dee027eb119a50f13c41d60e40e9b36afca41 Mon Sep 17 00:00:00 2001 From: "Jeong, YunWon" <69878+youknowone@users.noreply.github.com> Date: Tue, 13 Oct 2026 21:58:28 +0900 Subject: [PATCH] Initialize PyRef marker in native base conversion (#9096) Fix the missing field in the new into_base initializer without changing its pointer or ownership transfer. Assisted-by: OpenAI Codex: model identifier unavailable Co-authored-by: dot --- crates/vm/src/object/core.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/vm/src/object/core.rs b/crates/vm/src/object/core.rs index 9cd52c32d..8dacc13d3 100644 --- a/crates/vm/src/object/core.rs +++ b/crates/vm/src/object/core.rs @@ -2911,7 +2911,10 @@ where // the object's class or MRO since this typed reference was constructed. let ptr = self.ptr.cast(); core::mem::forget(self); - PyRef { ptr } + PyRef { + ptr, + marker: PhantomData, + } } #[inline] #[must_use]