Skip to content

Split SelectionContext::select into fns that take a binder and don't#113308

Merged
bors merged 4 commits intorust-lang:masterfrom
compiler-errors:poly-select
Jul 7, 2023
Merged

Split SelectionContext::select into fns that take a binder and don't#113308
bors merged 4 commits intorust-lang:masterfrom
compiler-errors:poly-select

Conversation

@compiler-errors
Copy link
Contributor

most usages of SelectionContext::select don't need to use a binder, but wrap them in a dummy because of the signature. Let's split this out into SelectionContext::{select,poly_select} and limit the usages of the latter.

Right now, we only have 3 places where we're calling poly_select -- fulfillment, internally within the old solver, and the auto-trait finder.

r? @lcnr

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants