-
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
Switch to EarlyBinder
for const_param_default
and impl_trait_ref
queries
#106696
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @lcnr (or someone else) soon. Please see the contribution instructions for more information. |
We can do this in parts, doesn't have to be a single PR. |
compiler/rustc_trait_selection/src/traits/specialize/specialization_graph.rs
Outdated
Show resolved
Hide resolved
compiler/rustc_trait_selection/src/traits/specialize/specialization_graph.rs
Outdated
Show resolved
Hide resolved
compiler/rustc_trait_selection/src/traits/specialize/specialization_graph.rs
Outdated
Show resolved
Hide resolved
But yeah, as said by @jackh726, the change is big enough that doing it for each query (or a few small ones together) separately in different PRs is probably a better idea to both make reviews easier and to prevent merge conflicts. |
EarlyBinder
as defaultEarlyBinder
for const_param_default
and impl_trait_ref
queries
@jackh726 and @lcnr: Thanks, that sounds good. I updated the title and description to reduce the scope of this PR to just the two queries that are already included here. @lcnr, thanks for the review and the detailed explanations! Tbh I'm not surprised that I got a lot of them wrong, hopefully after studying your explanations I will do slightly better on the next batch 😬 |
☔ The latest upstream changes (presumably #106730) made this pull request unmergeable. Please resolve the merge conflicts. |
777ebf1
to
6725380
Compare
Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
@bors r+ rollup=iffy |
📌 Commit 6725380aa2a80d1d1ba533995d699cf2ba8c31d0 has been approved by It is now in the queue for this repository. |
☔ The latest upstream changes (presumably #106760) made this pull request unmergeable. Please resolve the merge conflicts. |
6725380
to
26dbf35
Compare
☔ The latest upstream changes (presumably #106780) made this pull request unmergeable. Please resolve the merge conflicts. |
26dbf35
to
e0b70c8
Compare
@bors r+ rollup |
📌 Commit e0b70c806d4e467cf2891f75e19072ab22d6fc0b has been approved by It is now in the queue for this repository. |
☔ The latest upstream changes (presumably #106801) made this pull request unmergeable. Please resolve the merge conflicts. |
…r rustc_metadata) and Value for EarlyBinder
…const_param_default query; add EarlyBinder to const_param_default in metadata
…trait_ref query; add EarlyBinder to impl_trait_ref in metadata
e0b70c8
to
6e969ea
Compare
@bors r=lcnr rollup=never p=1 Bitrotty |
☀️ Test successful - checks-actions |
Finished benchmarking commit (b8f9cb3): 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)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. |
there is one small regression to bitmaps-full doc, and three improvements to bitmaps-incr-full {check, debug, opt}. If its not noise, its seems like the right trade off. Marking as triaged. @rustbot label: perf-regression-triaged |
…r=compiler-errors Small cleanups around `EarlyBinder` Cleaning up a few things that were brought up by `@lcnr` in reviewing rust-lang#106696: - [make `issue33140_self_ty` query return `Option<EarlyBinder<Ty>>`](rust-lang#106696 (comment)) - [small style improvement](rust-lang#106696 (comment))
Part of the work to close #105779 and implement rust-lang/types-team#78.
Several queries
X
have abound_X
variant that wraps the output inEarlyBinder
. This PR addsEarlyBinder
to the return type ofconst_param_default
andimpl_trait_ref
, and removes theirbound_X
variants.r? @lcnr