From 1f334a805bc7d6512384cdea142f8014f34eb323 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Wed, 26 Jul 2023 01:16:25 -0400 Subject: [PATCH] See how bad CI breaks if we stop pirating --- src/utils.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index e725798..3217819 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -168,8 +168,8 @@ end fileline(lin::LineInfoNode) = String(lin.file), lin.line fileline(lnn::LineNumberNode) = String(lnn.file), lnn.line -# This is piracy, but it's not ambiguous in terms of what it should do -Base.convert(::Type{LineNumberNode}, lin::LineInfoNode) = LineNumberNode(lin.line, lin.file) +# We don't want to pirate Base +my_convert(::Type{LineNumberNode}, lin::LineInfoNode) = LineNumberNode(lin.line, lin.file) # This regex matches the pseudo-file name of a REPL history entry. const rREPL = r"^REPL\[(\d+)\]$"