Skip to content

Commit b6393e0

Browse files
committed
Fix some rebase issues
1 parent b1d9865 commit b6393e0

File tree

3 files changed

+4
-45
lines changed

3 files changed

+4
-45
lines changed

base/Base.jl

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,6 @@ end
88
const start_base_include = time_ns()
99

1010
include("reflection.jl")
11-
12-
# define invoke(f, T, args...; kwargs...), without kwargs wrapping
13-
# to forward to invoke
14-
function Core.kwcall(kwargs::NamedTuple, ::typeof(invoke), f, T, args...)
15-
@inline
16-
# prepend kwargs and f to the invoked from the user
17-
T = rewrap_unionall(Tuple{Core.Typeof(kwargs), Core.Typeof(f), (unwrap_unionall(T)::DataType).parameters...}, T)
18-
return invoke(Core.kwcall, T, kwargs, f, args...)
19-
end
20-
# invoke does not have its own call cache, but kwcall for invoke does
21-
setfield!(typeof(invoke).name.mt, :max_args, 3, :monotonic) # invoke, f, T, args...
22-
23-
# define applicable(f, T, args...; kwargs...), without kwargs wrapping
24-
# to forward to applicable
25-
function Core.kwcall(kwargs::NamedTuple, ::typeof(applicable), @nospecialize(args...))
26-
@inline
27-
return applicable(Core.kwcall, kwargs, args...)
28-
end
29-
function Core._hasmethod(@nospecialize(f), @nospecialize(t)) # this function has a special tfunc (TODO: make this a Builtin instead like applicable)
30-
tt = rewrap_unionall(Tuple{Core.Typeof(f), (unwrap_unionall(t)::DataType).parameters...}, t)
31-
return Core._hasmethod(tt)
32-
end
33-
34-
# core operations & types
35-
include("promotion.jl")
36-
include("tuple.jl")
37-
include("expr.jl")
38-
include("pair.jl")
39-
include("traits.jl")
40-
include("range.jl")
41-
include("error.jl")
42-
43-
# core numeric operations & types
44-
==(x, y) = x === y
45-
include("bool.jl")
46-
include("number.jl")
47-
include("int.jl")
48-
include("operators.jl")
49-
include("pointer.jl")
50-
include("refvalue.jl")
51-
include("cmem.jl")
5211
include("refpointer.jl")
5312

5413
# now replace the Pair constructor (relevant for NamedTuples) with one that calls our Base.convert

base/Base_compiler.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ function Core._hasmethod(@nospecialize(f), @nospecialize(t)) # this function has
198198
return Core._hasmethod(tt)
199199
end
200200

201-
202201
# core operations & types
203202
include("promotion.jl")
204203
include("tuple.jl")

stdlib/Compiler/src/Compiler.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,19 @@ using Base: Ordering, vect, EffectsOverride, BitVector, @_gc_preserve_begin, @_g
5252
ismutationfree, NUM_EFFECTS_OVERRIDES, _NAMEDTUPLE_NAME, datatype_fieldtypes,
5353
argument_datatype, isfieldatomic, unwrapva, iskindtype, _bits_findnext, copy_exprargs,
5454
Generator, Filter, ismutabletypename, isvatuple, datatype_fieldcount,
55-
isconcretedispatch, isdispatchelem, min_world, max_world, datatype_layoutsize,
55+
isconcretedispatch, isdispatchelem, datatype_layoutsize,
5656
datatype_arrayelem, unionlen, isidentityfree, _uniontypes, uniontypes, OneTo, Callable,
5757
DataTypeFieldDesc, datatype_nfields, datatype_pointerfree, midpoint, is_valid_intrinsic_elptr,
5858
allocatedinline, isbitsunion, widen_diagonal, unconstrain_vararg_length,
5959
rename_unionall, may_invoke_generator, is_meta_expr_head, is_meta_expr, quoted,
6060
specialize_method, hasintersect, is_nospecializeinfer, is_nospecialized,
6161
get_nospecializeinfer_sig, tls_world_age, uniontype_layout, kwerr,
62-
moduleroot, is_file_tracked, decode_effects_override
62+
moduleroot, is_file_tracked, decode_effects_override, lookup_binding_partition,
63+
is_some_imported, binding_kind, is_some_guard, is_some_const_binding, partition_restriction
6364
using Base.Order
6465
import Base: getindex, setindex!, length, iterate, push!, isempty, first, convert, ==,
6566
copy, popfirst!, in, haskey, resize!, copy!, append!, last, get!, size,
66-
get, iterate, findall
67+
get, iterate, findall, min_world, max_world
6768

6869
const getproperty = Core.getfield
6970
const setproperty! = Core.setfield!

0 commit comments

Comments
 (0)