upstream: - https://github.com/JuliaDiff/ForwardDiff.jl/pull/585 or - https://github.com/JuliaDiff/DiffRules.jl/pull/79