Skip to content

Commit 44d1db0

Browse files
authored
Update HistoricalStdlibs (#2700)
This also: - fixes a bug in #2699 - improves inferrability of `recall_precompile_state`
1 parent 6351948 commit 44d1db0

File tree

3 files changed

+204
-25
lines changed

3 files changed

+204
-25
lines changed

ext/HistoricaStdlibGenerator/generate_historical_stdlibs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ end
222222

223223
# Helper function for getting these printed out in a nicely-sorted order
224224
function print_sorted(io::IO, d::Dict; indent::Int=0)
225-
println(io, "Dict{UUID,Tuple{String,Union{String,Nothing}}}(")
225+
println(io, "Dict{UUID,Tuple{String,Union{VersionNumber,Nothing}}}(")
226226
for pair in sort(collect(d), by = kv-> kv[2][1])
227227
println(io, " "^indent, repr(pair[1]), " => ", repr(pair[2]), ",")
228228
end

src/API.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ function recall_precompile_state()
13871387
if isfile(fpath)
13881388
open(fpath) do io
13891389
try
1390-
pkgspecs = deserialize(io)
1390+
pkgspecs = deserialize(io)::Vector{PackageSpec}
13911391
append!(empty!(store), pkgspecs)
13921392
catch
13931393
empty!(store)

0 commit comments

Comments
 (0)