Skip to content

Commit

Permalink
mark CartesianIndices, floatmax, etc non-diff (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott authored Oct 24, 2021
1 parent ffbaa5f commit edf3a1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ChainRules"
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
version = "1.12.0"
version = "1.12.1"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand Down
7 changes: 6 additions & 1 deletion src/rulesets/Base/nondiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
@non_differentiable basename(::AbstractString)
@non_differentiable bytesavailable(::Any)

@non_differentiable CartesianIndices(::Any)
@non_differentiable cd(::AbstractString)
@non_differentiable chomp(::AbstractString)
@non_differentiable chop(::AbstractString)
Expand Down Expand Up @@ -166,6 +167,8 @@ VERSION >= v"1.1" && @non_differentiable fieldtypes(T)
@non_differentiable firstindex(::AbstractChar)
@non_differentiable firstindex(::AbstractString)
@non_differentiable firstindex(::Cmd)
@non_differentiable floatmax(::Any)
@non_differentiable floatmin(::Any)
@non_differentiable flush(::Any)

@non_differentiable gensym(::Symbol)
Expand Down Expand Up @@ -287,6 +290,7 @@ VERSION >= v"1.3" && @non_differentiable istaskfailed(::Task)
@non_differentiable lastindex(::AbstractString)
@non_differentiable lastindex(::Cmd)
@non_differentiable length(::Any)
@non_differentiable LinearIndices(::Any)
@non_differentiable lowercase(::AbstractString)
@non_differentiable lowercase(::AbstractChar)
@non_differentiable lowercasefirst(::AbstractString)
Expand Down Expand Up @@ -407,7 +411,8 @@ VERSION >= v"1.1" && @non_differentiable splitpath(::AbstractString)
@non_differentiable titlecase(::AbstractString)
@non_differentiable titlecase(::AbstractChar)
@non_differentiable touch(::AbstractString)
@non_differentiable typemin(::String)
@non_differentiable typemax(::Any)
@non_differentiable typemin(::Any)

@non_differentiable unescape_string(::AbstractString)
@non_differentiable unescape_string(::IO, ::AbstractString)
Expand Down

2 comments on commit edf3a1f

@mcabbott
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/47405

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.12.1 -m "<description of version>" edf3a1f48fb5c9af01820aeca6ced94d4f97fa1a
git push origin v1.12.1

Please sign in to comment.