Skip to content

Commit 12e7653

Browse files
authored
Merge branch 'master' into jb/lazylibpath
2 parents 7191c3a + 1ea4901 commit 12e7653

File tree

404 files changed

+10517
-1302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404 files changed

+10517
-1302
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ endif
468468

469469
exe:
470470
# run Inno Setup to compile installer
471-
$(call spawn,$(JULIAHOME)/dist-extras/inno/iscc.exe /DAppVersion=$(JULIA_VERSION) /DSourceDir="$(call cygpath_w,$(BUILDROOT)/julia-$(JULIA_COMMIT))" /DRepoDir="$(call cygpath_w,$(JULIAHOME))" /F"$(JULIA_BINARYDIST_FILENAME)" /O"$(call cygpath_w,$(BUILDROOT))" $(call cygpath_w,$(JULIAHOME)/contrib/windows/build-installer.iss))
471+
$(call spawn,$(JULIAHOME)/dist-extras/inno/iscc.exe /DAppVersion=$(JULIA_VERSION) /DSourceDir="$(call cygpath_w,$(BUILDROOT)/julia-$(JULIA_COMMIT))" /DRepoDir="$(call cygpath_w,$(JULIAHOME))" /F"$(JULIA_BINARYDIST_FILENAME)" /O"$(call cygpath_w,$(BUILDROOT))" $(INNO_ARGS) $(call cygpath_w,$(JULIAHOME)/contrib/windows/build-installer.iss))
472472
chmod a+x "$(BUILDROOT)/$(JULIA_BINARYDIST_FILENAME).exe"
473473

474474
app:

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ New language features
88
`(Foo{T} where T)(x) = ...`.
99
* `<--` and `<-->` are now available as infix operators, with the same precedence
1010
and associativity as other arrow-like operators ([#36666]).
11+
* Compilation and type inference can now be enabled or disabled at the module level
12+
using the experimental macro `Base.Experimental.@compiler_options` ([#37041]).
1113
* The library name passed to `ccall` or `@ccall` can now be an expression involving
1214
global variables and function calls. The expression will be evaluated the first
1315
time the `ccall` executes ([#36458]).

base/Base.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ include("threadcall.jl")
340340

341341
# code loading
342342
include("uuid.jl")
343+
include("pkgid.jl")
344+
include("toml_parser.jl")
343345
include("loading.jl")
344346

345347
# misc useful functions & macros

base/abstractarray.jl

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ end
8282
Return `true` if the indices of `A` start with something other than 1 along any axis.
8383
If multiple arguments are passed, equivalent to `has_offset_axes(A) | has_offset_axes(B) | ...`.
8484
"""
85-
has_offset_axes(A) = _tuple_any(x->first(x)!=1, axes(A))
85+
has_offset_axes(A) = _tuple_any(x->Int(first(x))::Int != 1, axes(A))
8686
has_offset_axes(A...) = _tuple_any(has_offset_axes, A)
8787
has_offset_axes(::Colon) = false
8888

@@ -588,11 +588,11 @@ See also [`checkbounds`](@ref).
588588
"""
589589
function checkbounds_indices(::Type{Bool}, IA::Tuple, I::Tuple)
590590
@_inline_meta
591-
checkindex(Bool, IA[1], I[1]) & checkbounds_indices(Bool, tail(IA), tail(I))
591+
checkindex(Bool, IA[1], I[1])::Bool & checkbounds_indices(Bool, tail(IA), tail(I))
592592
end
593593
function checkbounds_indices(::Type{Bool}, ::Tuple{}, I::Tuple)
594594
@_inline_meta
595-
checkindex(Bool, OneTo(1), I[1]) & checkbounds_indices(Bool, (), tail(I))
595+
checkindex(Bool, OneTo(1), I[1])::Bool & checkbounds_indices(Bool, (), tail(I))
596596
end
597597
checkbounds_indices(::Type{Bool}, IA::Tuple, ::Tuple{}) = (@_inline_meta; all(x->unsafe_length(x)==1, IA))
598598
checkbounds_indices(::Type{Bool}, ::Tuple{}, ::Tuple{}) = true
@@ -712,7 +712,7 @@ to_shape(r::AbstractUnitRange) = r
712712
713713
Create an uninitialized mutable array analogous to that specified by
714714
`storagetype`, but with `axes` specified by the last
715-
argument. `storagetype` might be a type or a function.
715+
argument.
716716
717717
**Examples**:
718718
@@ -1065,7 +1065,7 @@ end
10651065
pointer(x::AbstractArray{T}) where {T} = unsafe_convert(Ptr{T}, x)
10661066
function pointer(x::AbstractArray{T}, i::Integer) where T
10671067
@_inline_meta
1068-
unsafe_convert(Ptr{T}, x) + _memory_offset(x, i)
1068+
unsafe_convert(Ptr{T}, x) + Int(_memory_offset(x, i))::Int
10691069
end
10701070

10711071
# The distance from pointer(x) to the element at x[I...] in bytes
@@ -1315,10 +1315,11 @@ unaliascopy(A::Array) = copy(A)
13151315
unaliascopy(A::AbstractArray)::typeof(A) = (@_noinline_meta; _unaliascopy(A, copy(A)))
13161316
_unaliascopy(A::T, C::T) where {T} = C
13171317
_unaliascopy(A, C) = throw(ArgumentError("""
1318-
an array of type `$(typeof(A).name)` shares memory with another argument and must
1319-
make a preventative copy of itself in order to maintain consistent semantics,
1320-
but `copy(A)` returns a new array of type `$(typeof(C))`. To fix, implement:
1321-
`Base.unaliascopy(A::$(typeof(A).name))::typeof(A)`"""))
1318+
an array of type `$(typename(typeof(A)).wrapper)` shares memory with another argument
1319+
and must make a preventative copy of itself in order to maintain consistent semantics,
1320+
but `copy(::$(typeof(A)))` returns a new array of type `$(typeof(C))`.
1321+
To fix, implement:
1322+
`Base.unaliascopy(A::$(typename(typeof(A)).wrapper))::typeof(A)`"""))
13221323
unaliascopy(A) = A
13231324

13241325
"""
@@ -1411,7 +1412,7 @@ promote_eltype() = Bottom
14111412
promote_eltype(v1, vs...) = promote_type(eltype(v1), promote_eltype(vs...))
14121413

14131414
#TODO: ERROR CHECK
1414-
_cat(catdim::Integer) = Vector{Any}()
1415+
_cat(catdim::Int) = Vector{Any}()
14151416

14161417
typed_vcat(::Type{T}) where {T} = Vector{T}()
14171418
typed_hcat(::Type{T}) where {T} = Vector{T}()

base/abstractset.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ max_values(::Type{Bool}) = 2
8686
max_values(::Type{Nothing}) = 1
8787

8888
function union!(s::AbstractSet{T}, itr) where T
89-
haslength(itr) && sizehint!(s, length(s) + length(itr))
89+
haslength(itr) && sizehint!(s, length(s) + Int(length(itr))::Int)
9090
for x in itr
9191
push!(s, x)
9292
length(s) == max_values(T) && break

base/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ push!(a::AbstractVector, iter...) = append!(a, iter)
984984
function _append!(a, ::Union{HasLength,HasShape}, iter)
985985
n = length(a)
986986
i = lastindex(a)
987-
resize!(a, n+length(iter))
987+
resize!(a, n+Int(length(iter))::Int)
988988
@inbounds for (i, item) in zip(i+1:lastindex(a), iter)
989989
a[i] = item
990990
end

0 commit comments

Comments
 (0)