From 82084f362d67a84b58cabfc684e9eb1eada91e7b Mon Sep 17 00:00:00 2001 From: David Widmann Date: Sun, 28 Mar 2021 16:46:00 +0200 Subject: [PATCH 1/2] Use `Base.remove_linenums!` --- src/rule_definition_tools.jl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/rule_definition_tools.jl b/src/rule_definition_tools.jl index 221bb6dec..78e6d8c63 100644 --- a/src/rule_definition_tools.jl +++ b/src/rule_definition_tools.jl @@ -2,10 +2,7 @@ using Base.Meta macro strip_linenos(expr) - strip_linenos(x::LineNumberNode) = nothing - strip_linenos(x::Expr) = Expr(x.head, map(strip_linenos, x.args)...) - strip_linenos(x) = x - return esc(strip_linenos(expr)) + return esc(Base.remove_linenums!(expr)) end """ From 643e140609be2cd7dd30b14a1e23c5276d178a86 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Sun, 28 Mar 2021 19:25:17 +0200 Subject: [PATCH 2/2] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 12aadc88a..e662b1c17 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "ChainRulesCore" uuid = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" -version = "0.9.33" +version = "0.9.34" [deps] Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"