mwillsey opened a new pull request #6384:
URL: https://github.com/apache/incubator-tvm/pull/6384


   I took a clean up pass over the TVM object system in the Rust bindings. 
There are still some things to improve, but I think this is worth landing on 
its own. 
   
   The upshot is now any `IsObjectRef` has a safe, typechecked `upcast` method 
to anything it inherits from. `downcast` is also typechecked, in that you may 
only attempt a downcast to from T to U if U is a subclass of T. There are some 
other minor cleanups in the Object derive-macro as well.
   
   @jroesch 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to