Skip to content

Commit c54966e

Browse files
committed
Prevent internal warning being triggered during precompilation
1 parent 73cbeae commit c54966e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/OperatorEnumConstruction.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -425,16 +425,16 @@ end
425425
# Predefine the most common operators so the errors
426426
# are more informative
427427
function _overload_common_operators()
428-
#! format: off
428+
# Overload the operators in batches (so that we don't hit the warning
429+
# about too many operators)
429430
operators = OperatorEnum(
430431
(+, -, *, /, ^, max, min, mod),
431-
(
432-
sin, cos, tan, exp, log, log1p, log2, log10, sqrt, cbrt, abs, sinh,
433-
cosh, tanh, atan, asinh, acosh, round, sign, floor, ceil,
434-
),
432+
(sin, cos, tan, exp, log, log1p, log2, log10, sqrt, cbrt, abs, sinh),
435433
)
436-
#! format: on
437434
@extend_operators(operators, empty_old_operators = false, internal = true)
435+
operators = OperatorEnum((), (cosh, tanh, atan, asinh, acosh, round, sign, floor, ceil))
436+
@extend_operators(operators, empty_old_operators = true, internal = true)
437+
438438
empty!(LATEST_UNARY_OPERATOR_MAPPING)
439439
empty!(LATEST_BINARY_OPERATOR_MAPPING)
440440
return nothing

0 commit comments

Comments
 (0)