-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make IRShow.method_name
inferrable
#49607
Conversation
normalize_method_name
inferrableIRShow.method_name
inferrable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems somewhat less good code structure. But we also should be using === to compare Symbols not ==
Yes and if the results where equivalent I would have kept the previous one. |
base/stacktraces.jl
Outdated
@@ -134,7 +134,7 @@ function lookup_inline_frame_info(func::Symbol, file::Symbol, linenum::Int, inli | |||
# backtrack to find the matching MethodInstance, if possible | |||
for j in (i - 1):-1:1 | |||
nextline = inlinetable[j] | |||
nextline.inlined_at == line.inlined_at && Base.IRShow.method_name(line) == Base.IRShow.method_name(nextline) && line.file == nextline.file || break | |||
nextline.inlined_at == line.inlined_at && Base.IRShow.method_name(line) === Base.IRShow.method_name(nextline) && line.file == nextline.file || break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think file
is also required (inferably) to be a Symbol?
Touché. Does the |
The issue is already fixed by making the function inferable, but for consistency it is indeed good to fix so that all symbol comparisons are made with |
4 methods pushes it over the limit.
Seems to have the same effect as #49605.
Now: