Skip to content

Commit e2b3c18

Browse files
authored
Address CommonSubexpressions 0.3 deprecation (#462)
1 parent b2c7771 commit e2b3c18

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
@@ -13,7 +13,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1313

1414
[compat]
1515
Calculus = "0.2, 0.3, 0.4, 0.5"
16-
CommonSubexpressions = "0.1, 0.2, 0.3"
16+
CommonSubexpressions = "0.3"
1717
DiffResults = "0.0.1, 0.0.2, 0.0.3, 0.0.4, 1.0.1"
1818
DiffRules = "0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.1, 1.0"
1919
DiffTests = "0.0.1, 0.1"

src/prelude.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function qualified_cse!(expr)
6060
placeholders[placeholder] = x
6161
placeholder
6262
end
63-
cse_expr = CommonSubexpressions.cse(expr, false)
63+
cse_expr = CommonSubexpressions.cse(expr, warn=false)
6464
replace_match!(x -> haskey(placeholders, x), cse_expr.args) do x
6565
placeholders[x]
6666
end

0 commit comments

Comments
 (0)