@@ -245,7 +245,6 @@ ccall(:jl_toplevel_eval_in, Any, (Any, Any),
245245 (f:: typeof (Typeof))(x) = ($ (_expr (:meta ,:nospecialize ,:x )); isa (x,Type) ? Type{x} : typeof (x))
246246 end )
247247
248-
249248macro nospecialize (x)
250249 _expr (:meta , :nospecialize , x)
251250end
@@ -256,7 +255,15 @@ TypeVar(n::Symbol, @nospecialize(lb), @nospecialize(ub)) = _typevar(n, lb, ub)
256255
257256UnionAll (v:: TypeVar , @nospecialize (t)) = ccall (:jl_type_unionall , Any, (Any, Any), v, t)
258257
259- const Vararg = ccall (:jl_toplevel_eval_in , Any, (Any, Any), Core, _expr (:new , TypeofVararg))
258+ # simple convert for use by constructors of types in Core
259+ # note that there is no actual conversion defined here,
260+ # so the methods and ccall's in Core aren't permitted to use convert
261+ convert (:: Type{Any} , @nospecialize (x)) = x
262+ convert (:: Type{T} , x:: T ) where {T} = x
263+ cconvert (:: Type{T} , x) where {T} = convert (T, x)
264+ unsafe_convert (:: Type{T} , x:: T ) where {T} = x
265+
266+ const Vararg = ccall (:jl_wrap_vararg , Any, (Int, Int), 0 , 0 )
260267
261268# dispatch token indicating a kwarg (keyword sorter) call
262269function kwcall end
@@ -448,14 +455,6 @@ function _Task(@nospecialize(f), reserved_stack::Int, completion_future)
448455 return ccall (:jl_new_task , Ref{Task}, (Any, Any, Int), f, completion_future, reserved_stack)
449456end
450457
451- # simple convert for use by constructors of types in Core
452- # note that there is no actual conversion defined here,
453- # so the methods and ccall's in Core aren't permitted to use convert
454- convert (:: Type{Any} , @nospecialize (x)) = x
455- convert (:: Type{T} , x:: T ) where {T} = x
456- cconvert (:: Type{T} , x) where {T} = convert (T, x)
457- unsafe_convert (:: Type{T} , x:: T ) where {T} = x
458-
459458_is_internal (__module__) = __module__ === Core
460459# can be used in place of `@assume_effects :foldable` (supposed to be used for bootstrapping)
461460macro _foldable_meta ()
0 commit comments