Skip to content

Commit

Permalink
Base.Pair === Core.Compiler.Pair on 1.7 (#7)
Browse files Browse the repository at this point in the history
These methods were pirating the definitions on stable Julia and (among other things) causing precompilation to fail.
  • Loading branch information
ToucheSir authored May 8, 2022
1 parent cfce6f0 commit bde6945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patches.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Base.getindex(ref::UseRef) = Core.Compiler.getindex(ref)
Base.iterate(uses::UseRefIterator) = Core.Compiler.iterate(uses)
Base.iterate(uses::UseRefIterator, st) = Core.Compiler.iterate(uses, st)

@static if VERSION < v"1.8-"
@static if VERSION < v"1.7-"
Base.iterate(p::Core.Compiler.Pair) = Core.Compiler.iterate(p)
Base.iterate(p::Core.Compiler.Pair, st) = Core.Compiler.iterate(p, st)
end
Expand Down

0 comments on commit bde6945

Please sign in to comment.