Skip to content

Commit 9adf759

Browse files
authored
Simplify frule for Base.tail (#650)
* rm Tuple * versions
1 parent 7faaf5d commit 9adf759

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
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.39.0"
3+
version = "1.39.1"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
@@ -14,7 +14,7 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1414
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1515

1616
[compat]
17-
ChainRulesCore = "1.12"
17+
ChainRulesCore = "1.15.3"
1818
ChainRulesTestUtils = "1.5"
1919
Compat = "3.42.0, 4"
2020
FiniteDifferences = "0.12.20"

src/rulesets/Base/indexing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ end
101101

102102
function frule((_, ẋ), ::typeof(Base.tail), x::Tuple)
103103
y = Base.tail(x)
104-
return y, Tangent{typeof(y)}(Base.tail(Tuple(ẋ))...)
104+
return y, Tangent{typeof(y)}(Base.tail()...)
105105
end
106106

107107
function rrule(::typeof(Base.tail), x::T) where {T<:Tuple}

0 commit comments

Comments
 (0)