tlopex opened a new pull request, #802: URL: https://github.com/apache/tvm-ffi/pull/802
When a pre-order `structural_map` callback returns a new object, the engine continues mapping its children. For example, a callback returns `[1]`, and an integer callback changes its child to `2`. Previously, Rust could modify that returned array in place even when the current traversal mode was `Disallow`. This PR preserves `Disallow`, so the changed array is copied instead. With `Allow`, a uniquely owned replacement can still be reused. This pr adds one regression test covering inline values, uniquely owned objects, and shared objects, with and without a context policy. It checks both the resulting values and whether the replacement object is reused. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
