Skip to content

Commit d2b4b94

Browse files
authored
Merge pull request #657 from JuliaDiff/ox/fix_ci
Restrict kwarg type in code generated by @non_differentiable macro
2 parents 935d625 + 99d2aed commit d2b4b94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ChainRulesCore"
22
uuid = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
3-
version = "1.20.0"
3+
version = "1.20.1"
44

55
[deps]
66
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

src/rule_definition_tools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ function _nondiff_rrule_expr(__source__, primal_sig_parts, primal_invoke)
445445
return @strip_linenos quote
446446
# Manually defined kw version to save compiler work. See explanation in rules.jl
447447
function (::Core.kwftype(typeof(rrule)))(
448-
$(esc(kwargs))::Any, ::typeof(rrule), $(esc_primal_sig_parts...)
448+
$(esc(kwargs))::NamedTuple, ::typeof(rrule), $(esc_primal_sig_parts...)
449449
)
450450
return ($(esc(_with_kwargs_expr(primal_invoke, kwargs))), $pullback_expr)
451451
end

0 commit comments

Comments
 (0)