Skip to content

Commit

Permalink
remove UndefVarError deprecation from v0.5 (JuliaLang#40333)
Browse files Browse the repository at this point in the history
Looks like this got lost in deprecation removal?
  • Loading branch information
vtjnash authored and ElOceanografo committed May 4, 2021
1 parent 0862cf0 commit fd15694
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions base/errorshow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,6 @@ function showerror(io::IO, ex::UndefVarError)
Experimental.show_error_hints(io, ex)
end

Experimental.register_error_hint(UndefVarError) do io::IO, ex::UndefVarError
if ex.var in [:UTF16String, :UTF32String, :WString, :utf16, :utf32, :wstring, :RepString]
println(io)
print(io, """
`$(ex.var)` has been moved to the package LegacyStrings.jl:
Run Pkg.add("LegacyStrings") to install LegacyStrings on Julia v0.5-;
Then do `using LegacyStrings` to get `$(ex.var)`.""")
end
end

function showerror(io::IO, ex::InexactError)
print(io, "InexactError: ", ex.func, '(')
nameof(ex.T) === ex.func || print(io, ex.T, ", ")
Expand Down
2 changes: 0 additions & 2 deletions test/errorshow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -796,5 +796,3 @@ if Sys.isapple() || (Sys.islinux() && Sys.ARCH === :x86_64)
end
end
end # Sys.isapple()

@test contains(sprint(Base.showerror, UndefVarError(:UTF16String)), "LegacyStrings")

0 comments on commit fd15694

Please sign in to comment.