Skip to content

Commit

Permalink
use simpler way of computing positional parameters for stacktrace col…
Browse files Browse the repository at this point in the history
…lapsing

fixup to #49102
  • Loading branch information
KristofferC committed Mar 23, 2023
1 parent 703b3f8 commit cdd7954
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base/errorshow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -863,9 +863,8 @@ function _collapse_repeated_frames(trace)
frame.linfo.def isa Method && last_frame.linfo.def isa Method
m, last_m = frame.linfo.def::Method, last_frame.linfo.def::Method
params, last_params = Base.unwrap_unionall(m.sig).parameters, Base.unwrap_unionall(last_m.sig).parameters

if last_m.nkw != 0
pos_sig_params = Base.rewrap_unionall(Tuple{last_params[(last_m.nkw+2):end]...}, last_m.sig).parameters
pos_sig_params = last_params[(last_m.nkw+2):end]
issame = true
if pos_sig_params == params
kept_frames[i] = false
Expand Down

0 comments on commit cdd7954

Please sign in to comment.