|
926 | 926 | function _methods_by_ftype(@nospecialize(t), mt::Union{Core.MethodTable, Nothing}, lim::Int, world::UInt)
|
927 | 927 | return _methods_by_ftype(t, mt, lim, world, false, RefValue{UInt}(typemin(UInt)), RefValue{UInt}(typemax(UInt)), Ptr{Int32}(C_NULL))
|
928 | 928 | end
|
929 |
| -function _methods_by_ftype(@nospecialize(t), mt::Union{Core.MethodTable, Nothing}, lim::Int, world::UInt, ambig::Bool, min::Array{UInt,1}, max::Array{UInt,1}, has_ambig::Array{Int32,1}) |
930 |
| - return ccall(:jl_matching_methods, Any, (Any, Any, Cint, Cint, UInt, Ptr{UInt}, Ptr{UInt}, Ptr{Int32}), t, mt, lim, ambig, world, min, max, has_ambig)::Union{Array{Any,1}, Bool} |
931 |
| -end |
932 | 929 | function _methods_by_ftype(@nospecialize(t), mt::Union{Core.MethodTable, Nothing}, lim::Int, world::UInt, ambig::Bool, min::Ref{UInt}, max::Ref{UInt}, has_ambig::Ref{Int32})
|
933 | 930 | return ccall(:jl_matching_methods, Any, (Any, Any, Cint, Cint, UInt, Ptr{UInt}, Ptr{UInt}, Ptr{Int32}), t, mt, lim, ambig, world, min, max, has_ambig)::Union{Array{Any,1}, Bool}
|
934 | 931 | end
|
@@ -1571,9 +1568,9 @@ function isambiguous(m1::Method, m2::Method; ambiguous_bottom::Bool=false)
|
1571 | 1568 | has_bottom_parameter(ti) && return false
|
1572 | 1569 | end
|
1573 | 1570 | world = get_world_counter()
|
1574 |
| - min = UInt[typemin(UInt)] |
1575 |
| - max = UInt[typemax(UInt)] |
1576 |
| - has_ambig = Int32[0] |
| 1571 | + min = Ref{UInt}(typemin(UInt)) |
| 1572 | + max = Ref{UInt}(typemax(UInt)) |
| 1573 | + has_ambig = Ref{Int32}(0) |
1577 | 1574 | ms = _methods_by_ftype(ti, nothing, -1, world, true, min, max, has_ambig)::Vector
|
1578 | 1575 | has_ambig[] == 0 && return false
|
1579 | 1576 | if !ambiguous_bottom
|
|
0 commit comments