Skip to content

Commit 82f7aae

Browse files
committed
Backports for julia 1.11.7 (#59336)
Merge branch `backports-release-1.11` into `release-1.11` #59336
2 parents 9615af0 + b04078d commit 82f7aae

File tree

20 files changed

+84
-22
lines changed

20 files changed

+84
-22
lines changed

base/options.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct JLOptions
99
commands::Ptr{Ptr{UInt8}} # (e)eval, (E)print, (L)load
1010
image_file::Ptr{UInt8}
1111
cpu_target::Ptr{UInt8}
12-
nthreadpools::Int16
12+
nthreadpools::Int8
1313
nthreads::Int16
1414
nmarkthreads::Int16
1515
nsweepthreads::Int8

base/precompilation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ Base.show(io::IO, err::PkgPrecompileError) = print(io, "PkgPrecompileError: ", e
342342

343343
import Base: StaleCacheKey
344344

345-
can_fancyprint(io::IO) = io isa Base.TTY && (get(ENV, "CI", nothing) != "true")
345+
can_fancyprint(io::IO) = @something(get(io, :force_fancyprint, nothing), (io isa Base.TTY && (get(ENV, "CI", nothing) != "true")))
346346

347347
function printpkgstyle(io, header, msg; color=:light_green)
348348
printstyled(io, header; color, bold=true)
@@ -892,7 +892,7 @@ function _precompilepkgs(pkgs::Vector{String},
892892
flags, cacheflags = config
893893
task = @async begin
894894
try
895-
loaded = haskey(Base.loaded_modules, pkg)
895+
loaded = warn_loaded && haskey(Base.loaded_modules, pkg)
896896
for dep in deps # wait for deps to finish
897897
wait(was_processed[(dep,config)])
898898
end

base/reinterpretarray.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,13 +313,13 @@ end
313313
_maybe_reshape(::IndexSCartesian2, A::ReshapedReinterpretArray, I...) = A
314314

315315
# fallbacks
316-
function _getindex(::IndexSCartesian2, A::AbstractArray{T,N}, I::Vararg{Int, N}) where {T,N}
316+
function _getindex(::IndexSCartesian2, A::AbstractArray, I::Vararg{Int, N}) where {N}
317317
@_propagate_inbounds_meta
318-
getindex(A, I...)
318+
_getindex(IndexCartesian(), A, I...)
319319
end
320-
function _setindex!(::IndexSCartesian2, A::AbstractArray{T,N}, v, I::Vararg{Int, N}) where {T,N}
320+
function _setindex!(::IndexSCartesian2, A::AbstractArray, v, I::Vararg{Int, N}) where {N}
321321
@_propagate_inbounds_meta
322-
setindex!(A, v, I...)
322+
_setindex!(IndexCartesian(), A, v, I...)
323323
end
324324
# fallbacks for array types that use "pass-through" indexing (e.g., `IndexStyle(A) = IndexStyle(parent(A))`)
325325
# but which don't handle SCartesianIndex2

base/strings/basic.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,8 @@ write(io::IO, s::CodeUnits) = write(io, s.s)
809809
cconvert(::Type{Ptr{T}}, s::CodeUnits{T}) where {T} = cconvert(Ptr{T}, s.s)
810810
cconvert(::Type{Ptr{Int8}}, s::CodeUnits{UInt8}) = cconvert(Ptr{Int8}, s.s)
811811

812+
similar(::Type{<:CodeUnits{T}}, dims::Dims) where {T} = similar(Array{T}, dims)
813+
812814
"""
813815
codeunits(s::AbstractString)
814816

deps/checksums/Distributed-41c01069533e22a6ce6b794746e4b3aa9f5a25cd.tar.gz/md5

Lines changed: 0 additions & 1 deletion
This file was deleted.

deps/checksums/Distributed-41c01069533e22a6ce6b794746e4b3aa9f5a25cd.tar.gz/sha512

Lines changed: 0 additions & 1 deletion
This file was deleted.

deps/checksums/Distributed-6c7cdb5860fa5cb9ca191ce9c52a3d25a9ab3781.tar.gz/md5

Lines changed: 0 additions & 1 deletion
This file was deleted.

deps/checksums/Distributed-6c7cdb5860fa5cb9ca191ce9c52a3d25a9ab3781.tar.gz/sha512

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cf55027baeae7811676fbfde35bb1b02
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5169f15d3e280632dd96206442622bcae49be6f28896a348ab774f62387640c10ce97d782e937dd6386a6d68592d07b238f4ef4c5e87047b5ae5f370a5aa065f

0 commit comments

Comments
 (0)