|
78 | 78 | end
|
79 | 79 | end
|
80 | 80 | show_type_name(io::IO, tn::Core.TypeName) = print(io, tn.name)
|
| 81 | + # this function is not `--trim`-compatible if it resolves to a Varargs{...} specialization |
| 82 | + # and since it only has 1-argument methods this happens too often by default (just 2-3 args) |
| 83 | + setfield!(typeof(throw_eachindex_mismatch_indices).name, :max_args, Int32(5), :monotonic) |
81 | 84 | end
|
82 | 85 | @eval Base.Sys begin
|
83 | 86 | __init_build() = nothing # VersionNumber parsing is not supported yet
|
84 | 87 | end
|
| 88 | +# Used for LinearAlgebre ldiv with SVD |
| 89 | +for s in [:searchsortedfirst, :searchsortedlast, :searchsorted] |
| 90 | + @eval Base.Sort begin |
| 91 | + # identical to existing Base def. but specializes on `lt` / `by` |
| 92 | + $s(v::AbstractVector, x, o::Ordering) = $s(v,x,firstindex(v),lastindex(v),o) |
| 93 | + $s(v::AbstractVector, x; |
| 94 | + lt::T=isless, by::F=identity, rev::Union{Bool,Nothing}=nothing, order::Ordering=Forward) where {T,F} = |
| 95 | + $s(v,x,ord(lt,by,rev,order)) |
| 96 | + end |
| 97 | +end |
85 | 98 | @eval Base.GMP begin
|
86 | 99 | function __init__() # VersionNumber parsing is not supported yet
|
87 | 100 | try
|
|
109 | 122 | end
|
110 | 123 | end
|
111 | 124 | end
|
| 125 | + |
| 126 | +@eval Base.CoreLogging begin |
| 127 | + # Disable logging (TypedCallable is required to support the existing dynamic |
| 128 | + # logger interface, but it's not implemented yet) |
| 129 | + @inline current_logger_for_env(std_level::LogLevel, group, _module) = nothing |
| 130 | +end |
0 commit comments