Skip to content

Commit c4540b3

Browse files
committed
restore error + bump
1 parent 7b70923 commit c4540b3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ChainRules"
22
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
3-
version = "1.11.3"
3+
version = "1.11.4"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/rulesets/Base/fastmath_able.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,12 @@ let
256256
non_transformed_definitions = intersect(fastable_ast.args, fast_ast.args)
257257
filter!(expr->!(expr isa LineNumberNode), non_transformed_definitions)
258258
if !isempty(non_transformed_definitions)
259-
@error(
260-
"Non-FastMath compatible rules defined in fastmath_able.jl.", # \n Definitions:\n" *
261-
# join(non_transformed_definitions, "\n")
262-
non_transformed_definitions
259+
error(
260+
"Non-FastMath compatible rules defined in fastmath_able.jl. \n Definitions:\n" *
261+
join(non_transformed_definitions, "\n")
263262
)
264-
# This is @error not error() because that doesn't play well with Revise, locally
263+
# This error() may not play well with Revise. But a wanring @error does:
264+
# @error "Non-FastMath compatible rules defined in fastmath_able.jl." non_transformed_definitions
265265
end
266266

267267
eval(fast_ast)

0 commit comments

Comments
 (0)