fn ensure_grid(
ty: &NativeType,
expected: &Arc<EvalGrid>,
what: &str,
) -> Result<()>Expand description
Checks that ty is evaluated on the grid expected describes.
The comparison is by [EvalGrid::spec], not by allocation: that is the rule the kernels apply
(vector_match::same_grid), so a compiler that allocates one grid per window but binds equal
specs produces a tree the kernel runs correctly.