mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
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 <dot@youknowone.org>
This commit is contained in:
1 parent
0803a55df5
commit
723dee027e
1 file changed
+4
-1
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user