The GitHub Actions job "mainline-only" on tvm-ffi.git/main has failed. Run started by GitHub user tqchen (triggered by tqchen).
Head commit for run: 135c2e8bbf51a353db1c26a75404e03d03e802cb / Shushi Hong <[email protected]> [Rust][Feat] Add match_any! for object-backed values (#682) This PR adds Rust match_any!, a Phase 1 macro that evaluates an Any-compatible scrutinee once, converts it to AnyView, and tries object-backed target conversions in source order using the existing standard TryInto/TryFrom implementations. The first successful conversion whose optional guard passes selects its arm; a failed conversion or guard continues to the next arm, while a required final _ handles non-object or unmatched values. This implementation intentionally does not add type-index dispatch tables, caches, custom pattern protocols, or heuristic dispatch. ```rust match_any! { value { Tensor(tensor) if tensor.shape().len() == 2 => ("matrix", tensor.shape().len()), Tensor(tensor) => ("tensor", tensor.shape().len()), Shape(shape) => ("shape", shape.len()), Array::<i64>(array) => ("array", array.len()), _ => ("unsupported", 0), } } ``` Report URL: https://github.com/apache/tvm-ffi/actions/runs/29980013691 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
