Skip to content

Commit d902da5

Browse files
committed
Add rule for Base.unsafe_trunc
This is to match `Base.trunc` and notably is used in `convert(::Type{Int64}, ::Float64)`
1 parent d11755b commit d902da5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rulesets/Base/nondiff.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ end
445445
@non_differentiable unique(::AbstractArray{Symbol})
446446
@non_differentiable unmark(::IO)
447447
@non_differentiable unsafe_string(::Cstring)
448+
@non_differentiable unsafe_trunc(::Any...)
448449
@non_differentiable uppercase(::AbstractString)
449450
@non_differentiable uppercase(::AbstractChar)
450451
@non_differentiable uppercasefirst(::AbstractString)

0 commit comments

Comments
 (0)