Skip to content

Commit 33e69e5

Browse files
authored
use Base.@show for the Compiler.jl standard library (#56616)
Since `Base.@show` is much useful than `Base.Compiler.@show`.
1 parent 4709b6c commit 33e69e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Compiler/src/Compiler.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ if length(ARGS) > 2 && ARGS[2] === "--buildsettings"
137137
end
138138
end
139139

140-
if false
141-
import Base: Base, @show
142-
else
140+
if !isdefined(Base, :end_base_include)
143141
macro show(ex...)
144142
blk = Expr(:block)
145143
for s in ex
@@ -149,6 +147,8 @@ else
149147
isempty(ex) || push!(blk.args, :value)
150148
blk
151149
end
150+
else
151+
using Base: @show
152152
end
153153

154154
include("cicache.jl")

0 commit comments

Comments
 (0)