Skip to content

Commit

Permalink
Remove pure as not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed May 7, 2020
1 parent 8e00436 commit 378f767
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/compiler/chainrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ the remaining types in `sigt` are the types of the argument.
"""
is_kwfunc(::Vararg{Any}) = false
# Needs `@pure` because else will not run during type inference.
# This is pure enough, the only generic function it calls is in `Core`
# overloading `Core.kwftype` will no doubt break many other things also
Base.@pure is_kwfunc(k, ::Type{<:NamedTuple}, f, args...) = k===Core.kwftype(f)
is_kwfunc(k, ::Type{<:NamedTuple}, f, args...) = k===Core.kwftype(f)


"""
Expand Down

0 comments on commit 378f767

Please sign in to comment.