-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Follow-up fixes to report_return_mismatched_types
#123812
Conversation
r? @wesleywiser rustbot has assigned @wesleywiser. Use |
b07ad64
to
79b89af
Compare
r? fmease |
☔ The latest upstream changes (presumably #122385) made this pull request unmergeable. Please resolve the merge conflicts. |
79b89af
to
ab10e35
Compare
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.
Thanks for untangling this code 🙏 I have some notes but otherwise looks good
}; | ||
|
||
if let Some((fn_id, fn_decl, can_suggest)) = fn_decl { | ||
if let Some((fn_id, fn_decl, can_suggest)) = fcx.get_fn_decl(parent_id) { |
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.
(get_fn_decl
does more than get_node_fn_decl
as the former only calls the latter if get_return_block
returns Some
but that seems more robust anyway)
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.
r=me with my question addressed in one way or another, a rebase & maybe after squashing some of the commits, dunno, as you please
…eport_return_mismatched_types
ab10e35
to
a2a6fe7
Compare
I only saw one actionable request for a change, so I fixed that @bors r=fmease |
☀️ Test successful - checks-actions |
Finished benchmarking commit (e875391): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)Results (primary 5.2%, secondary 3.3%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (primary 2.4%, secondary 3.2%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 670.966s -> 669.761s (-0.18%) |
@compiler-errors @fmease seems like the regression in regex caused the |
It looks to me like there's a bunch of new queries, including metadata decoding running. I don't see at a quick skim where there was an intent to deserialize/load more state in order to perform the evaluation here though. Given that it's limited to just one benchmark though it's not clear whether it's worth investigating. Not marking as triaged though, I think at least a brief look from author would be helpful. |
None of this should be being called on the good path? 🤔 |
Some renames, simplifications, fixes, etc. Follow-ups to #123804. I don't think it totally disentangles this code, but it does remove some of the worst offenders on the "I am so confused" scale (e.g.
get_node_fn_decl
).