Skip to content

Commit 148fa88

Browse files
authored
Merge pull request #658 from JuliaDiff/an/unionall
Don't use UnionAlls in Varargs
2 parents 5818173 + ea21c94 commit 148fa88

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ChainRules"
22
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
3-
version = "1.43.0"
3+
version = "1.43.1"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/rulesets/Base/array.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ _i_zero(ẋ::AbstractZero, x) = zero(x)
7676
# may give a MethodError for `zero` but won't be wrong.
7777

7878
# Fast paths. Should it also collapse all-Zero cases?
79-
_instantiate_zeros(ẋs::Tuple{Vararg{<:Number}}, xs) = ẋs
80-
_instantiate_zeros(ẋs::Tuple{Vararg{<:AbstractArray}}, xs) = ẋs
79+
_instantiate_zeros(ẋs::Tuple{Vararg{Number}}, xs) = ẋs
80+
_instantiate_zeros(ẋs::Tuple{Vararg{AbstractArray}}, xs) = ẋs
8181
_instantiate_zeros(ẋs::AbstractArray{<:Number}, xs) = ẋs
8282
_instantiate_zeros(ẋs::AbstractArray{<:AbstractArray}, xs) = ẋs
8383

src/rulesets/Base/indexing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function frule((_, ẋ), ::typeof(getindex), x::Tuple, i)
1212
end
1313

1414
"for a given typle type, returns a Val{N} where N is the length of the tuple"
15-
_tuple_N(::Type{<:Tuple{Vararg{<:Any, N}}}) where {N} = Val(N)
15+
_tuple_N(::Type{<:Tuple{Vararg{Any, N}}}) where {N} = Val(N)
1616

1717
function rrule(::typeof(getindex), x::T, i::Integer) where {T<:Tuple}
1818
function getindex_back_1(dy)

0 commit comments

Comments
 (0)