Skip to content

Commit 5062627

Browse files
authored
Merge pull request #39480 from JuliaLang/backports-release-1.6
Backports for 1.6-RC1
2 parents 42e1176 + 7df31ad commit 5062627

File tree

12 files changed

+32
-30
lines changed

12 files changed

+32
-30
lines changed

base/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ const NonleafHandlingStyles = Union{DefaultArrayStyle,ArrayConflict}
925925
# Now handle the remaining values
926926
# The typeassert gives inference a helping hand on the element type and dimensionality
927927
# (work-around for #28382)
928-
ElType′ = ElType <: Type ? Type : ElType
928+
ElType′ = ElType === Union{} ? Any : ElType <: Type ? Type : ElType
929929
RT = dest isa AbstractArray ? AbstractArray{<:ElType′, ndims(dest)} : Any
930930
return copyto_nonleaf!(dest, bc′, iter, state, 1)::RT
931931
end

base/regex.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ function show(io::IO, re::Regex)
119119
imsxa = PCRE.CASELESS|PCRE.MULTILINE|PCRE.DOTALL|PCRE.EXTENDED|PCRE.UCP
120120
opts = re.compile_options
121121
if (opts & ~imsxa) == (DEFAULT_COMPILER_OPTS & ~imsxa)
122-
print(io, 'r')
123-
print_quoted_literal(io, re.pattern)
122+
print(io, "r\"")
123+
escape_raw_string(io, re.pattern)
124+
print(io, "\"")
124125
if (opts & PCRE.CASELESS ) != 0; print(io, 'i'); end
125126
if (opts & PCRE.MULTILINE) != 0; print(io, 'm'); end
126127
if (opts & PCRE.DOTALL ) != 0; print(io, 's'); end
@@ -456,8 +457,9 @@ isvalid(s::SubstitutionString, i::Integer) = isvalid(s.string, i)::Bool
456457
iterate(s::SubstitutionString, i::Integer...) = iterate(s.string, i...)::Union{Nothing,Tuple{AbstractChar,Int}}
457458

458459
function show(io::IO, s::SubstitutionString)
459-
print(io, "s")
460-
print_quoted_literal(io, s.string)
460+
print(io, "s\"")
461+
escape_raw_string(io, s.string)
462+
print(io, "\"")
461463
end
462464

463465
"""

base/strings/io.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,6 @@ write(io::IO, s::Union{String,SubString{String}}) =
186186
GC.@preserve s Int(unsafe_write(io, pointer(s), reinterpret(UInt, sizeof(s))))::Int
187187
print(io::IO, s::Union{String,SubString{String}}) = (write(io, s); nothing)
188188

189-
## printing literal quoted string data ##
190-
191-
# this is the inverse of print_unescaped_chars(io, s, "\\\")
192-
193-
function print_quoted_literal(io, s::AbstractString)
194-
print(io, '"')
195-
for c = s; c == '"' ? print(io, "\\\"") : print(io, c); end
196-
print(io, '"')
197-
end
198-
199189
"""
200190
repr(x; context=nothing)
201191
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
258aee97c44956a2ef94525b24899b66
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
882a552472b1023eed52ffbeeafd320a178dcb54f1dc36a5cc8c8c8f06c1038e13e8cd257784851532deaa3faaf9809146a0873c3dff28219b9ee6492366ee2c

deps/checksums/Downloads-4e55241413c95551c54fc5c9bfdf5f48cb02fc4c.tar.gz/md5

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

deps/checksums/Downloads-4e55241413c95551c54fc5c9bfdf5f48cb02fc4c.tar.gz/sha512

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

deps/checksums/Downloads-a6e4926ca3e9cdb72487026c0b57394e71a68a07.tar.gz/md5

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

deps/checksums/Downloads-a6e4926ca3e9cdb72487026c0b57394e71a68a07.tar.gz/sha512

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

stdlib/Downloads.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
DOWNLOADS_BRANCH = master
2-
DOWNLOADS_SHA1 = 4e55241413c95551c54fc5c9bfdf5f48cb02fc4c
2+
DOWNLOADS_SHA1 = 0d798cfe2c06c304833dde913552fe13559a0c20

0 commit comments

Comments
 (0)