You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let idx = self.working_on.instructions[*idx].unwrap_subexpression();
648
+
if !idx.domain.is_generative(){
649
+
self.errors
650
+
.error(bracket_span.inner_span(),format!("Indexing a split dimension must be generative. {decl_name} has {num_splits} splits."))
651
+
.info_obj(decl);
652
+
}
653
+
}
654
+
}
655
+
}
656
+
}
657
+
fnsplits_are_used_correctly(&self){
658
+
for(_, instr)in&self.working_on.instructions{
659
+
match instr {
660
+
Instruction::Declaration(decl) => {
661
+
ifletSome(num_arrays) = decl.typ.rank.count(){
662
+
let num_splits = decl.decl_kind.num_splits();
663
+
if num_arrays < num_splits {
664
+
self.errors.error(decl.decl_span,format!("`split` requires the declaration's type to have as many array levels as `split` keywords provided. Found {num_arrays} arrays, and {num_splits} splits."));
0 commit comments