Skip to content

Commit

Permalink
manual fixes, @invoke isn't exported on 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Jul 26, 2022
1 parent a1937ab commit 431a5e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/compiler/ssair/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ function Base.show(io::IO, t::TriState)
if s !== nothing
printstyled(io, s; color = tristate_color(t))
else # unknown state, redirect to the fallback printing
Base.@invoke show(io::IO, t::Any)
Core.invoke(show, Tuple{IO,Any}, io, t)
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/compiler/effects.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ end |> only === Union{}
# https://github.com/JuliaLang/julia/issues/44763
global x44763::Int = 0
increase_x44763!(n) = (global x44763; x44763 += n)
invoke44763(x) = @invoke increase_x44763!(x)
invoke44763(x) = Base.@invoke increase_x44763!(x)
@test Base.return_types() do
invoke44763(42)
end |> only === Int
Expand Down

0 comments on commit 431a5e5

Please sign in to comment.