From cdd79542812732b148a41f4634d0aafaa270286c Mon Sep 17 00:00:00 2001 From: KristofferC Date: Thu, 23 Mar 2023 16:02:17 +0100 Subject: [PATCH] use simpler way of computing positional parameters for stacktrace collapsing fixup to https://github.com/JuliaLang/julia/pull/49102 --- base/errorshow.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/errorshow.jl b/base/errorshow.jl index ab0c22120d741..d3d2feda1f9b5 100644 --- a/base/errorshow.jl +++ b/base/errorshow.jl @@ -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