Skip to content

Commit c979ab7

Browse files
Merge pull request #524 from JuliaDiff/invalidations
Remove major invalidations from ==
2 parents a9840b4 + 0e1159a commit c979ab7

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ChainRulesCore"
22
uuid = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
3-
version = "1.13.0"
3+
version = "1.14.0"
44

55
[deps]
66
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

src/tangent_types/thunks.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ end
2525
end
2626

2727
Base.:(==)(a::AbstractThunk, b::AbstractThunk) = unthunk(a) == unthunk(b)
28-
Base.:(==)(a::AbstractThunk, b) = unthunk(a) == b
29-
Base.:(==)(a, b::AbstractThunk) = a == unthunk(b)
3028

3129
Base.:(-)(a::AbstractThunk) = -unthunk(a)
3230
Base.:(-)(a::AbstractThunk, b) = unthunk(a) - b

test/tangent_types/thunks.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
@testset "==" begin
77
@test @thunk(3.2) == InplaceableThunk(x -> x + 3.2, @thunk(3.2))
8-
@test @thunk(3.2) == 3.2
9-
@test 3.2 == InplaceableThunk(x -> x + 3.2, @thunk(3.2))
108
end
119

1210
@testset "iterate" begin

0 commit comments

Comments
 (0)