Skip to content

Commit

Permalink
bootstrap issue; don't outline errors in @assert
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson committed Jun 24, 2021
1 parent 85e2963 commit 12049a4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions base/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,6 @@ macro assert(ex, msgs...)
end
end

fn = gensym("assert")

@eval @noinline function $(fn)()
throw(AssertionError($msg))
end

return :($(esc(ex)) ? $(nothing) : $(fn)())
end

Expand Down

0 comments on commit 12049a4

Please sign in to comment.