Skip to content

Commit

Permalink
audit custom show methods
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Sep 4, 2023
1 parent 5f5a537 commit 7e7f04d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
14 changes: 0 additions & 14 deletions src/JET.jl
Original file line number Diff line number Diff line change
Expand Up @@ -370,18 +370,6 @@ is_constant_propagated(frame::InferenceState) =
is_constant_propagated(frame.result)
is_constant_propagated(result::InferenceResult) = CC.any(result.overridden_by_const)

# XXX this should be upstreamed
function Base.show(io::IO, frame::InferenceState)
print(io, "InfernceState for ")
show(io, frame.linfo)
print(io, " at pc ", frame.currpc, '/', length(frame.src.code))
end
Base.show(io::IO, ::MIME"application/prs.juno.inline", frame::InferenceState) =
return frame

Base.show(io::IO, cache::CachedMethodTable) =
print(io, typeof(cache), "(", Core.Compiler.length(cache.cache), " entries)")

# lattice

ignorenotfound(@nospecialize(t)) = t === NOT_FOUND ? Bottom : t
Expand Down Expand Up @@ -1253,8 +1241,6 @@ function Base.show(io::IO, t::JETTestFailure)
lines = replace(String(take!(buf)), '\n'=>string('\n',TEST_INDENTS))
print(io, TEST_INDENTS, lines)
end
Base.show(io::IO, ::MIME"application/prs.juno.inline", t::JETTestFailure) =
return t

function Test.record(::FallbackTestSet, t::JETTestFailure)
println(t)
Expand Down
2 changes: 0 additions & 2 deletions src/abstractinterpret/inferenceerrorreport.jl
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,6 @@ function Base.show(io::IO, report::InferenceErrorReport)
print_report(io, report)
print(io, ')')
end
Base.show(io::IO, ::MIME"application/prs.juno.inline", report::InferenceErrorReport) =
return report

# the default constructor to create a report from abstract interpretation
function (T::Type{<:InferenceErrorReport})(state, @nospecialize(spec_args...))
Expand Down

0 comments on commit 7e7f04d

Please sign in to comment.