Skip to content

Commit bc504cb

Browse files
committed
delete @inlines, maybe that can help without decreasing the limit
1 parent 1de445b commit bc504cb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

base/promotion.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ const _promote_type_binary_recursion_depth_limit = let n = nothing # recursion
331331
end
332332

333333
function promote_type(::Type{T}, ::Type{S}) where {T,S}
334-
@inline
335334
# Try promote_rule in both orders. Typically only one is defined,
336335
# and there is a fallback returning Bottom below, so the common case is
337336
# promote_type(T, S) =>
@@ -357,10 +356,10 @@ promote_rule(::Type{Bottom}, ::Type{Bottom}, slurp...) = Bottom # not strictly n
357356
promote_rule(::Type{Bottom}, ::Type{T}, slurp...) where {T} = T
358357
promote_rule(::Type{T}, ::Type{Bottom}, slurp...) where {T} = T
359358

360-
promote_result(::Type,::Type,::Type{T},::Type{S},l::Tuple{Vararg{Nothing}}) where {T,S} = (@inline; _promote_type_binary(T,S,l))
359+
promote_result(::Type,::Type,::Type{T},::Type{S},l::Tuple{Vararg{Nothing}}) where {T,S} = _promote_type_binary(T,S,l)
361360
# If no promote_rule is defined, both directions give Bottom. In that
362361
# case use typejoin on the original types instead.
363-
promote_result(::Type{T},::Type{S},::Type{Bottom},::Type{Bottom},::Tuple{Vararg{Nothing}}) where {T,S} = (@inline; typejoin(T, S))
362+
promote_result(::Type{T},::Type{S},::Type{Bottom},::Type{Bottom},::Tuple{Vararg{Nothing}}) where {T,S} = typejoin(T, S)
364363

365364
"""
366365
promote(xs...)

0 commit comments

Comments
 (0)