-
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
clean up trans_static_method_callee and friends #31072
Conversation
981afa7
to
29c296f
Compare
I'll take a look at it ASAP. |
let mthsubsts = tcx.mk_substs(mth.substs); | ||
self.trans_fn_ref(bcx, ty, mthsubsts, mth.method.def_id) | ||
let mth_substs = tcx.mk_substs(mth.substs); | ||
self.trans_fn_ref(bcx, ty, mth_substs, mth.method.def_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.
Lovely!
Very nice work! Much cleaner indeed. Is there a specific reason you don't erase regions in some of the cases anymore? It probably doesn't matter most of the time, since the consumer of the r=me when you have taken care of that empty |
fixed that |
We don't need to erase regions again because |
@bors r=michaelwoerister |
📌 Commit 0a01d0b has been approved by |
The old code was terribly ugly and was duplicated in several places. r? @michaelwoerister
The old code was terribly ugly and was duplicated in several places.
r? @michaelwoerister