Skip to content

Commit b7e63f5

Browse files
committed
re-instate the error which breaks Revise
1 parent 85aa2fa commit b7e63f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/rulesets/Base/fastmath_able.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,11 @@ let
302302
non_transformed_definitions = intersect(fastable_ast.args, fast_ast.args)
303303
filter!(expr->!(expr isa LineNumberNode), non_transformed_definitions)
304304
if !isempty(non_transformed_definitions)
305-
# error(
306-
# "Non-FastMath compatible rules defined in fastmath_able.jl. \n Definitions:\n" *
307-
# join(non_transformed_definitions, "\n")
308-
# )
309-
# This error() may not play well with Revise. But a wanring @error does:
305+
error(
306+
"Non-FastMath compatible rules defined in fastmath_able.jl. \n Definitions:\n" *
307+
join(non_transformed_definitions, "\n")
308+
)
309+
# This error() may not play well with Revise. But a wanring @error does, we should change it:
310310
@error "Non-FastMath compatible rules defined in fastmath_able.jl." non_transformed_definitions
311311
end
312312

0 commit comments

Comments
 (0)