From ff50bc6495846141b34a81d05345dd178c70d904 Mon Sep 17 00:00:00 2001 From: zdevito Date: Wed, 2 Jul 2025 14:22:32 -0700 Subject: [PATCH] Fix incorrect lifetime coupling. Well that took two hours to find... Differential Revision: [D77678286](https://our.internmc.facebook.com/intern/diff/D77678286/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77678286/)! [ghstack-poisoned] --- monarch_tensor_worker/src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monarch_tensor_worker/src/stream.rs b/monarch_tensor_worker/src/stream.rs index 3400ad66b..55077f30a 100644 --- a/monarch_tensor_worker/src/stream.rs +++ b/monarch_tensor_worker/src/stream.rs @@ -556,7 +556,7 @@ enum PyArg<'a> { } /// Serialize into a `PyObject`. -impl<'py> TryIntoPyObjectUnsafe<'py, PyAny> for &PyArg<'py> { +impl<'a, 'py> TryIntoPyObjectUnsafe<'py, PyAny> for &PyArg<'a> { unsafe fn try_to_object_unsafe(self, py: Python<'py>) -> PyResult> { match self { // SAFETY: This inherits the unsafety of `rvalue_to_ivalue` (see comment