-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Switch to EarlyBinder
for fn_sig
query
#107055
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred in src/librustdoc/clean/types.rs cc @camelid The Miri subtree was changed cc @rust-lang/miri Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
While doing this, I found several places where it looks like there is something to |
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 am ignoring subst_identity
in clippy because most of them should actually use subst
and fixing all of them is a lot of effort for this PR.
I think we should keep subst_identity
in clippy for now and open an issue or PR there that subst_identity
calls need triage as many of them are wrong.
ah, somehow your comments weren't shown when reviewing the files :/ that's annoying '^^ |
Ah sorry about that, that's probably my fault... I think I hit "Add single comment" instead of "Start review" or something when I posted them, oops. Anyway, thanks so much for the detailed comments! I'll try to apply them and let you know if I have questions |
bcd26d1
to
013b07d
Compare
The Miri subtree was changed cc @rust-lang/miri Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in src/librustdoc/clean/types.rs cc @camelid Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 |
Okay, I think I applied all of the comments except the clippy ones. I just added |
☔ The latest upstream changes (presumably #106090) made this pull request unmergeable. Please resolve the merge conflicts. |
013b07d
to
5936690
Compare
hi @lcnr, quick q: is it ok if I resolve the discussions for the changes I've made already? (Sorry if it's a silly question, I just don't know if I'm supposed to do that or if I'm supposed to let you do that 😅) |
so for review discussions i prefer the following:
So I guess: if you expect the reviewer to also want to look at the discussion again, keep it open, if not, close it. @bors r+ rollup=iffy |
📌 Commit 012ef4bb1ff633c841ac5a7e4645bac7ef46e058 has been approved by It is now in the queue for this repository. |
☔ The latest upstream changes (presumably #107290) made this pull request unmergeable. Please resolve the merge conflicts. |
…d EarlyBinder to fn_sig in metadata
012ef4b
to
dc1216b
Compare
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
Thanks for the tips! I appreciate the advice 😃 Just rebased this, hopefully it's good to go again. Changes due to new usages of |
@bors r+ rollup=never |
☀️ Test successful - checks-actions |
Finished benchmarking commit (7919ef0): comparison URL. Overall result: ✅ improvements - no action needed@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)ResultsThis 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.
CyclesThis benchmark run did not return any relevant results for this metric. |
Switch to `EarlyBinder` for `fn_sig` query Part of the work to finish rust-lang#105779 (also see rust-lang/types-team#78). Several queries `X` have a `bound_X` variant that wraps the output in [`EarlyBinder`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/subst/struct.EarlyBinder.html). This adds `EarlyBinder` to the return type of the `fn_sig` query and removes `bound_fn_sig`. r? `@lcnr`
Part of the work to finish #105779 (also see rust-lang/types-team#78).
Several queries
X
have abound_X
variant that wraps the output inEarlyBinder
. This addsEarlyBinder
to the return type of thefn_sig
query and removesbound_fn_sig
.r? @lcnr