Skip to content

Commit

Permalink
this is why we can't have nice things
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Nov 26, 2018
1 parent 9f72610 commit a0885fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ module IRShow
# :oneliner => src -> Base.IRShow.PartialLineInfoPrinter(src.linetable),
:none => src -> Base.IRShow.lineinfo_disabled,
)
debuginfo[:default] = debuginfo[:source]
debuginfo[:default] = debuginfo[:none]
end

function show(io::IO, src::CodeInfo; debuginfo::Symbol=:default)
Expand Down
1 change: 0 additions & 1 deletion doc/src/devdocs/reflection.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ as assignments, branches, and calls:
```jldoctest
julia> Meta.lower(@__MODULE__, :( [1+2, sin(0.5)] ))
:($(Expr(:thunk, CodeInfo(
@ none within `top-level scope'
1 ─ %1 = 1 + 2
│ %2 = sin(0.5)
│ %3 = (Base.vect)(%1, %2)
Expand Down
6 changes: 1 addition & 5 deletions stdlib/Test/src/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1280,11 +1280,7 @@ Int64
julia> @code_warntype f(1, 2, 3)
Body::UNION{FLOAT64, INT64}
@ none:1 within `f'
┌ @ operators.jl:286 within `>'
│┌ @ int.jl:49 within `<'
1 ─││ %1 = (Base.slt_int)(1, b)::Bool
│ └└
1 ─ %1 = (Base.slt_int)(1, b)::Bool
└── goto #3 if not %1
2 ─ return 1
3 ─ return 1.0
Expand Down

0 comments on commit a0885fb

Please sign in to comment.