-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve checking of
Vararg
parameters (#32056)
- make sure length var has full bounds - check for negative length earlier (inside Vararg, not just Tuple{Vararg{}})
- Loading branch information
1 parent
62a0a3f
commit 516067b
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
516067b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Executing the daily benchmark build, I will reply here when finished:
@nanosoldier
runbenchmarks(ALL, isdaily = true)
516067b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before this PR:
After:
Here is the line in AxisAlgorithms.jl:
Is that the sort of line that should be caught by this PR (ie, should I file an issue there), or is this an unintended regression?
516067b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kshyatt reported that on slack. Indeed the new error is correct and useful;
CartesianIndices{<:CartesianIndex{0}}
is no longer valid. I think it should beCartesianIndices{0}
.516067b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That fixed it! timholy/AxisAlgorithms.jl#12 (comment)