Commit 71b53ab
committed
Check expr type for ;step in s![] at compile time
Before, if the `expr;step` notation was used with an index as the
`expr`, e.g. `s![4;2]`, the macro would panic at runtime. Now, it
errors at compile time. This is accomplished by converting the `expr`
to a `Slice` before converting it into the final `AxisSliceInfo`.1 parent 2bcbb2a commit 71b53ab
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
883 | | - | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
884 | 886 | | |
885 | 887 | | |
886 | 888 | | |
| |||
0 commit comments