Skip to content

Commit f0c3fb1

Browse files
committed
Remove pure as not needed anymore
1 parent 2c0c852 commit f0c3fb1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/compiler/chainrules.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ the remaining types in `sigt` are the types of the argument.
3737
3838
"""
3939
is_kwfunc(::Vararg{Any}) = false
40-
# Needs `@pure` because else will not run during type inference.
41-
# This is pure enough, the only generic function it calls is in `Core`
42-
# overloading `Core.kwftype` will no doubt break many other things also
43-
Base.@pure is_kwfunc(k, ::Type{<:NamedTuple}, f, args...) = k===Core.kwftype(f)
40+
is_kwfunc(k, ::Type{<:NamedTuple}, f, args...) = k===Core.kwftype(f)
4441

4542

4643
"""

0 commit comments

Comments
 (0)